net/cxgbe: track packets dropped by TP due to congestion
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 6 May 2022 13:18:46 +0000 (18:48 +0530)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Tue, 17 May 2022 16:50:50 +0000 (18:50 +0200)
commitdfb0324b6830a42bfd77c74942ec9b0d50e8260c
treef0b22539a63177724635fcdf14a8afaeb9be7f93
parent59f2853c4cae25c24f28d056ea3d5032a70160c2
net/cxgbe: track packets dropped by TP due to congestion

Transport Processor (TP) on the NIC delivers the incoming packets
from the wire to NIC's DMA engine to place the packets in Rx buffers.
TP sends signal towards the Multi-Port Switch (MPS) near the MAC when
the Rxqs run out of Rx buffers posted by driver. These MPS buffer drop
stats are already accounted for in imissed counters. However, if a
large number of Rxqs run out of Rx buffers simultaneously, then the
TP can start dropping packets by itself when there is heavy congestion
on the channel and hence could not inform to the MPS. So, track these
packets dropped by TP in imissed counters. Also add xstats for these
counters.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/common.h
drivers/net/cxgbe/base/t4_hw.c
drivers/net/cxgbe/base/t4_regs.h
drivers/net/cxgbe/cxgbe_ethdev.c