]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3845d9c9c01623f4094a94f72a6825e48cfe9c08
treecbbaae72aa1412ecc8187cb517d0ebe4772bb16e
parent99115ae225fc2278fffff0bdbc9b0ac7e9bd67a0
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