Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/116863/?format=api
https://patches.dpdk.org/api/patches/116863/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220926084248.1421987-4-junfeng.guo@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": "<20220926084248.1421987-4-junfeng.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220926084248.1421987-4-junfeng.guo@intel.com", "date": "2022-09-26T08:42:48", "name": "[RFC,v2,3/3] net/idpf: adjust RSS LUT to exclude hairpin queue", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8ac0d00bac06f6cee312af2c761f8a422903032a", "submitter": { "id": 1785, "url": "https://patches.dpdk.org/api/people/1785/?format=api", "name": "Junfeng Guo", "email": "junfeng.guo@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/20220926084248.1421987-4-junfeng.guo@intel.com/mbox/", "series": [ { "id": 24825, "url": "https://patches.dpdk.org/api/series/24825/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24825", "date": "2022-09-26T08:42:45", "name": "enable hairpin queue", "version": 2, "mbox": "https://patches.dpdk.org/series/24825/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/116863/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/116863/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 3FE26A00C2;\n\tMon, 26 Sep 2022 10:43:40 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9C70A42686;\n\tMon, 26 Sep 2022 10:43:30 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 021124113C\n for <dev@dpdk.org>; Mon, 26 Sep 2022 10:43:24 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Sep 2022 01:43:11 -0700", "from dpdk-jf-ntb-v2.sh.intel.com ([10.67.118.246])\n by fmsmga005.fm.intel.com with ESMTP; 26 Sep 2022 01:43:09 -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=1664181805; x=1695717805;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=SMJT1pWHnRshx7Q1AZKN1kbK7yt6BmEaj8dRZrx8HV0=;\n b=HsdM3PjfXvY1wHSlNwakfcQerZcR9MRyXeXNxrpQVyoaZ+a1hX+vu4Bv\n 1lxUR/MMAt7ZDdzuSQAaz/PgsjBTfMvNA5WV716bTM8bOKZMPS1YoT7rs\n PzXvcdlvwAIFQFP02g7nuhKwJnY4K76co1K9GJUiRtKmWA6di8fCmr1Qu\n RZO5io1SfY1njZAPgIvrmb5jnat1hFlm1gwnVC70vH9IMFYLfiZEVxWkN\n 6HoK2CaKsbmqEFhbMcVjz1H8buRxm//mHk8i8uxVsKTR+0wD9okOTwr/s\n RT5oBpCb0FnD7RwDQyBgxj7+N6FrbajSrqLmE7mUo8/f/ihpU2fxSea/f Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10481\"; a=\"302444393\"", "E=Sophos;i=\"5.93,345,1654585200\"; d=\"scan'208\";a=\"302444393\"", "E=McAfee;i=\"6500,9779,10481\"; a=\"949770643\"", "E=Sophos;i=\"5.93,345,1654585200\"; d=\"scan'208\";a=\"949770643\"" ], "X-ExtLoop1": "1", "From": "Junfeng Guo <junfeng.guo@intel.com>", "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com", "Cc": "dev@dpdk.org,\n\txiao.w.wang@intel.com,\n\tjunfeng.guo@intel.com", "Subject": "[RFC v2 3/3] net/idpf: adjust RSS LUT to exclude hairpin queue", "Date": "Mon, 26 Sep 2022 16:42:48 +0800", "Message-Id": "<20220926084248.1421987-4-junfeng.guo@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220926084248.1421987-1-junfeng.guo@intel.com>", "References": "<20220905113031.3223290-2-junfeng.guo@intel.com>\n <20220926084248.1421987-1-junfeng.guo@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": "RSS should direct traffic only to the normal data Rx queues, so when\nhairpin queue configured, RSS LUT should be adjusted to exclude\nthe hairpin queue.\n\nSigned-off-by: Xiao Wang <xiao.w.wang@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 24 ++++++++++++++++++++++++\n 1 file changed, 24 insertions(+)", "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex 41e6391d8b..a30b8df778 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -624,9 +624,28 @@ idpf_config_rx_queues_irqs(struct rte_eth_dev *dev)\n \treturn -1;\n }\n \n+static int\n+idpf_config_rss_lut(struct idpf_vport *vport, uint16_t nb_q)\n+{\n+\tuint16_t lut_size = vport->rss_lut_size;\n+\tuint16_t i;\n+\tint ret;\n+\n+\tfor (i = 0; i < lut_size; i++)\n+\t\tvport->rss_lut[i] = i % nb_q;\n+\n+\tret = idpf_set_rss_lut(vport);\n+\tif (ret)\n+\t\tPMD_INIT_LOG(ERR, \"Failed to configure RSS lut\");\n+\n+\treturn ret;\n+}\n+\n static int\n idpf_start_queues(struct rte_eth_dev *dev)\n {\n+\tstruct idpf_vport *vport = (struct idpf_vport *)dev->data->dev_private;\n+\tuint16_t nb_rxq = dev->data->nb_rx_queues;\n \tstruct idpf_rx_queue *rxq;\n \tstruct idpf_tx_queue *txq;\n \tint err = 0;\n@@ -704,6 +723,11 @@ idpf_start_queues(struct rte_eth_dev *dev)\n \t\t}\n \t}\n \n+\t/* RSS only to the data queues */\n+\trxq = dev->data->rx_queues[nb_rxq - 1];\n+\tif (nb_rxq > 1 && rxq && rxq->hairpin_q)\n+\t\terr = idpf_config_rss_lut(vport, nb_rxq - 1);\n+\n \treturn err;\n }\n \n", "prefixes": [ "RFC", "v2", "3/3" ] }{ "id": 116863, "url": "