Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/80164/?format=api
http://patchwork.dpdk.org/api/patches/80164/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20201009123919.43004-8-savinay.dharmappa@intel.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20201009123919.43004-8-savinay.dharmappa@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201009123919.43004-8-savinay.dharmappa@intel.com", "date": "2020-10-09T12:39:18", "name": "[v9,7/8] app/test_sched: update subport rate dynamically", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a979778e02ec2f885965c7d36e6af990e3c33dd0", "submitter": { "id": 1535, "url": "http://patchwork.dpdk.org/api/people/1535/?format=api", "name": "Savinay Dharmappa", "email": "savinay.dharmappa@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20201009123919.43004-8-savinay.dharmappa@intel.com/mbox/", "series": [ { "id": 12825, "url": "http://patchwork.dpdk.org/api/series/12825/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=12825", "date": "2020-10-09T12:39:11", "name": "Enable dynamic config of subport bandwidth", "version": 9, "mbox": "http://patchwork.dpdk.org/series/12825/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/80164/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/80164/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C7D4FA04BC;\n\tFri, 9 Oct 2020 14:42:12 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8E23B1D652;\n\tFri, 9 Oct 2020 14:39:48 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id C73FA1D630\n for <dev@dpdk.org>; Fri, 9 Oct 2020 14:39:41 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Oct 2020 05:39:41 -0700", "from silpixa00400629.ir.intel.com ([10.237.214.112])\n by orsmga005.jf.intel.com with ESMTP; 09 Oct 2020 05:39:40 -0700" ], "IronPort-SDR": [ "\n pYoGLxIUu8ufHEJfI3F5JLBWshmMIrnwk4eGnzXFMDA5y00JmF3dnOyqeQvE7XqVldYylZ6JHQ\n 695LtzsvETFQ==", "\n azPA9xn8qpjYwBMucV/51VlGYOBMpkMRkyTU3HBPe10I3hX7c6wXT90P3HntB6rigjRL/Ghfrf\n k8bazWE6Ec9g==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9768\"; a=\"152397601\"", "E=Sophos;i=\"5.77,355,1596524400\"; d=\"scan'208\";a=\"152397601\"", "E=Sophos;i=\"5.77,355,1596524400\"; d=\"scan'208\";a=\"528914548\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Savinay Dharmappa <savinay.dharmappa@intel.com>", "To": "cristian.dumitrescu@intel.com,\n\tjasvinder.singh@intel.com,\n\tdev@dpdk.org", "Cc": "savinay.dharmappa@intel.com", "Date": "Fri, 9 Oct 2020 13:39:18 +0100", "Message-Id": "<20201009123919.43004-8-savinay.dharmappa@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20201009123919.43004-1-savinay.dharmappa@intel.com>", "References": "<20201007140915.19491-1-savinay.dharmappa@intel.com>\n <20201009123919.43004-1-savinay.dharmappa@intel.com>", "Subject": "[dpdk-dev] [PATCH v9 7/8] app/test_sched: update subport rate\n\tdynamically", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Modify the test_sched application to build the hierarchical scheduler\nwith default subport bandwidth profile. It also allows to update\na subport with different subport rates dynamically\n\nSigned-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>\n---\n app/test/test_sched.c | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/app/test/test_sched.c b/app/test/test_sched.c\nindex 5e5c2a59b..958b63114 100644\n--- a/app/test/test_sched.c\n+++ b/app/test/test_sched.c\n@@ -21,6 +21,7 @@\n #define PIPE 1\n #define TC 2\n #define QUEUE 0\n+#define MAX_SCHED_SUBPORT_PROFILES 8\n \n static struct rte_sched_pipe_params pipe_profile[] = {\n \t{ /* Profile #0 */\n@@ -36,15 +37,20 @@ static struct rte_sched_pipe_params pipe_profile[] = {\n \t},\n };\n \n-static struct rte_sched_subport_params subport_param[] = {\n+static struct rte_sched_subport_profile_params\n+\t\tsubport_profile[] = {\n \t{\n \t\t.tb_rate = 1250000000,\n \t\t.tb_size = 1000000,\n-\n \t\t.tc_rate = {1250000000, 1250000000, 1250000000, 1250000000,\n \t\t\t1250000000, 1250000000, 1250000000, 1250000000, 1250000000,\n \t\t\t1250000000, 1250000000, 1250000000, 1250000000},\n \t\t.tc_period = 10,\n+\t},\n+};\n+\n+static struct rte_sched_subport_params subport_param[] = {\n+\t{\n \t\t.n_pipes_per_subport_enabled = 1024,\n \t\t.qsize = {32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32},\n \t\t.pipe_profiles = pipe_profile,\n@@ -59,6 +65,9 @@ static struct rte_sched_port_params port_param = {\n \t.mtu = 1522,\n \t.frame_overhead = RTE_SCHED_FRAME_OVERHEAD_DEFAULT,\n \t.n_subports_per_port = 1,\n+\t.n_subport_profiles = 1,\n+\t.subport_profiles = subport_profile,\n+\t.n_max_subport_profiles = MAX_SCHED_SUBPORT_PROFILES,\n \t.n_pipes_per_subport = 1024,\n };\n \n", "prefixes": [ "v9", "7/8" ] }{ "id": 80164, "url": "