Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77916/?format=api
https://patches.dpdk.org/api/patches/77916/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1600274633-371993-2-git-send-email-savinay.dharmappa@intel.com/", "project": { "id": 1, "url": "https://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": "<1600274633-371993-2-git-send-email-savinay.dharmappa@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1600274633-371993-2-git-send-email-savinay.dharmappa@intel.com", "date": "2020-09-16T16:43:45", "name": "[v3,1/9] sched: add support profile data structure", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ebb3440b68bc451c67be064839ea70344679f7a6", "submitter": { "id": 1535, "url": "https://patches.dpdk.org/api/people/1535/?format=api", "name": "Savinay Dharmappa", "email": "savinay.dharmappa@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1600274633-371993-2-git-send-email-savinay.dharmappa@intel.com/mbox/", "series": [ { "id": 12284, "url": "https://patches.dpdk.org/api/series/12284/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12284", "date": "2020-09-16T16:43:45", "name": "Enable dynamic config of subport bandwidth", "version": 3, "mbox": "https://patches.dpdk.org/series/12284/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/77916/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/77916/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 3AC6CA04B5;\n\tWed, 16 Sep 2020 18:45:42 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 212371D181;\n\tWed, 16 Sep 2020 18:44:54 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id C81AD1D15F\n for <dev@dpdk.org>; Wed, 16 Sep 2020 18:44:51 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Sep 2020 09:44:40 -0700", "from silpixa00400629.ir.intel.com ([10.237.214.135])\n by orsmga004.jf.intel.com with ESMTP; 16 Sep 2020 09:44:39 -0700" ], "IronPort-SDR": [ "\n RQsw/lAFL9zEQCeV5wExeaIsQXgpzzV0ToB8ehUcLU+WvH229HPNWuAnkOOYvenu172IRNKluv\n eumTY2DVfAGQ==", "\n ZnID3BUfgm4K1Unag5SVQyUtB/vps3DnPQIL95mEe5Z3qM+6pMxdzlJt98+EMwr+Mk1rcXU6iK\n OH+tAqr5uQOA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9746\"; a=\"221069933\"", "E=Sophos;i=\"5.76,433,1592895600\"; d=\"scan'208\";a=\"221069933\"", "E=Sophos;i=\"5.76,433,1592895600\"; d=\"scan'208\";a=\"451925114\"" ], "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": "Wed, 16 Sep 2020 17:43:45 +0100", "Message-Id": "<1600274633-371993-2-git-send-email-savinay.dharmappa@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1600274633-371993-1-git-send-email-savinay.dharmappa@intel.com>", "References": "<1599763717-135002-1-git-send-email-savinay.dharmappa@intel.com>\n <1600274633-371993-1-git-send-email-savinay.dharmappa@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 1/9] sched: add support profile data structure", "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": "Add subport profile data structure to support dynamic configuration\nof subport bandwidth\n\nSigned-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\n---\n lib/librte_sched/rte_sched.c | 10 ++++++++++\n lib/librte_sched/rte_sched.h | 25 +++++++++++++++++++++++++\n 2 files changed, 35 insertions(+)", "diff": "diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c\nindex 0fa0741..dc5beb2 100644\n--- a/lib/librte_sched/rte_sched.c\n+++ b/lib/librte_sched/rte_sched.c\n@@ -101,6 +101,16 @@ enum grinder_state {\n \te_GRINDER_READ_MBUF\n };\n \n+struct rte_sched_subport_profile {\n+\t/* Token bucket (TB) */\n+\tuint64_t tb_period;\n+\tuint64_t tb_credits_per_period;\n+\tuint64_t tb_size;\n+\n+\tuint64_t tc_credits_per_period[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t tc_period;\n+};\n+\n struct rte_sched_grinder {\n \t/* Pipe cache */\n \tuint16_t pcache_qmask[RTE_SCHED_GRINDER_PCACHE_SIZE];\ndiff --git a/lib/librte_sched/rte_sched.h b/lib/librte_sched/rte_sched.h\nindex 8a5a93c..39339b7 100644\n--- a/lib/librte_sched/rte_sched.h\n+++ b/lib/librte_sched/rte_sched.h\n@@ -192,6 +192,20 @@ struct rte_sched_subport_params {\n #endif\n };\n \n+struct rte_sched_subport_profile_params {\n+\t/** Token bucket rate (measured in bytes per second) */\n+\tuint64_t tb_rate;\n+\n+\t/** Token bucket size (measured in credits) */\n+\tuint64_t tb_size;\n+\n+\t/** Traffic class rates (measured in bytes per second) */\n+\tuint64_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\n+\t/** Enforcement period for rates (measured in milliseconds) */\n+\tuint64_t tc_period;\n+};\n+\n /** Subport statistics */\n struct rte_sched_subport_stats {\n \t/** Number of packets successfully written */\n@@ -254,6 +268,17 @@ struct rte_sched_port_params {\n \t/** Number of subports */\n \tuint32_t n_subports_per_port;\n \n+\t/** subport profile table.\n+\t * Every pipe is configured using one of the profiles from this table.\n+\t */\n+\tstruct rte_sched_subport_profile_params *subport_profiles;\n+\n+\t/** Profiles in the pipe profile table */\n+\tuint32_t n_subport_profiles;\n+\n+\t/** Max allowed profiles in the pipe profile table */\n+\tuint32_t n_max_subport_profiles;\n+\n \t/** Maximum number of subport pipes.\n \t * This parameter is used to reserve a fixed number of bits\n \t * in struct rte_mbuf::sched.queue_id for the pipe_id for all\n", "prefixes": [ "v3", "1/9" ] }{ "id": 77916, "url": "