Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77218/?format=api
http://patches.dpdk.org/api/patches/77218/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1599763717-135002-10-git-send-email-savinay.dharmappa@intel.com/", "project": { "id": 1, "url": "http://patches.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": "<1599763717-135002-10-git-send-email-savinay.dharmappa@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1599763717-135002-10-git-send-email-savinay.dharmappa@intel.com", "date": "2020-09-10T18:48:36", "name": "[v2,09/10] app/test_sched: add dynamic config of subport", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "7772c055c7d53d92d56ff337aeb2a9dd33e610bc", "submitter": { "id": 1535, "url": "http://patches.dpdk.org/api/people/1535/?format=api", "name": "Savinay Dharmappa", "email": "savinay.dharmappa@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1599763717-135002-10-git-send-email-savinay.dharmappa@intel.com/mbox/", "series": [ { "id": 12110, "url": "http://patches.dpdk.org/api/series/12110/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12110", "date": "2020-09-10T18:48:27", "name": "Enable dynamic config of subport bandwidth", "version": 2, "mbox": "http://patches.dpdk.org/series/12110/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77218/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77218/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 96292A04B5;\n\tThu, 10 Sep 2020 20:50:15 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F0BE01C132;\n\tThu, 10 Sep 2020 20:49:09 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id C42261C11C\n for <dev@dpdk.org>; Thu, 10 Sep 2020 20:48:58 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Sep 2020 11:48:58 -0700", "from silpixa00400629.ir.intel.com ([10.237.214.135])\n by orsmga007.jf.intel.com with ESMTP; 10 Sep 2020 11:48:56 -0700" ], "IronPort-SDR": [ "\n aoduIa4vCjPTfQYJ56rO5VYIP4dFWCTBFL5ppn1PXsrR9eEQkhnaDxxLFhNboC1fqGFfbJphcl\n MSVOaVG6D+Pg==", "\n BQrRtBbbYwgMfqtl33bK4O5bogFrhVoXN7T2k6XfOQsmkcDBtCJPrdkiCE+aAI66klfVgVyggN\n F6po0VCEtXIw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9740\"; a=\"138130689\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"138130689\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"344371140\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Savinay Dharmappa <savinay.dharmappa@intel.com>", "To": "jasvinder.singh@intel.com,\n\tcristian.dumitrescu@intel.com,\n\tdev@dpdk.org", "Cc": "savinay.dharmappa@intel.com", "Date": "Thu, 10 Sep 2020 19:48:36 +0100", "Message-Id": "<1599763717-135002-10-git-send-email-savinay.dharmappa@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1599763717-135002-1-git-send-email-savinay.dharmappa@intel.com>", "References": "<1599037006-3931-1-git-send-email-savinay.dharmappa@intel.com>\n <1599763717-135002-1-git-send-email-savinay.dharmappa@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 09/10] app/test_sched: add dynamic config of\n\tsubport", "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 configure\na subport with different subport bandwidth profile dynamically\n\nSigned-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>\n---\n app/test/test_sched.c | 18 ++++++++++++++++--\n 1 file changed, 16 insertions(+), 2 deletions(-)", "diff": "diff --git a/app/test/test_sched.c b/app/test/test_sched.c\nindex fc31080..8d1eb25 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@@ -66,6 +75,7 @@ static struct rte_sched_port_params port_param = {\n #define MBUF_DATA_SZ (2048 + RTE_PKTMBUF_HEADROOM)\n #define MEMPOOL_CACHE_SZ 0\n #define SOCKET 0\n+#define DEFAULT_PROFILE 0\n \n \n static struct rte_mempool *\n@@ -141,6 +151,10 @@ test_sched(void)\n \terr = rte_sched_subport_config(port, SUBPORT, subport_param);\n \tTEST_ASSERT_SUCCESS(err, \"Error config sched, err=%d\\n\", err);\n \n+\terr = rte_sched_subport_profile_config(port, SUBPORT,\n+\t\t\t\t\t\tDEFAULT_PROFILE);\n+\tTEST_ASSERT_SUCCESS(err, \"Error config sched, err=%d\\n\", err);\n+\n \tfor (pipe = 0; pipe < subport_param[0].n_pipes_per_subport_enabled; pipe++) {\n \t\terr = rte_sched_pipe_config(port, SUBPORT, pipe, 0);\n \t\tTEST_ASSERT_SUCCESS(err, \"Error config sched pipe %u, err=%d\\n\", pipe, err);\n", "prefixes": [ "v2", "09/10" ] }{ "id": 77218, "url": "