Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/546/?format=api
https://patches.dpdk.org/api/patches/546/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-6-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-6-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1411711418-12881-6-git-send-email-jingjing.wu@intel.com", "date": "2014-09-26T06:03:23", "name": "[dpdk-dev,v3,05/20] lib/librte_ether: define structures for adding/deleting flow director", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "52fad9f247551d7fe095f51ec3d869adc367701b", "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-6-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/546/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/546/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 501B67E23;\n\tFri, 26 Sep 2014 07:57:49 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 341A87E10\n\tfor <dev@dpdk.org>; Fri, 26 Sep 2014 07:57:45 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 25 Sep 2014 23:04:04 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 25 Sep 2014 23:03:55 -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 s8Q63rLM027984;\n\tFri, 26 Sep 2014 14:03:53 +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 s8Q63pul012951; Fri, 26 Sep 2014 14:03:53 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8Q63pLW012947; \n\tFri, 26 Sep 2014 14:03:51 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.04,603,1406617200\"; d=\"scan'208\";a=\"579305062\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 26 Sep 2014 14:03:23 +0800", "Message-Id": "<1411711418-12881-6-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 05/20] lib/librte_ether: define structures for\n\tadding/deleting flow director", "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 structures to add or delete flow director filter\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_ether/rte_eth_ctrl.h | 159 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 159 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex 34ab278..df1ce4b 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -71,6 +71,165 @@ enum rte_filter_op {\n \tRTE_ETH_FILTER_OP_MAX,\n };\n \n+/**\n+ * Define all structures for Flow Director Filter type corresponding with specific operations.\n+ */\n+\n+/**\n+ * flow type\n+ */\n+enum rte_eth_flow_type {\n+\tRTE_ETH_FLOW_TYPE_NONE = 0x0,\n+\tRTE_ETH_FLOW_TYPE_UDPV4,\n+\tRTE_ETH_FLOW_TYPE_TCPV4,\n+\tRTE_ETH_FLOW_TYPE_SCTPV4,\n+\tRTE_ETH_FLOW_TYPE_IPV4_OTHER,\n+\tRTE_ETH_FLOW_TYPE_UDPV6,\n+\tRTE_ETH_FLOW_TYPE_TCPV6,\n+\tRTE_ETH_FLOW_TYPE_SCTPV6,\n+\tRTE_ETH_FLOW_TYPE_IPV6_OTHER,\n+};\n+\n+/**\n+ * A structure used to define the input for IPV4 UDP flow\n+ */\n+struct rte_eth_udpv4_flow {\n+\tuint32_t src_ip; /**< IPv4 source address to match. */\n+\tuint32_t dst_ip; /**< IPv4 destination address to match. */\n+\tuint16_t src_port; /**< UDP Source port to match. */\n+\tuint16_t dst_port; /**< UDP Destination port to match. */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV4 TCP flow\n+ */\n+struct rte_eth_tcpv4_flow {\n+\tuint32_t src_ip; /**< IPv4 source address to match. */\n+\tuint32_t dst_ip; /**< IPv4 destination address to match. */\n+\tuint16_t src_port; /**< TCP Source port to match. */\n+\tuint16_t dst_port; /**< TCP Destination port to match. */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV4 SCTP flow\n+ */\n+struct rte_eth_sctpv4_flow {\n+\tuint32_t src_ip; /**< IPv4 source address to match. */\n+\tuint32_t dst_ip; /**< IPv4 destination address to match. */\n+\tuint32_t verify_tag; /**< verify tag to match */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV4 flow\n+ */\n+struct rte_eth_ipv4_flow {\n+\tuint32_t src_ip; /**< IPv4 source address to match. */\n+\tuint32_t dst_ip; /**< IPv4 destination address to match. */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV6 UDP flow\n+ */\n+struct rte_eth_udpv6_flow {\n+\tuint32_t src_ip[4]; /**< IPv6 source address to match. */\n+\tuint32_t dst_ip[4]; /**< IPv6 destination address to match. */\n+\tuint16_t src_port; /**< UDP Source port to match. */\n+\tuint16_t dst_port; /**< UDP Destination port to match. */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV6 TCP flow\n+ */\n+struct rte_eth_tcpv6_flow {\n+\tuint32_t src_ip[4]; /**< IPv6 source address to match. */\n+\tuint32_t dst_ip[4]; /**< IPv6 destination address to match. */\n+\tuint16_t src_port; /**< TCP Source port to match. */\n+\tuint16_t dst_port; /**< TCP Destination port to match. */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV6 SCTP flow\n+ */\n+struct rte_eth_sctpv6_flow {\n+\tuint32_t src_ip[4]; /**< IPv6 source address to match. */\n+\tuint32_t dst_ip[4]; /**< IPv6 destination address to match. */\n+\tuint32_t verify_tag; /**< verify tag to match */\n+};\n+\n+/**\n+ * A structure used to define the input for IPV6 flow\n+ */\n+struct rte_eth_ipv6_flow {\n+\tuint32_t src_ip[4]; /**< IPv6 source address to match. */\n+\tuint32_t dst_ip[4]; /**< IPv6 destination address to match. */\n+};\n+\n+/**\n+ * A union constains the inputs for all types of flow\n+ */\n+union rte_eth_fdir_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 ip6_flow;\n+};\n+\n+#define RTE_ETH_FDIR_MAX_FLEXWORD_LEN 8\n+/**\n+ * A structure used to contain extend input of flow\n+ */\n+struct rte_eth_fdir_flow_ext {\n+\tuint16_t vlan_tci;\n+\tuint8_t num_flexwords; /**< number of flexwords */\n+\tuint16_t flexwords[RTE_ETH_FDIR_MAX_FLEXWORD_LEN];\n+\tuint16_t dest_id; /**< destination vsi or pool id*/\n+};\n+\n+/**\n+ * A structure used to define the input for an flow director filter entry\n+ */\n+struct rte_eth_fdir_input {\n+\tenum rte_eth_flow_type flow_type; /**< type of flow */\n+\tunion rte_eth_fdir_flow flow; /**< specific flow structure */\n+\tstruct rte_eth_fdir_flow_ext flow_ext; /**< specific flow info */\n+};\n+\n+/**\n+ * Flow director report status\n+ */\n+enum rte_eth_fdir_status {\n+\tRTE_ETH_FDIR_NO_REPORT_STATUS = 0, /**< no report FDIR. */\n+\tRTE_ETH_FDIR_REPORT_FD_ID, /**< only report FD ID. */\n+\tRTE_ETH_FDIR_REPORT_FD_ID_FLEX_4, /**< report FD ID and 4 flex bytes. */\n+\tRTE_ETH_FDIR_REPORT_FLEX_8, /**< report 8 flex bytes. */\n+};\n+\n+/**\n+ * A structure used to define an action when match FDIR packet filter.\n+ */\n+struct rte_eth_fdir_action {\n+\tuint16_t rx_queue; /**< queue assigned to if fdir match. */\n+\tuint16_t cnt_idx; /**< statistic count index */\n+\tuint8_t drop; /**< accept or reject */\n+\tuint8_t flex_off; /**< offset used define words to report */\n+\tenum rte_eth_fdir_status report_status; /**< status report option */\n+};\n+\n+/**\n+ * A structure used to define the flow director filter entry by filter_ctl API\n+ * to support RTE_ETH_FILTER_FDIR with RTE_ETH_FILTER_OP_ADD and\n+ * RTE_ETH_FILTER_OP_DELETE operations.\n+ */\n+struct rte_eth_fdir_filter {\n+\tuint16_t soft_id; /**< id */\n+\tstruct rte_eth_fdir_input input; /**< input set */\n+\tstruct rte_eth_fdir_action action; /**< action taken when match */\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v3", "05/20" ] }{ "id": 546, "url": "