net/cxgbe: add MAC match-all to track promiscuous traffic
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 2 Jun 2021 21:57:51 +0000 (03:27 +0530)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Fri, 2 Jul 2021 17:03:03 +0000 (19:03 +0200)
commit422d7823a980d50bfbb7c8fcf5f84a1a26648563
treec70da8e7d0c021e15bc5b356ff836d3a78850ad1
parenta12f14bc384d9c714d280046a769ec342c1fbdc8
net/cxgbe: add MAC match-all to track promiscuous traffic

Chelsio T6 ASIC doesn't track Rx promisc traffic dropped due to lack
of Rx buffers and hence the imissed counter doesn't increment. Add
support for RAW MAC filter to insert a wildcard matchall rule at
the end of MPS TCAM to make MPS track the promisc traffic. This
rule will only be added/removed when promisc mode is turned on/off
on the interface.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
doc/guides/nics/cxgbe.rst
drivers/net/cxgbe/base/common.h
drivers/net/cxgbe/base/t4fw_interface.h
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_main.c
drivers/net/cxgbe/mps_tcam.c
drivers/net/cxgbe/mps_tcam.h