Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/123025/?format=api
https://patches.dpdk.org/api/patches/123025/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230203094340.8103-11-beilei.xing@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": "<20230203094340.8103-11-beilei.xing@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230203094340.8103-11-beilei.xing@intel.com", "date": "2023-02-03T09:43:31", "name": "[v6,10/19] common/idpf: add vector flags in vport", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8f03a90abfaebfa3aee5ab9796b1320ee6acbd29", "submitter": { "id": 410, "url": "https://patches.dpdk.org/api/people/410/?format=api", "name": "Xing, Beilei", "email": "beilei.xing@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230203094340.8103-11-beilei.xing@intel.com/mbox/", "series": [ { "id": 26786, "url": "https://patches.dpdk.org/api/series/26786/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26786", "date": "2023-02-03T09:43:21", "name": "net/idpf: introduce idpf common modle", "version": 6, "mbox": "https://patches.dpdk.org/series/26786/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/123025/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/123025/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 C11A641BBB;\n\tFri, 3 Feb 2023 11:11:20 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3AC4742D61;\n\tFri, 3 Feb 2023 11:10:36 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id A4D3D42D42\n for <dev@dpdk.org>; Fri, 3 Feb 2023 11:10:26 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Feb 2023 02:10:26 -0800", "from dpdk-beileix-3.sh.intel.com ([10.67.110.253])\n by orsmga007.jf.intel.com with ESMTP; 03 Feb 2023 02:10:24 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1675419026; x=1706955026;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=sBxJgDB0vsAPeMvCthm47/J4GwA+8A9sOUk2eawfyVo=;\n b=O7u+iG0VBemoIRFo+Jbe4i5xd/6I6L1Ks53xXQjo0cI5ljFjZ7LcqXUj\n HrhX0eOhl4qMibGS5rAqAvBMY4SVK/WJhiJ+A+ooHrdRx0V1bthesvKjC\n qRuxfwd/u7r+YJs+fTUdo6cvxWo8Pp+Zg8TIsSLnjWKP447KhqjVlKvCl\n bzLHwaaJyPTQPTJV7G73mTc2hDkmYkeTCQXIlHjkeqYHz26oXwcIFEML2\n E17kSn7AGX/fmgNTwlU+TPauSlkSAZk/sSeqeJmzJnBgWeIf5PQayc/C1\n N/ZQLUUQM3yai8mhWYg1Ng9ctwEhMS0cwCAmIuySz/gXXAl7R/uHxlaH8 g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10609\"; a=\"356052821\"", "E=Sophos;i=\"5.97,270,1669104000\"; d=\"scan'208\";a=\"356052821\"", "E=McAfee;i=\"6500,9779,10609\"; a=\"659047860\"", "E=Sophos;i=\"5.97,270,1669104000\"; d=\"scan'208\";a=\"659047860\"" ], "X-ExtLoop1": "1", "From": "beilei.xing@intel.com", "To": "jingjing.wu@intel.com", "Cc": "dev@dpdk.org,\n\tqi.z.zhang@intel.com,\n\tBeilei Xing <beilei.xing@intel.com>", "Subject": "[PATCH v6 10/19] common/idpf: add vector flags in vport", "Date": "Fri, 3 Feb 2023 09:43:31 +0000", "Message-Id": "<20230203094340.8103-11-beilei.xing@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20230203094340.8103-1-beilei.xing@intel.com>", "References": "<20230202095357.37929-1-beilei.xing@intel.com>\n <20230203094340.8103-1-beilei.xing@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": "From: Beilei Xing <beilei.xing@intel.com>\n\nMove vector flags from idpf_adapter_ext structure to\nidpf_vport structure.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/common/idpf/idpf_common_device.h | 5 +++++\n drivers/net/idpf/idpf_ethdev.h | 5 -----\n drivers/net/idpf/idpf_rxtx.c | 22 ++++++++++------------\n 3 files changed, 15 insertions(+), 17 deletions(-)", "diff": "diff --git a/drivers/common/idpf/idpf_common_device.h b/drivers/common/idpf/idpf_common_device.h\nindex 0c73d40e53..61c47ba5f4 100644\n--- a/drivers/common/idpf/idpf_common_device.h\n+++ b/drivers/common/idpf/idpf_common_device.h\n@@ -103,6 +103,11 @@ struct idpf_vport {\n \tuint16_t devarg_id;\n \n \tbool stopped;\n+\n+\tbool rx_vec_allowed;\n+\tbool tx_vec_allowed;\n+\tbool rx_use_avx512;\n+\tbool tx_use_avx512;\n };\n \n /* Message type read in virtual channel from PF */\ndiff --git a/drivers/net/idpf/idpf_ethdev.h b/drivers/net/idpf/idpf_ethdev.h\nindex c2a7abb05c..bef6199622 100644\n--- a/drivers/net/idpf/idpf_ethdev.h\n+++ b/drivers/net/idpf/idpf_ethdev.h\n@@ -81,11 +81,6 @@ struct idpf_adapter_ext {\n \n \tuint16_t used_vecs_num;\n \n-\tbool rx_vec_allowed;\n-\tbool tx_vec_allowed;\n-\tbool rx_use_avx512;\n-\tbool tx_use_avx512;\n-\n \t/* For PTP */\n \tuint64_t time_hw;\n };\ndiff --git a/drivers/net/idpf/idpf_rxtx.c b/drivers/net/idpf/idpf_rxtx.c\nindex 0b10e4248b..068eb8000e 100644\n--- a/drivers/net/idpf/idpf_rxtx.c\n+++ b/drivers/net/idpf/idpf_rxtx.c\n@@ -2221,25 +2221,24 @@ idpf_set_rx_function(struct rte_eth_dev *dev)\n {\n \tstruct idpf_vport *vport = dev->data->dev_private;\n #ifdef RTE_ARCH_X86\n-\tstruct idpf_adapter_ext *ad = IDPF_ADAPTER_TO_EXT(vport->adapter);\n \tstruct idpf_rx_queue *rxq;\n \tint i;\n \n \tif (idpf_rx_vec_dev_check_default(dev) == IDPF_VECTOR_PATH &&\n \t rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) {\n-\t\tad->rx_vec_allowed = true;\n+\t\tvport->rx_vec_allowed = true;\n \n \t\tif (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_512)\n #ifdef CC_AVX512_SUPPORT\n \t\t\tif (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) == 1 &&\n \t\t\t rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW) == 1)\n-\t\t\t\tad->rx_use_avx512 = true;\n+\t\t\t\tvport->rx_use_avx512 = true;\n #else\n \t\tPMD_DRV_LOG(NOTICE,\n \t\t\t \"AVX512 is not supported in build env\");\n #endif /* CC_AVX512_SUPPORT */\n \t} else {\n-\t\tad->rx_vec_allowed = false;\n+\t\tvport->rx_vec_allowed = false;\n \t}\n #endif /* RTE_ARCH_X86 */\n \n@@ -2247,13 +2246,13 @@ idpf_set_rx_function(struct rte_eth_dev *dev)\n \tif (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) {\n \t\tdev->rx_pkt_burst = idpf_splitq_recv_pkts;\n \t} else {\n-\t\tif (ad->rx_vec_allowed) {\n+\t\tif (vport->rx_vec_allowed) {\n \t\t\tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\t\t\trxq = dev->data->rx_queues[i];\n \t\t\t\t(void)idpf_singleq_rx_vec_setup(rxq);\n \t\t\t}\n #ifdef CC_AVX512_SUPPORT\n-\t\t\tif (ad->rx_use_avx512) {\n+\t\t\tif (vport->rx_use_avx512) {\n \t\t\t\tdev->rx_pkt_burst = idpf_singleq_recv_pkts_avx512;\n \t\t\t\treturn;\n \t\t\t}\n@@ -2275,7 +2274,6 @@ idpf_set_tx_function(struct rte_eth_dev *dev)\n {\n \tstruct idpf_vport *vport = dev->data->dev_private;\n #ifdef RTE_ARCH_X86\n-\tstruct idpf_adapter_ext *ad = IDPF_ADAPTER_TO_EXT(vport->adapter);\n #ifdef CC_AVX512_SUPPORT\n \tstruct idpf_tx_queue *txq;\n \tint i;\n@@ -2283,18 +2281,18 @@ idpf_set_tx_function(struct rte_eth_dev *dev)\n \n \tif (idpf_rx_vec_dev_check_default(dev) == IDPF_VECTOR_PATH &&\n \t rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) {\n-\t\tad->tx_vec_allowed = true;\n+\t\tvport->tx_vec_allowed = true;\n \t\tif (rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_512)\n #ifdef CC_AVX512_SUPPORT\n \t\t\tif (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) == 1 &&\n \t\t\t rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW) == 1)\n-\t\t\t\tad->tx_use_avx512 = true;\n+\t\t\t\tvport->tx_use_avx512 = true;\n #else\n \t\tPMD_DRV_LOG(NOTICE,\n \t\t\t \"AVX512 is not supported in build env\");\n #endif /* CC_AVX512_SUPPORT */\n \t} else {\n-\t\tad->tx_vec_allowed = false;\n+\t\tvport->tx_vec_allowed = false;\n \t}\n #endif /* RTE_ARCH_X86 */\n \n@@ -2303,9 +2301,9 @@ idpf_set_tx_function(struct rte_eth_dev *dev)\n \t\tdev->tx_pkt_prepare = idpf_prep_pkts;\n \t} else {\n #ifdef RTE_ARCH_X86\n-\t\tif (ad->tx_vec_allowed) {\n+\t\tif (vport->tx_vec_allowed) {\n #ifdef CC_AVX512_SUPPORT\n-\t\t\tif (ad->tx_use_avx512) {\n+\t\t\tif (vport->tx_use_avx512) {\n \t\t\t\tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\t\t\t\ttxq = dev->data->tx_queues[i];\n \t\t\t\t\tif (txq == NULL)\n", "prefixes": [ "v6", "10/19" ] }{ "id": 123025, "url": "