Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120565/?format=api
https://patches.dpdk.org/api/patches/120565/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221208075309.37852-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": "<20221208075309.37852-11-beilei.xing@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221208075309.37852-11-beilei.xing@intel.com", "date": "2022-12-08T07:53:04", "name": "[10/15] 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/20221208075309.37852-11-beilei.xing@intel.com/mbox/", "series": [ { "id": 26041, "url": "https://patches.dpdk.org/api/series/26041/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26041", "date": "2022-12-08T07:52:54", "name": "net/idpf: refactor idpf pmd", "version": 1, "mbox": "https://patches.dpdk.org/series/26041/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/120565/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/120565/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 42BAAA00C2;\n\tThu, 8 Dec 2022 08:54:38 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6BA0642D47;\n\tThu, 8 Dec 2022 08:53:43 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 1E40F42D5D\n for <dev@dpdk.org>; Thu, 8 Dec 2022 08:53:41 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Dec 2022 23:53:40 -0800", "from dpdk-beileix-3.sh.intel.com ([10.67.110.253])\n by fmsmga004.fm.intel.com with ESMTP; 07 Dec 2022 23:53:39 -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=1670486022; x=1702022022;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=0+SjOE2G3cVZixT948fiCygtlDTI7wXrx4M7PSLTYQA=;\n b=j/rKjkV8qO1T7GVqjtRvjHktDWfH7AfJwTAFI8xzqJ//dRq5GFnO37Zz\n lyG71xRrgnBec4LfkoI1Z7DZPilMg4CMkhIpXuq2D+I3f4n7hb7f9pj55\n lgcOGT25XcHUEEPFRpXaICZhUMH0smQhR0aaY4W3NdiuPASZPoANfmh3I\n NUddIUt+43SwdVVr2qVUUXWnScdgbKJXsppX8mRQhXWuiRCBLD9MF475K\n e+qHRIcWP+Xl17IxK4MUCV5GKMbqbVKVZrF6r1V9wNuQ7LP4kHst9falt\n zOLigzATB695bDHiqDihDQQ4/JP+ghWxOuTbYSIWW6gvrBM/lHiE66rq6 w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10554\"; a=\"318244205\"", "E=Sophos;i=\"5.96,227,1665471600\"; d=\"scan'208\";a=\"318244205\"", "E=McAfee;i=\"6500,9779,10554\"; a=\"715499336\"", "E=Sophos;i=\"5.96,227,1665471600\"; d=\"scan'208\";a=\"715499336\"" ], "X-ExtLoop1": "1", "From": "beilei.xing@intel.com", "To": "jingjing.wu@intel.com,\n\tqi.z.zhang@intel.com", "Cc": "dev@dpdk.org,\n\tBeilei Xing <beilei.xing@intel.com>", "Subject": "[PATCH 10/15] common/idpf: add vector flags in vport", "Date": "Thu, 8 Dec 2022 07:53:04 +0000", "Message-Id": "<20221208075309.37852-11-beilei.xing@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20221208075309.37852-1-beilei.xing@intel.com>", "References": "<20221208075309.37852-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\nAdd vector flags in idpf_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 97db8d9f53..78f41554eb 100644\n--- a/drivers/common/idpf/idpf_common_device.h\n+++ b/drivers/common/idpf/idpf_common_device.h\n@@ -100,6 +100,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 2d7876489b..130c02030b 100644\n--- a/drivers/net/idpf/idpf_ethdev.h\n+++ b/drivers/net/idpf/idpf_ethdev.h\n@@ -80,11 +80,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 0c9c7fee29..f0eff493f8 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": [ "10/15" ] }{ "id": 120565, "url": "