From: Jingjing Wu Date: Wed, 11 Feb 2015 07:51:45 +0000 (+0800) Subject: ethdev: new syn filter API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fd28727da2a6ce8537161ef2492b4241545a9baf;p=dpdk.git ethdev: new syn filter API This patch defines syn filter type RTE_ETH_FILTER_SYN and its structure rte_eth_syn_filter. Signed-off-by: Jingjing Wu --- diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h index bda880e025..8748b87d1f 100644 --- a/lib/librte_ether/rte_eth_ctrl.h +++ b/lib/librte_ether/rte_eth_ctrl.h @@ -54,6 +54,7 @@ enum rte_filter_type { RTE_ETH_FILTER_MACVLAN, RTE_ETH_FILTER_ETHERTYPE, RTE_ETH_FILTER_FLEXIBLE, + RTE_ETH_FILTER_SYN, RTE_ETH_FILTER_TUNNEL, RTE_ETH_FILTER_FDIR, RTE_ETH_FILTER_HASH, @@ -136,6 +137,17 @@ struct rte_eth_flex_filter { uint16_t queue; /**< Queue assigned to when match. */ }; +/** + * A structure used to define the TCP syn filter entry + * to support RTE_ETH_FILTER_SYN with RTE_ETH_FILTER_ADD, + * RTE_ETH_FILTER_DELETE and RTE_ETH_FILTER_GET operations. + */ +struct rte_eth_syn_filter { + uint8_t hig_pri; /**< 1 - higher priority than other filters, + 0 - lower priority. */ + uint16_t queue; /**< Queue assigned to when match */ +}; + /** * Tunneled type. */