Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/81075/?format=api
http://patches.dpdk.org/api/patches/81075/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201016094431.96889-4-jia.guo@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": "<20201016094431.96889-4-jia.guo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201016094431.96889-4-jia.guo@intel.com", "date": "2020-10-16T09:44:29", "name": "[v5,3/5] net/ice: fix vector rx burst for ice", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "404575da44f56de896b71d3e4acee525cce0d993", "submitter": { "id": 507, "url": "http://patches.dpdk.org/api/people/507/?format=api", "name": "Guo, Jia", "email": "jia.guo@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/20201016094431.96889-4-jia.guo@intel.com/mbox/", "series": [ { "id": 13053, "url": "http://patches.dpdk.org/api/series/13053/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13053", "date": "2020-10-16T09:44:26", "name": "fix vector rx burst for PMDs", "version": 5, "mbox": "http://patches.dpdk.org/series/13053/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/81075/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/81075/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A4893A04DB;\n\tFri, 16 Oct 2020 11:52:17 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B5B2B1EC72;\n\tFri, 16 Oct 2020 11:51:21 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id CFA9B1EC72\n for <dev@dpdk.org>; Fri, 16 Oct 2020 11:51:19 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Oct 2020 02:51:19 -0700", "from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128])\n by orsmga004.jf.intel.com with ESMTP; 16 Oct 2020 02:51:15 -0700" ], "IronPort-SDR": [ "\n FYy95ozG3eADsQY8B7SHIf0RW6mCvGCDo7e10c4cyUfK7QG4EpIxy5fY21IXuGyjToXCtocIL8\n VwVI33YUamtA==", "\n LiACOgtZ4mlOwmOEVjpxOYz0gkgoEFs8mbNk3EKmLYtMDVZCHMBiCS/5JhRyuDrjr4je6pXzSi\n eExchY00nxjA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9775\"; a=\"165806238\"", "E=Sophos;i=\"5.77,382,1596524400\"; d=\"scan'208\";a=\"165806238\"", "E=Sophos;i=\"5.77,382,1596524400\"; d=\"scan'208\";a=\"464629484\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Jeff Guo <jia.guo@intel.com>", "To": "jingjing.wu@intel.com, qi.z.zhang@intel.com, beilei.xing@intel.com,\n haiyue.wang@intel.com, qiming.yang@intel.com", "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, mb@smartsharesystems.com,\n stephen@networkplumber.org, barbette@kth.se, Feifei.wang2@arm.com,\n bruce.richardson@intel.com, jia.guo@intel.com, helin.zhang@intel.com,\n Yingya Han <yingyax.han@intel.com>", "Date": "Fri, 16 Oct 2020 17:44:29 +0800", "Message-Id": "<20201016094431.96889-4-jia.guo@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20201016094431.96889-1-jia.guo@intel.com>", "References": "<20200827075452.1751-1-jia.guo@intel.com>\n <20201016094431.96889-1-jia.guo@intel.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v5 3/5] net/ice: fix vector rx burst for ice", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The limitation of burst size in vector rx was removed, since it should\nretrieve as much received packets as possible. And also the scattered\nreceive path should use a wrapper function to achieve the goal of\nburst maximizing.\n\nBugzilla ID: 516\nFixes: c68a52b8b38c (\"net/ice: support vector SSE in Rx\")\n\nSigned-off-by: Jeff Guo <jia.guo@intel.com>\nTested-by: Yingya Han <yingyax.han@intel.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n---\n drivers/net/ice/ice_rxtx_vec_sse.c | 46 +++++++++++++++++++++++-------\n 1 file changed, 35 insertions(+), 11 deletions(-)", "diff": "diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net/ice/ice_rxtx_vec_sse.c\nindex 1afd96ac9d..e950c1b922 100644\n--- a/drivers/net/ice/ice_rxtx_vec_sse.c\n+++ b/drivers/net/ice/ice_rxtx_vec_sse.c\n@@ -254,10 +254,11 @@ ice_rx_desc_to_ptype_v(__m128i descs[4], struct rte_mbuf **rx_pkts,\n }\n \n /**\n+ * vPMD raw receive routine, only accept(nb_pkts >= ICE_DESCS_PER_LOOP)\n+ *\n * Notice:\n * - nb_pkts < ICE_DESCS_PER_LOOP, just return no packet\n- * - nb_pkts > ICE_VPMD_RX_BURST, only scan ICE_VPMD_RX_BURST\n- * numbers of DD bits\n+ * - floor align nb_pkts to a ICE_DESCS_PER_LOOP power-of-two\n */\n static inline uint16_t\n _ice_recv_raw_pkts_vec(struct ice_rx_queue *rxq, struct rte_mbuf **rx_pkts,\n@@ -314,9 +315,6 @@ _ice_recv_raw_pkts_vec(struct ice_rx_queue *rxq, struct rte_mbuf **rx_pkts,\n \tconst __m128i eop_check = _mm_set_epi64x(0x0000000200000002LL,\n \t\t\t\t\t\t 0x0000000200000002LL);\n \n-\t/* nb_pkts shall be less equal than ICE_MAX_RX_BURST */\n-\tnb_pkts = RTE_MIN(nb_pkts, ICE_MAX_RX_BURST);\n-\n \t/* nb_pkts has to be floor-aligned to ICE_DESCS_PER_LOOP */\n \tnb_pkts = RTE_ALIGN_FLOOR(nb_pkts, ICE_DESCS_PER_LOOP);\n \n@@ -560,15 +558,15 @@ ice_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \treturn _ice_recv_raw_pkts_vec(rx_queue, rx_pkts, nb_pkts, NULL);\n }\n \n-/* vPMD receive routine that reassembles scattered packets\n+/**\n+ * vPMD receive routine that reassembles single burst of 32 scattered packets\n+ *\n * Notice:\n * - nb_pkts < ICE_DESCS_PER_LOOP, just return no packet\n- * - nb_pkts > ICE_VPMD_RX_BURST, only scan ICE_VPMD_RX_BURST\n- * numbers of DD bits\n */\n-uint16_t\n-ice_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n-\t\t\t uint16_t nb_pkts)\n+static uint16_t\n+ice_recv_scattered_burst_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n+\t\t\t uint16_t nb_pkts)\n {\n \tstruct ice_rx_queue *rxq = rx_queue;\n \tuint8_t split_flags[ICE_VPMD_RX_BURST] = {0};\n@@ -602,6 +600,32 @@ ice_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n \t\t\t\t\t &split_flags[i]);\n }\n \n+/**\n+ * vPMD receive routine that reassembles scattered packets.\n+ */\n+uint16_t\n+ice_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,\n+\t\t\t uint16_t nb_pkts)\n+{\n+\tuint16_t retval = 0;\n+\n+\twhile (nb_pkts > ICE_VPMD_RX_BURST) {\n+\t\tuint16_t burst;\n+\n+\t\tburst = ice_recv_scattered_burst_vec(rx_queue,\n+\t\t\t\t\t\t rx_pkts + retval,\n+\t\t\t\t\t\t ICE_VPMD_RX_BURST);\n+\t\tretval += burst;\n+\t\tnb_pkts -= burst;\n+\t\tif (burst < ICE_VPMD_RX_BURST)\n+\t\t\treturn retval;\n+\t}\n+\n+\treturn retval + ice_recv_scattered_burst_vec(rx_queue,\n+\t\t\t\t\t\t rx_pkts + retval,\n+\t\t\t\t\t\t nb_pkts);\n+}\n+\n static inline void\n ice_vtx1(volatile struct ice_tx_desc *txdp, struct rte_mbuf *pkt,\n \t uint64_t flags)\n", "prefixes": [ "v5", "3/5" ] }{ "id": 81075, "url": "