Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/547/?format=api
https://patches.dpdk.org/api/patches/547/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-10-git-send-email-jingjing.wu@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": "<1411711418-12881-10-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1411711418-12881-10-git-send-email-jingjing.wu@intel.com", "date": "2014-09-26T06:03:27", "name": "[dpdk-dev,v3,09/20] i40e: report flow director match info to mbuf", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e64e8d04b54251593e98888e0e9b40c9f8e42ded", "submitter": { "id": 47, "url": "https://patches.dpdk.org/api/people/47/?format=api", "name": "Jingjing Wu", "email": "jingjing.wu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-10-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/547/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/547/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 610857E2C;\n\tFri, 26 Sep 2014 07:57:50 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id B47937E17\n\tfor <dev@dpdk.org>; Fri, 26 Sep 2014 07:57:46 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 25 Sep 2014 23:04:05 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 25 Sep 2014 22:58:02 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s8Q642OH029135;\n\tFri, 26 Sep 2014 14:04:02 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s8Q640Gk012979; Fri, 26 Sep 2014 14:04:02 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8Q640QX012975; \n\tFri, 26 Sep 2014 14:04:00 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"391863680\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 26 Sep 2014 14:03:27 +0800", "Message-Id": "<1411711418-12881-10-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>", "References": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 09/20] i40e: report flow director match info\n\tto mbuf", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "support to set the FDIR flag and report FD_ID in mbuf if match\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\nAcked-by: Chen Jing D(Mark) <jing.d.chen@intel.com>\nAcked-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_pmd_i40e/i40e_rxtx.c | 48 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 48 insertions(+)", "diff": "diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c\nindex 4435367..c067cdd 100644\n--- a/lib/librte_pmd_i40e/i40e_rxtx.c\n+++ b/lib/librte_pmd_i40e/i40e_rxtx.c\n@@ -105,6 +105,10 @@ i40e_rxd_status_to_pkt_flags(uint64_t qword)\n \t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSS_HASH) ==\n \t\t\tI40E_RX_DESC_FLTSTAT_RSS_HASH) ? PKT_RX_RSS_HASH : 0;\n \n+\t/* Check if FDIR Match */\n+\tflags |= (uint16_t)(qword & (1 << I40E_RX_DESC_STATUS_FLM_SHIFT) ?\n+\t\t\t\t\t\t\tPKT_RX_FDIR : 0);\n+\n \treturn flags;\n }\n \n@@ -641,6 +645,22 @@ i40e_rx_scan_hw_ring(struct i40e_rx_queue *rxq)\n \t\t\tif (pkt_flags & PKT_RX_RSS_HASH)\n \t\t\t\tmb->hash.rss = rte_le_to_cpu_32(\\\n \t\t\t\t\trxdp->wb.qword0.hi_dword.rss);\n+\n+\t\t\tif (pkt_flags & PKT_RX_FDIR) {\n+#ifdef RTE_LIBRTE_I40E_16BYTE_RX_DESC\n+\t\t\t\tif (((qword1 >> I40E_RX_DESC_STATUS_FLTSTAT_SHIFT) &\n+\t\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSS_HASH) ==\n+\t\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSV_FD_ID)\n+\t\t\t\t\tmb->hash.fdir.id = (uint16_t)\n+\t\t\t\t\t\trte_le_to_cpu_32(rxdp[j].wb.qword0.hi_dword.fd);\n+#else\n+\t\t\t\tif (((rxdp[j].wb.qword2.ext_status >>\n+\t\t\t\t\tI40E_RX_DESC_EXT_STATUS_FLEXBH_SHIFT) &\n+\t\t\t\t\t0x03) == 0x01)\n+\t\t\t\t\tmb->hash.fdir.id = (uint16_t)\n+\t\t\t\t\t\trte_le_to_cpu_32(rxdp[j].wb.qword3.hi_dword.fd_id);\n+#endif\n+\t\t\t}\n \t\t}\n \n \t\tfor (j = 0; j < I40E_LOOK_AHEAD; j++)\n@@ -877,6 +897,20 @@ i40e_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \t\tif (pkt_flags & PKT_RX_RSS_HASH)\n \t\t\trxm->hash.rss =\n \t\t\t\trte_le_to_cpu_32(rxd.wb.qword0.hi_dword.rss);\n+\t\tif (pkt_flags & PKT_RX_FDIR) {\n+#ifdef RTE_LIBRTE_I40E_16BYTE_RX_DESC\n+\t\t\tif (((qword1 >> I40E_RX_DESC_STATUS_FLTSTAT_SHIFT) &\n+\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSS_HASH) ==\n+\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSV_FD_ID)\n+\t\t\t\trxm->hash.fdir.id = (uint16_t)\n+\t\t\t\t\trte_le_to_cpu_32(rxd.wb.qword0.hi_dword.fd);\n+#else\n+\t\t\tif (((rxd.wb.qword2.ext_status >> I40E_RX_DESC_EXT_STATUS_FLEXBH_SHIFT) &\n+\t\t\t\t0x03) == 0x01)\n+\t\t\t\trxm->hash.fdir.id = (uint16_t)\n+\t\t\t\t\trte_le_to_cpu_32(rxd.wb.qword3.hi_dword.fd_id);\n+#endif\n+\t\t}\n \n \t\trx_pkts[nb_rx++] = rxm;\n \t}\n@@ -1031,6 +1065,20 @@ i40e_recv_scattered_pkts(void *rx_queue,\n \t\tif (pkt_flags & PKT_RX_RSS_HASH)\n \t\t\trxm->hash.rss =\n \t\t\t\trte_le_to_cpu_32(rxd.wb.qword0.hi_dword.rss);\n+\t\tif (pkt_flags & PKT_RX_FDIR) {\n+#ifdef RTE_LIBRTE_I40E_16BYTE_RX_DESC\n+\t\t\tif (((qword1 >> I40E_RX_DESC_STATUS_FLTSTAT_SHIFT) &\n+\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSS_HASH) ==\n+\t\t\t\t\tI40E_RX_DESC_FLTSTAT_RSV_FD_ID)\n+\t\t\t\trxm->hash.fdir.id = (uint16_t)\n+\t\t\t\t\trte_le_to_cpu_32(rxd.wb.qword0.hi_dword.fd);\n+#else\n+\t\t\tif (((rxd.wb.qword2.ext_status >> I40E_RX_DESC_EXT_STATUS_FLEXBH_SHIFT) &\n+\t\t\t\t0x03) == 0x01)\n+\t\t\t\trxm->hash.fdir.id = (uint16_t)\n+\t\t\t\t\trte_le_to_cpu_32(rxd.wb.qword3.hi_dword.fd_id);\n+#endif\n+\t\t}\n \n \t\t/* Prefetch data of first segment, if configured to do so. */\n \t\trte_prefetch0(RTE_PTR_ADD(first_seg->buf_addr,\n", "prefixes": [ "dpdk-dev", "v3", "09/20" ] }{ "id": 547, "url": "