Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110051/?format=api
http://patches.dpdk.org/api/patches/110051/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220422005746.2300736-8-wenjun1.wu@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": "<20220422005746.2300736-8-wenjun1.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220422005746.2300736-8-wenjun1.wu@intel.com", "date": "2022-04-22T00:57:44", "name": "[v7,7/9] net/ice: support queue weight configuration", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "2410d542ed26e0e546a240dbfbb3b0eedbcc89f9", "submitter": { "id": 2083, "url": "http://patches.dpdk.org/api/people/2083/?format=api", "name": "Wenjun Wu", "email": "wenjun1.wu@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220422005746.2300736-8-wenjun1.wu@intel.com/mbox/", "series": [ { "id": 22604, "url": "http://patches.dpdk.org/api/series/22604/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22604", "date": "2022-04-22T00:57:37", "name": "Enable ETS-based TX QoS on PF", "version": 7, "mbox": "http://patches.dpdk.org/series/22604/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110051/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/110051/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C230CA0093;\n\tFri, 22 Apr 2022 03:20:21 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 73AC742815;\n\tFri, 22 Apr 2022 03:19:44 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 9951D4280C\n for <dev@dpdk.org>; Fri, 22 Apr 2022 03:19:42 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Apr 2022 18:19:42 -0700", "from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181])\n by orsmga002.jf.intel.com with ESMTP; 21 Apr 2022 18:19:40 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1650590382; x=1682126382;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=6OLUIV174at4F4njhX0qaYOMqYxbof2gefBbfythGek=;\n b=iyKkgRJPp+iVQe7xggEnJ8BCmfbWnmU2OjZQ7ySf0utr8awjKZeWf+zk\n cb/VmZDPKkpf1rttBw0T+ZryUqu+WCRiOk+w5+gg2OhMc8Y+UPsw8aQuS\n TnPBwYb+WhDKkOdYbjcsnokfGjpQSfk03tn+xy/rGgfF3A8rWrmzRD9wq\n kxmkhmBIojWJXfuxWLf/ZHbENlJCQAcRM/BhfxAylyKojsAaOw0vfQl6b\n tse7Zmob5MMJxED8xS8/q6YCEIlUuGulnXrOqAOEXRrs6JHyLJYy8lVaY\n tNegUDul0TyGl4orIfAd+tFdZ7yVMvPQRAFLmN719yG9nBrqtQGVVgIw5 g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10324\"; a=\"350972734\"", "E=Sophos;i=\"5.90,280,1643702400\"; d=\"scan'208\";a=\"350972734\"", "E=Sophos;i=\"5.90,280,1643702400\"; d=\"scan'208\";a=\"533816404\"" ], "X-ExtLoop1": "1", "From": "Wenjun Wu <wenjun1.wu@intel.com>", "To": "dev@dpdk.org,\n\tqiming.yang@intel.com,\n\tqi.z.zhang@intel.com", "Subject": "[PATCH v7 7/9] net/ice: support queue weight configuration", "Date": "Fri, 22 Apr 2022 08:57:44 +0800", "Message-Id": "<20220422005746.2300736-8-wenjun1.wu@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220422005746.2300736-1-wenjun1.wu@intel.com>", "References": "<20220329014813.1092054-1-wenjun1.wu@intel.com>\n <20220422005746.2300736-1-wenjun1.wu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "This patch adds queue weight configuration support.\n\nSigned-off-by: Wenjun Wu <wenjun1.wu@intel.com>\n---\n drivers/net/ice/ice_tm.c | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c\nindex 91e420d653..4d7bb9102c 100644\n--- a/drivers/net/ice/ice_tm.c\n+++ b/drivers/net/ice/ice_tm.c\n@@ -153,9 +153,9 @@ ice_node_param_check(struct ice_pf *pf, uint32_t node_id,\n \t\treturn -EINVAL;\n \t}\n \n-\tif (weight != 1) {\n+\tif (weight > 200 || weight < 1) {\n \t\terror->type = RTE_TM_ERROR_TYPE_NODE_WEIGHT;\n-\t\terror->message = \"weight must be 1\";\n+\t\terror->message = \"weight must be between 1 and 200\";\n \t\treturn -EINVAL;\n \t}\n \n@@ -804,6 +804,15 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev,\n \t\t\tPMD_DRV_LOG(ERR, \"configure queue %u priority failed\", tm_node->priority);\n \t\t\tgoto fail_clear;\n \t\t}\n+\n+\t\tret_val = ice_cfg_q_bw_alloc(hw->port_info, vsi->idx,\n+\t\t\t\t\t tm_node->tc, tm_node->id,\n+\t\t\t\t\t ICE_MAX_BW, (u32)tm_node->weight);\n+\t\tif (ret_val) {\n+\t\t\terror->type = RTE_TM_ERROR_TYPE_NODE_WEIGHT;\n+\t\t\tPMD_DRV_LOG(ERR, \"configure queue %u weight failed\", tm_node->weight);\n+\t\t\tgoto fail_clear;\n+\t\t}\n \t}\n \n \treturn ret_val;\n", "prefixes": [ "v7", "7/9" ] }{ "id": 110051, "url": "