Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77210/?format=api
http://patches.dpdk.org/api/patches/77210/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1599763717-135002-2-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-2-git-send-email-savinay.dharmappa@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1599763717-135002-2-git-send-email-savinay.dharmappa@intel.com", "date": "2020-09-10T18:48:28", "name": "[v2,01/10] sched: add support profile data structure", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2e65d26c845388e33034768b4d0e948cf1118d97", "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-2-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/77210/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77210/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 0D385A04B5;\n\tThu, 10 Sep 2020 20:48:59 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6D02B1C0CA;\n\tThu, 10 Sep 2020 20:48:52 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 6DAA6160\n for <dev@dpdk.org>; Thu, 10 Sep 2020 20:48:49 +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:46 -0700", "from silpixa00400629.ir.intel.com ([10.237.214.135])\n by orsmga007.jf.intel.com with ESMTP; 10 Sep 2020 11:48:45 -0700" ], "IronPort-SDR": [ "\n RX4JxtI9h3YrH2OKA5auenfxAbiaImyUsW6Gm4uB0dVR313gV0G4ElIsqeoUjncSmzNkkWm/yb\n KHHRUt9OEeSw==", "\n qhYGH3HK4Y7+AexqJMF+KnlgbKWhEr7XkoP6e4sr9cy6iThhmy14Y+5jIYhLGpT6ThRsF1iKAs\n 09rbhjUTV8uA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9740\"; a=\"138130645\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"138130645\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"344371069\"" ], "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:28 +0100", "Message-Id": "<1599763717-135002-2-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 01/10] sched: add support profile data\n\tstructure", "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 | 11 +++++++++++\n lib/librte_sched/rte_sched.h | 25 +++++++++++++++++++++++++\n 2 files changed, 36 insertions(+)", "diff": "diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c\nindex 0fa0741..474422b 100644\n--- a/lib/librte_sched/rte_sched.c\n+++ b/lib/librte_sched/rte_sched.c\n@@ -2,6 +2,7 @@\n * Copyright(c) 2010-2014 Intel Corporation\n */\n \n+#include <stdint.h>\n #include <stdio.h>\n #include <string.h>\n \n@@ -101,6 +102,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": [ "v2", "01/10" ] }{ "id": 77210, "url": "