From: Jingjing Wu Date: Tue, 16 Jun 2015 03:43:44 +0000 (+0800) Subject: ethdev: add flow director for L2 payload X-Git-Tag: spdx-start~8858 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9b50a331f76c2b26ff45c06c6570ae0808642ae8;p=dpdk.git ethdev: add flow director for L2 payload This patch adds a new struct rte_eth_l2_flow to support l2_payload flow type. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang --- diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h index 9187d6d4ad..536b19ea19 100644 --- a/lib/librte_ether/rte_eth_ctrl.h +++ b/lib/librte_ether/rte_eth_ctrl.h @@ -297,6 +297,13 @@ struct rte_eth_tunnel_filter_conf { #define RTE_ETH_FDIR_MAX_FLEXLEN 16 /** < Max length of flexbytes. */ +/** + * A structure used to define the input for L2 flow + */ +struct rte_eth_l2_flow { + uint16_t ether_type; /**< Ether type to match */ +}; + /** * A structure used to define the input for IPV4 flow */ @@ -369,6 +376,7 @@ struct rte_eth_sctpv6_flow { * An union contains the inputs for all types of flow */ union rte_eth_fdir_flow { + struct rte_eth_l2_flow l2_flow; struct rte_eth_udpv4_flow udp4_flow; struct rte_eth_tcpv4_flow tcp4_flow; struct rte_eth_sctpv4_flow sctp4_flow;