mbox series

[0/2] net/cxgbe: add RAW MAC matchall filter support

Message ID cover.1622676125.git.rahul.lakkireddy@chelsio.com (mailing list archive)
Headers show
Series net/cxgbe: add RAW MAC matchall filter support | expand

Message

Rahul Lakkireddy June 2, 2021, 9:57 p.m. UTC
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.

Patch 1 converts all deprecated rte_atomic ops to C11 atomics.

Patch 2 queries firmware for RAW MAC matchall filter support and
enables it when available.

Rahul Lakkireddy (2):
  net/cxgbe: use C11 atomics instead of rte_atomic ops
  net/cxgbe: add MAC matchall to track promisc traffic

 doc/guides/nics/cxgbe.rst               | 14 ++--
 drivers/net/cxgbe/base/common.h         |  3 +
 drivers/net/cxgbe/base/t4_hw.c          |  1 -
 drivers/net/cxgbe/base/t4fw_interface.h |  2 +
 drivers/net/cxgbe/clip_tbl.c            | 13 ++--
 drivers/net/cxgbe/clip_tbl.h            |  2 +-
 drivers/net/cxgbe/cxgbe_ethdev.c        | 15 ++++-
 drivers/net/cxgbe/cxgbe_main.c          | 37 +++++++----
 drivers/net/cxgbe/cxgbe_ofld.h          |  6 +-
 drivers/net/cxgbe/l2t.c                 | 14 ++--
 drivers/net/cxgbe/l2t.h                 |  2 +-
 drivers/net/cxgbe/mps_tcam.c            | 87 ++++++++++++++++++++++---
 drivers/net/cxgbe/mps_tcam.h            |  6 +-
 drivers/net/cxgbe/sge.c                 |  1 -
 drivers/net/cxgbe/smt.c                 | 14 ++--
 drivers/net/cxgbe/smt.h                 |  2 +-
 16 files changed, 161 insertions(+), 58 deletions(-)

Comments

Andrew Rybchenko June 29, 2021, 9:42 a.m. UTC | #1
On 6/3/21 12:57 AM, Rahul Lakkireddy wrote:
> 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.
> 
> Patch 1 converts all deprecated rte_atomic ops to C11 atomics.
> 
> Patch 2 queries firmware for RAW MAC matchall filter support and
> enables it when available.
> 
> Rahul Lakkireddy (2):
>    net/cxgbe: use C11 atomics instead of rte_atomic ops
>    net/cxgbe: add MAC matchall to track promisc traffic
> 
>   doc/guides/nics/cxgbe.rst               | 14 ++--
>   drivers/net/cxgbe/base/common.h         |  3 +
>   drivers/net/cxgbe/base/t4_hw.c          |  1 -
>   drivers/net/cxgbe/base/t4fw_interface.h |  2 +
>   drivers/net/cxgbe/clip_tbl.c            | 13 ++--
>   drivers/net/cxgbe/clip_tbl.h            |  2 +-
>   drivers/net/cxgbe/cxgbe_ethdev.c        | 15 ++++-
>   drivers/net/cxgbe/cxgbe_main.c          | 37 +++++++----
>   drivers/net/cxgbe/cxgbe_ofld.h          |  6 +-
>   drivers/net/cxgbe/l2t.c                 | 14 ++--
>   drivers/net/cxgbe/l2t.h                 |  2 +-
>   drivers/net/cxgbe/mps_tcam.c            | 87 ++++++++++++++++++++++---
>   drivers/net/cxgbe/mps_tcam.h            |  6 +-
>   drivers/net/cxgbe/sge.c                 |  1 -
>   drivers/net/cxgbe/smt.c                 | 14 ++--
>   drivers/net/cxgbe/smt.h                 |  2 +-
>   16 files changed, 161 insertions(+), 58 deletions(-)
> 

Applied, thanks.