Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7239/?format=api
https://patches.dpdk.org/api/patches/7239/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1443504682-17752-2-git-send-email-wenzhuo.lu@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": "<1443504682-17752-2-git-send-email-wenzhuo.lu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1443504682-17752-2-git-send-email-wenzhuo.lu@intel.com", "date": "2015-09-29T05:31:17", "name": "[dpdk-dev,v2,1/6] lib/librte_ether: modify the structures for fdir new modes", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8fa839700df73a87771e6e837aa04925245206cb", "submitter": { "id": 258, "url": "https://patches.dpdk.org/api/people/258/?format=api", "name": "Wenzhuo Lu", "email": "wenzhuo.lu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1443504682-17752-2-git-send-email-wenzhuo.lu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7239/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7239/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 E17E65699;\n\tTue, 29 Sep 2015 07:31:45 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id B233D902\n\tfor <dev@dpdk.org>; Tue, 29 Sep 2015 07:31:44 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 28 Sep 2015 22:31:43 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 28 Sep 2015 22:31:43 -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 t8T5VfJD018988;\n\tTue, 29 Sep 2015 13:31:41 +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 t8T5Vbr2017794; Tue, 29 Sep 2015 13:31:39 +0800", "(from wenzhuol@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t8T5Vbe1017790; \n\tTue, 29 Sep 2015 13:31:37 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,606,1437462000\"; d=\"scan'208\";a=\"815190965\"", "From": "Wenzhuo Lu <wenzhuo.lu@intel.com>", "To": "dev@dpdk.org", "Date": "Tue, 29 Sep 2015 13:31:17 +0800", "Message-Id": "<1443504682-17752-2-git-send-email-wenzhuo.lu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1443504682-17752-1-git-send-email-wenzhuo.lu@intel.com>", "References": "<1443161125-1035-1-git-send-email-wenzhuo.lu@intel.com>\n\t<1443504682-17752-1-git-send-email-wenzhuo.lu@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 1/6] lib/librte_ether: modify the structures\n\tfor fdir new modes", "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": "Define the new modes and modify the filter and mask structures for\nthe mac vlan and tunnel modes.\n\nSigned-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>\n---\n lib/librte_ether/rte_eth_ctrl.h | 69 ++++++++++++++++++++++++++++++-----------\n 1 file changed, 51 insertions(+), 18 deletions(-)", "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex 26b7b33..383dc59 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -248,6 +248,17 @@ enum rte_eth_tunnel_type {\n };\n \n /**\n+ * Flow Director setting modes: none, signature or perfect.\n+ */\n+enum rte_fdir_mode {\n+\tRTE_FDIR_MODE_NONE = 0, /**< Disable FDIR support. */\n+\tRTE_FDIR_MODE_SIGNATURE, /**< Enable FDIR signature filter mode. */\n+\tRTE_FDIR_MODE_PERFECT, /**< Enable FDIR perfect filter mode for IP. */\n+\tRTE_FDIR_MODE_PERFECT_MAC_VLAN, /**< Enable FDIR filter mode - MAC VLAN. */\n+\tRTE_FDIR_MODE_PERFECT_TUNNEL, /**< Enable FDIR filter mode - tunnel. */\n+};\n+\n+/**\n * filter type of tunneling packet\n */\n #define ETH_TUNNEL_FILTER_OMAC 0x01 /**< filter by outer MAC addr */\n@@ -377,18 +388,46 @@ struct rte_eth_sctpv6_flow {\n };\n \n /**\n+ * A structure used to define the input for MAC VLAN flow\n+ */\n+struct rte_eth_mac_vlan_flow {\n+\tstruct ether_addr mac_addr; /**< Mac address to match. */\n+};\n+\n+/**\n+ * Tunnel type for flow director.\n+ */\n+enum rte_eth_fdir_tunnel_type {\n+\tRTE_FDIR_TUNNEL_TYPE_NVGRE = 0,\n+\tRTE_FDIR_TUNNEL_TYPE_VXLAN,\n+\tRTE_FDIR_TUNNEL_TYPE_UNKNOWN,\n+};\n+\n+/**\n+ * A structure used to define the input for tunnel flow, now it's VxLAN or\n+ * NVGRE\n+ */\n+struct rte_eth_tunnel_flow {\n+\tenum rte_eth_fdir_tunnel_type tunnel_type; /**< Tunnel type to match. */\n+\tuint32_t tunnel_id; /**< Tunnel ID to match. TNI, VNI... */\n+\tstruct ether_addr mac_addr; /**< Mac address to match. */\n+};\n+\n+/**\n * An union contains the inputs for all types of flow\n */\n union rte_eth_fdir_flow {\n-\tstruct rte_eth_l2_flow l2_flow;\n-\tstruct rte_eth_udpv4_flow udp4_flow;\n-\tstruct rte_eth_tcpv4_flow tcp4_flow;\n-\tstruct rte_eth_sctpv4_flow sctp4_flow;\n-\tstruct rte_eth_ipv4_flow ip4_flow;\n-\tstruct rte_eth_udpv6_flow udp6_flow;\n-\tstruct rte_eth_tcpv6_flow tcp6_flow;\n-\tstruct rte_eth_sctpv6_flow sctp6_flow;\n-\tstruct rte_eth_ipv6_flow ipv6_flow;\n+\tstruct rte_eth_l2_flow l2_flow;\n+\tstruct rte_eth_udpv4_flow udp4_flow;\n+\tstruct rte_eth_tcpv4_flow tcp4_flow;\n+\tstruct rte_eth_sctpv4_flow sctp4_flow;\n+\tstruct rte_eth_ipv4_flow ip4_flow;\n+\tstruct rte_eth_udpv6_flow udp6_flow;\n+\tstruct rte_eth_tcpv6_flow tcp6_flow;\n+\tstruct rte_eth_sctpv6_flow sctp6_flow;\n+\tstruct rte_eth_ipv6_flow ipv6_flow;\n+\tstruct rte_eth_mac_vlan_flow mac_vlan_flow;\n+\tstruct rte_eth_tunnel_flow tunnel_flow;\n };\n \n /**\n@@ -465,6 +504,9 @@ struct rte_eth_fdir_masks {\n \tstruct rte_eth_ipv6_flow ipv6_mask;\n \tuint16_t src_port_mask;\n \tuint16_t dst_port_mask;\n+\tuint8_t mac_addr_mask; /** Per byte MAC address mask */\n+\tuint32_t tunnel_id_mask; /** tunnel ID mask */\n+\tuint8_t tunnel_type_mask;\n };\n \n /**\n@@ -515,15 +557,6 @@ struct rte_eth_fdir_flex_conf {\n \t/**< Flex mask configuration for each flow type */\n };\n \n-/**\n- * Flow Director setting modes: none, signature or perfect.\n- */\n-enum rte_fdir_mode {\n-\tRTE_FDIR_MODE_NONE = 0, /**< Disable FDIR support. */\n-\tRTE_FDIR_MODE_SIGNATURE, /**< Enable FDIR signature filter mode. */\n-\tRTE_FDIR_MODE_PERFECT, /**< Enable FDIR perfect filter mode. */\n-};\n-\n #define UINT32_BIT (CHAR_BIT * sizeof(uint32_t))\n #define RTE_FLOW_MASK_ARRAY_SIZE \\\n \t(RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT)\n", "prefixes": [ "dpdk-dev", "v2", "1/6" ] }{ "id": 7239, "url": "