Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/59868/?format=api
http://patches.dpdk.org/api/patches/59868/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190926114818.91063-3-haiyue.wang@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": "<20190926114818.91063-3-haiyue.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190926114818.91063-3-haiyue.wang@intel.com", "date": "2019-09-26T11:48:16", "name": "[v1,2/4] net/i40e: support to get the Rx/Tx burst mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "22002ed6c2e0328963fe6c70768b8900ae4b4111", "submitter": { "id": 1044, "url": "http://patches.dpdk.org/api/people/1044/?format=api", "name": "Wang, Haiyue", "email": "haiyue.wang@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190926114818.91063-3-haiyue.wang@intel.com/mbox/", "series": [ { "id": 6548, "url": "http://patches.dpdk.org/api/series/6548/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6548", "date": "2019-09-26T11:48:14", "name": "get Rx/Tx packet burst mode information", "version": 1, "mbox": "http://patches.dpdk.org/series/6548/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/59868/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/59868/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BC8921B94A;\n\tThu, 26 Sep 2019 13:53:59 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 639661B079\n\tfor <dev@dpdk.org>; Thu, 26 Sep 2019 13:53:55 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Sep 2019 04:53:55 -0700", "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.119.153])\n\tby fmsmga005.fm.intel.com with ESMTP; 26 Sep 2019 04:53:53 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.64,551,1559545200\"; d=\"scan'208\";a=\"389581513\"", "From": "Haiyue Wang <haiyue.wang@intel.com>", "To": "dev@dpdk.org,\n\tferruh.yigit@intel.com,\n\txiaolong.ye@intel.com", "Cc": "ray.kinsella@intel.com, bernard.iremonger@intel.com,\n\tchenmin.sun@intel.com, Haiyue Wang <haiyue.wang@intel.com>", "Date": "Thu, 26 Sep 2019 19:48:16 +0800", "Message-Id": "<20190926114818.91063-3-haiyue.wang@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190926114818.91063-1-haiyue.wang@intel.com>", "References": "<20190926114818.91063-1-haiyue.wang@intel.com>", "Subject": "[dpdk-dev] [PATCH v1 2/4] net/i40e: support to get the Rx/Tx burst\n\tmode", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "According to the selected Rx/Tx burst function name, retrieve the\nrelated burst mode options.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\nAcked-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 2 +\n drivers/net/i40e/i40e_ethdev.h | 4 ++\n drivers/net/i40e/i40e_rxtx.c | 72 ++++++++++++++++++++++++++++++++++\n 3 files changed, 78 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 76cd9f510..e212a7adb 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -493,6 +493,8 @@ static const struct eth_dev_ops i40e_eth_dev_ops = {\n \t.filter_ctrl = i40e_dev_filter_ctrl,\n \t.rxq_info_get = i40e_rxq_info_get,\n \t.txq_info_get = i40e_txq_info_get,\n+\t.rx_burst_mode_get = i40e_rx_burst_mode_get,\n+\t.tx_burst_mode_get = i40e_tx_burst_mode_get,\n \t.mirror_rule_set = i40e_mirror_rule_set,\n \t.mirror_rule_reset = i40e_mirror_rule_reset,\n \t.timesync_enable = i40e_timesync_enable,\ndiff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h\nindex 261954b9a..abbda1ae4 100644\n--- a/drivers/net/i40e/i40e_ethdev.h\n+++ b/drivers/net/i40e/i40e_ethdev.h\n@@ -1209,6 +1209,10 @@ void i40e_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tstruct rte_eth_rxq_info *qinfo);\n void i40e_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tstruct rte_eth_txq_info *qinfo);\n+void i40e_rx_burst_mode_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t\t struct rte_eth_burst_mode *mode);\n+void i40e_tx_burst_mode_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t\t struct rte_eth_burst_mode *mode);\n struct i40e_ethertype_filter *\n i40e_sw_ethertype_filter_lookup(struct i40e_ethertype_rule *ethertype_rule,\n \t\t\tconst struct i40e_ethertype_filter_input *input);\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 692c3bab4..d27a0bc87 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -3028,6 +3028,49 @@ i40e_set_rx_function(struct rte_eth_dev *dev)\n \t}\n }\n \n+void\n+i40e_rx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id,\n+\t\t struct rte_eth_burst_mode *mode)\n+{\n+\teth_rx_burst_t pkt_burst = dev->rx_pkt_burst;\n+\tuint64_t options;\n+\n+\tif (pkt_burst == i40e_recv_scattered_pkts)\n+\t\toptions = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_SCATTERED;\n+\telse if (pkt_burst == i40e_recv_pkts_bulk_alloc)\n+\t\toptions = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_BULK_ALLOC;\n+\telse if (pkt_burst == i40e_recv_pkts)\n+\t\toptions = RTE_ETH_BURST_SCALAR;\n+#ifdef RTE_ARCH_X86\n+\telse if (pkt_burst == i40e_recv_scattered_pkts_vec_avx2)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_AVX2 |\n+\t\t\t RTE_ETH_BURST_SCATTERED;\n+\telse if (pkt_burst == i40e_recv_pkts_vec_avx2)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_AVX2;\n+\telse if (pkt_burst == i40e_recv_scattered_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_SSE |\n+\t\t\t RTE_ETH_BURST_SCATTERED;\n+\telse if (pkt_burst == i40e_recv_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_SSE;\n+#elif defined(RTE_ARCH_ARM64)\n+\telse if (pkt_burst == i40e_recv_scattered_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_NEON |\n+\t\t\t RTE_ETH_BURST_SCATTERED;\n+\telse if (pkt_burst == i40e_recv_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_NEON;\n+#elif defined(RTE_ARCH_PPC_64)\n+\telse if (pkt_burst == i40e_recv_scattered_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_ALTIVEC |\n+\t\t\t RTE_ETH_BURST_SCATTERED;\n+\telse if (pkt_burst == i40e_recv_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_ALTIVEC;\n+#endif\n+\telse\n+\t\toptions = 0;\n+\n+\tmode->options = options;\n+}\n+\n void __attribute__((cold))\n i40e_set_tx_function_flag(struct rte_eth_dev *dev, struct i40e_tx_queue *txq)\n {\n@@ -3121,6 +3164,35 @@ i40e_set_tx_function(struct rte_eth_dev *dev)\n \t}\n }\n \n+void\n+i40e_tx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id,\n+\t\t struct rte_eth_burst_mode *mode)\n+{\n+\teth_tx_burst_t pkt_burst = dev->tx_pkt_burst;\n+\tuint64_t options;\n+\n+\tif (pkt_burst == i40e_xmit_pkts_simple)\n+\t\toptions = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_SIMPLE;\n+\telse if (pkt_burst == i40e_xmit_pkts)\n+\t\toptions = RTE_ETH_BURST_SCALAR;\n+#ifdef RTE_ARCH_X86\n+\telse if (pkt_burst == i40e_xmit_pkts_vec_avx2)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_AVX2;\n+\telse if (pkt_burst == i40e_xmit_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_SSE;\n+#elif defined(RTE_ARCH_ARM64)\n+\telse if (pkt_burst == i40e_xmit_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_NEON;\n+#elif defined(RTE_ARCH_PPC_64)\n+\telse if (pkt_burst == i40e_xmit_pkts_vec)\n+\t\toptions = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_ALTIVEC;\n+#endif\n+\telse\n+\t\toptions = 0;\n+\n+\tmode->options = options;\n+}\n+\n void __attribute__((cold))\n i40e_set_default_ptype_table(struct rte_eth_dev *dev)\n {\n", "prefixes": [ "v1", "2/4" ] }{ "id": 59868, "url": "