From: Rafał Miłecki <rafal@milecki.pl>
When receiving a lot of packets hardware may run out of free
descriptiors and stop RX ring. Enable it every time after handling
received packets.
Fixes: 4feffeadbcb2 ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/net/ethernet/broadcom/bcm4908_enet.c | 3 +++
1 file changed, 3 insertions(+)
@@ -592,6 +592,9 @@ static int bcm4908_enet_poll(struct napi_struct *napi, int weight)bcm4908_enet_intrs_on(enet);}+/* Hardware could disable ring if it run out of descriptors */+bcm4908_enet_dma_rx_ring_enable(enet,&enet->rx_ring);+returnhandled;}
From: Rafał Miłecki <rafal@milecki.pl>
When receiving a lot of packets hardware may run out of free
descriptiors and stop RX ring. Enable it every time after handling
received packets.
Fixes: 4feffeadbcb2 ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-02-28 19:55:20
On Sat, 27 Feb 2021 08:38:24 -0800 Florian Fainelli wrote:
On 2/26/2021 5:20 AM, Rafał Miłecki wrote:
quoted
From: Rafał Miłecki <rafal@milecki.pl>
When receiving a lot of packets hardware may run out of free
descriptiors and stop RX ring. Enable it every time after handling
received packets.
Fixes: 4feffeadbcb2 ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Applied, thanks!
Out of curiosity - is the performance not impacted by this change?
bcm4908_enet_dma_rx_ring_enable() does an RMW, the read could possibly
removed by caching the expected value.