sfc: add ability for an RXQ to grant credits on refill
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 14 Nov 2022 13:15:51 +0000 (13:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 09:07:02 +0000 (09:07 +0000)
commite395153984871e33624ce5e3f72038de979f5b3e
treee48660e1b87d5cf9c5f0193eba575af22c0daf30
parent5ae0c22634029da089dc7ce2602679ba9005dc51
sfc: add ability for an RXQ to grant credits on refill

EF100 hardware streams MAE counter updates to the driver over a dedicated
 RX queue; however, the MCPU is not able to detect when RX buffers have
 been posted to the ring.  Thus, the driver must call
 MC_CMD_MAE_COUNTERS_STREAM_GIVE_CREDITS; this patch adds the
 infrastructure to support that to the core RXQ handling code.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef100_rx.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx_common.c