Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1413/?format=api
https://patches.dpdk.org/api/patches/1413/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416530816-2159-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": "<1416530816-2159-10-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1416530816-2159-10-git-send-email-jingjing.wu@intel.com", "date": "2014-11-21T00:46:43", "name": "[dpdk-dev,v6,09/22] mbuf: extend fdir field", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "583b698702f9e19daf0de6928979bac2c8556054", "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/1416530816-2159-10-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1413/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1413/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 8112D7FB9;\n\tFri, 21 Nov 2014 01:36:53 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id B252B7FAD\n\tfor <dev@dpdk.org>; Fri, 21 Nov 2014 01:36:51 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 20 Nov 2014 16:47:23 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 20 Nov 2014 16:47:22 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id sAL0lKZ4003152;\n\tFri, 21 Nov 2014 08:47:20 +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 sAL0lI6m002257; Fri, 21 Nov 2014 08:47:20 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sAL0lIAV002253; \n\tFri, 21 Nov 2014 08:47:18 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,426,1413270000\"; d=\"scan'208\";a=\"640843519\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 21 Nov 2014 08:46:43 +0800", "Message-Id": "<1416530816-2159-10-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "References": "<1414654006-7472-1-git-send-email-jingjing.wu@intel.com>\n\t<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 09/22] mbuf: extend fdir field", "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": "fdir field in rte_mbuf is extened to support flex bytes reported when fdir match.\n8 flex bytes can be reported in maximum.\nThe reported flex bytes are part of flexible payload.\n\nSigned-off-by: jingjing.wu <jingjing.wu@intel.com>\n---\n lib/librte_mbuf/rte_mbuf.h | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h\nindex f5f8658..5899e5c 100644\n--- a/lib/librte_mbuf/rte_mbuf.h\n+++ b/lib/librte_mbuf/rte_mbuf.h\n@@ -77,7 +77,7 @@ extern \"C\" {\n */\n #define PKT_RX_VLAN_PKT (1ULL << 0) /**< RX packet is a 802.1q VLAN packet. */\n #define PKT_RX_RSS_HASH (1ULL << 1) /**< RX packet with RSS hash result. */\n-#define PKT_RX_FDIR (1ULL << 2) /**< RX packet with FDIR infos. */\n+#define PKT_RX_FDIR (1ULL << 2) /**< RX packet with FDIR match indicate. */\n #define PKT_RX_L4_CKSUM_BAD (1ULL << 3) /**< L4 cksum of RX pkt. is not OK. */\n #define PKT_RX_IP_CKSUM_BAD (1ULL << 4) /**< IP cksum of RX pkt. is not OK. */\n #define PKT_RX_EIP_CKSUM_BAD (0ULL << 0) /**< External IP header checksum error. */\n@@ -93,6 +93,8 @@ extern \"C\" {\n #define PKT_RX_IEEE1588_TMST (1ULL << 10) /**< RX IEEE1588 L2/L4 timestamped packet.*/\n #define PKT_RX_TUNNEL_IPV4_HDR (1ULL << 11) /**< RX tunnel packet with IPv4 header.*/\n #define PKT_RX_TUNNEL_IPV6_HDR (1ULL << 12) /**< RX tunnel packet with IPv6 header. */\n+#define PKT_RX_FDIR_ID (1ULL << 13) /**< FD id reported if FDIR match. */\n+#define PKT_RX_FDIR_FLX (1ULL << 14) /**< Flexible bytes reported if FDIR match. */\n \n #define PKT_TX_VLAN_PKT (1ULL << 55) /**< TX packet is a 802.1q VLAN packet. */\n #define PKT_TX_IP_CKSUM (1ULL << 54) /**< IP cksum of TX pkt. computed by NIC. */\n@@ -181,8 +183,17 @@ struct rte_mbuf {\n \tunion {\n \t\tuint32_t rss; /**< RSS hash result if RSS enabled */\n \t\tstruct {\n-\t\t\tuint16_t hash;\n-\t\t\tuint16_t id;\n+\t\t\tunion {\n+\t\t\t\tstruct {\n+\t\t\t\t\tuint16_t hash;\n+\t\t\t\t\tuint16_t id;\n+\t\t\t\t};\n+\t\t\t\tuint32_t lo;\n+\t\t\t\t/**< Second 4 flexible bytes */\n+\t\t\t};\n+\t\t\tuint32_t hi;\n+\t\t\t/**< First 4 flexible bytes or FD ID, dependent on\n+\t\t\t PKT_RX_FDIR_* flag in ol_flags. */\n \t\t} fdir; /**< Filter identifier if FDIR enabled */\n \t\tuint32_t sched; /**< Hierarchical scheduler */\n \t\tuint32_t usr;\t /**< User defined tags. See @rte_distributor_process */\n", "prefixes": [ "dpdk-dev", "v6", "09/22" ] }{ "id": 1413, "url": "