net: mvpp2: add FCA RXQ non occupied descriptor threshold
authorStefan Chulski <stefanc@marvell.com>
Thu, 11 Feb 2021 10:48:55 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:50:23 +0000 (14:50 -0800)
commitbf270fa3c445faee7c2ca46f862f82f88d7fec3f
treecbbaae72aa1412ecc8187cb517d0ebe4772bb16e
parent2788d8418af5a88db754cc8e7c16a7455934fc44
net: mvpp2: add FCA RXQ non occupied descriptor threshold

The firmware needs to monitor the RX Non-occupied descriptor
bits for flow control to move to XOFF mode.
These bits need to be unmasked to be functional, but they will
not raise interrupts as we leave the RX exception summary
bit in MVPP2_ISR_RX_TX_MASK_REG clear.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Acked-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c