Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109465/?format=api
http://patches.dpdk.org/api/patches/109465/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220408053815.850191-7-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": "<20220408053815.850191-7-wenjun1.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220408053815.850191-7-wenjun1.wu@intel.com", "date": "2022-04-08T05:38:11", "name": "[v6,06/10] net/ice: support queue priority configuration", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "beea7072b13ed6ae183b68886616b6d56ba85a8c", "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/20220408053815.850191-7-wenjun1.wu@intel.com/mbox/", "series": [ { "id": 22426, "url": "http://patches.dpdk.org/api/series/22426/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22426", "date": "2022-04-08T05:38:06", "name": "Enable ETS-based TX QoS on PF", "version": 6, "mbox": "http://patches.dpdk.org/series/22426/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/109465/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/109465/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 902DCA0513;\n\tFri, 8 Apr 2022 07:59:53 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4A11C42868;\n\tFri, 8 Apr 2022 07:59:26 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 4CD1B4067E\n for <dev@dpdk.org>; Fri, 8 Apr 2022 07:59:22 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Apr 2022 22:59:21 -0700", "from npg-wuwenjun-dpdk-01.sh.intel.com ([10.67.110.181])\n by FMSMGA003.fm.intel.com with ESMTP; 07 Apr 2022 22:59:20 -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=1649397563; x=1680933563;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=uum2pRlzio5gsVpOhps/eoKTw3EdL0ghijuFA1MBGM4=;\n b=asHDGhfsr5rXiCJJExQGbBHKIUUQ+8GLfcdF2a1wERX7xJ0Jxroyb5m2\n 8tBCUOenHwXNIgWWKFrvrvT4Ak3DT7NbxANSl3DM7d+cIaFu2nI05T6Tw\n AKNc0lmW4mj96jf6zY2qLFPxZPOPWoE/nUo1uc3/NBB3dbfvN+VtPS6vT\n qMv5vS7af5c/uZkNJUrBLlQuLQyW7RKX++hHfmrxdDvdRGDH4IGgkeAke\n QSW439TTcAFPTYwO9gpBDZ6+Zoa6wC9sTrWajKMggx5LdujR5libek1/m\n 7OTjQYqd3stc4gR4u/n0KdnPVMQ2jFYIFmkjAASqXS83p1AcTb2RyGcnH g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10310\"; a=\"241450469\"", "E=Sophos;i=\"5.90,244,1643702400\"; d=\"scan'208\";a=\"241450469\"", "E=Sophos;i=\"5.90,244,1643702400\"; d=\"scan'208\";a=\"642773600\"" ], "X-ExtLoop1": "1", "From": "Wenjun Wu <wenjun1.wu@intel.com>", "To": "dev@dpdk.org,\n\tqi.z.zhang@intel.com,\n\tqiming.yang@intel.com", "Subject": "[PATCH v6 06/10] net/ice: support queue priority configuration", "Date": "Fri, 8 Apr 2022 13:38:11 +0800", "Message-Id": "<20220408053815.850191-7-wenjun1.wu@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220408053815.850191-1-wenjun1.wu@intel.com>", "References": "<20220329014813.1092054-1-wenjun1.wu@intel.com>\n <20220408053815.850191-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 priority configuration support.\nThe highest priority is 0, and the lowest priority is 7.\n\nSigned-off-by: Wenjun Wu <wenjun1.wu@intel.com>\n---\n drivers/net/ice/ice_tm.c | 14 ++++++++++++--\n 1 file changed, 12 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ice/ice_tm.c b/drivers/net/ice/ice_tm.c\nindex d70d077286..91e420d653 100644\n--- a/drivers/net/ice/ice_tm.c\n+++ b/drivers/net/ice/ice_tm.c\n@@ -147,9 +147,9 @@ ice_node_param_check(struct ice_pf *pf, uint32_t node_id,\n \t\treturn -EINVAL;\n \t}\n \n-\tif (priority) {\n+\tif (priority >= 8) {\n \t\terror->type = RTE_TM_ERROR_TYPE_NODE_PRIORITY;\n-\t\terror->message = \"priority should be 0\";\n+\t\terror->message = \"priority should be less than 8\";\n \t\treturn -EINVAL;\n \t}\n \n@@ -684,6 +684,7 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev,\n \tstruct ice_vsi *vsi;\n \tint ret_val = ICE_SUCCESS;\n \tuint64_t peak = 0;\n+\tuint8_t priority;\n \tuint32_t i;\n \tuint32_t idx_vsi_child;\n \tuint32_t idx_qg;\n@@ -779,6 +780,7 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev,\n \t\tqid = tm_node->id;\n \t\ttxq = dev->data->tx_queues[qid];\n \t\tvsi = txq->vsi;\n+\t\tq_teid = txq->q_teid;\n \t\tif (tm_node->shaper_profile) {\n \t\t\t/* Transfer from Byte per seconds to Kbps */\n \t\t\tpeak = tm_node->shaper_profile->profile.peak.rate;\n@@ -794,6 +796,14 @@ static int ice_hierarchy_commit(struct rte_eth_dev *dev,\n \t\t\t\tgoto fail_clear;\n \t\t\t}\n \t\t}\n+\t\tpriority = 7 - tm_node->priority;\n+\t\tret_val = ice_cfg_vsi_q_priority(hw->port_info, 1,\n+\t\t\t\t\t\t &q_teid, &priority);\n+\t\tif (ret_val) {\n+\t\t\terror->type = RTE_TM_ERROR_TYPE_NODE_PRIORITY;\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 \t}\n \n \treturn ret_val;\n", "prefixes": [ "v6", "06/10" ] }{ "id": 109465, "url": "