]> 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)
commit4f38d077230bde36e5cc096625896798dc4f60b7
treecbbaae72aa1412ecc8187cb517d0ebe4772bb16e
parent3cfdffcfbee03569a60721506bfb987b12af8302
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