A generic filter mechanism for handling special packet is required. It will allow filters to be set in HW when available so that specific packet may be filtered by NICs to specific descriptor queues for processing. Currently only Flow Director for Intel's 10GbE 82599 devices is available. Other types of filter are not supported.
NIC filters list below are implemented in patches: ethertype filter, syn filter, 2tuple filter and flex filter for 82580 and i350 ethertype filter, syn filter and 5tuple filter for 82599 jingjing.wu (4): add ethdev APIs for NIC filters of generic filter feature add igb NIC filters of generic filter feature add ixgbe NIC filters of generic filter feature add commands in testpmd for NIC filters app/test-pmd/cmdline.c | 905 +++++++++++++++++++++++++++++++++++- app/test-pmd/config.c | 143 ++++++ app/test-pmd/testpmd.h | 6 + lib/librte_ether/rte_ethdev.c | 300 ++++++++++++ lib/librte_ether/rte_ethdev.h | 428 ++++++++++++++++- lib/librte_pmd_e1000/e1000_ethdev.h | 38 ++ lib/librte_pmd_e1000/igb_ethdev.c | 512 ++++++++++++++++++++ lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 365 +++++++++++++++ lib/librte_pmd_ixgbe/ixgbe_ethdev.h | 33 ++ 9 files changed, 2728 insertions(+), 2 deletions(-) -- 1.8.1.4