Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Florian Fainelli
Sat, 21 Nov 2026 00:48
[PATCH net v4 01/10] net: au1000: recycle RX descriptors on allocation failure
Author: Florian Fainelli
Date: Sat, 21 Nov 2026 00:48
Date: Sat, 21 Nov 2026 00:48
34 lines
12295 bytes
12295 bytes
An skb allocation failure retries the same completed descriptor forever
in hard IRQ context. Return the buffer to DMA and advance the ring even
when the packet must be dropped.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
drivers/net/ethernet/amd/au1000_eth.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index 8682323d693f..cd25248f4e3a 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -788,7 +788,7 @@ static int au1000_rx(struct net_device *dev)
skb = netdev_alloc_skb(dev, frmlen + 2);
if (!skb) {
dev->stats.rx_dropped++;
- continue;
+ goto next;
}
skb_reserve(skb, 2); /* 16 byte IP header align */
skb_copy_to_linear_data(skb,
@@ -820,6 +820,7 @@ static int au1000_rx(struct net_device *dev)
pr_cont("\n");
}
}
+next:
prxd->buff_stat = lower_32_bits(pDB->dma_addr) | RX_DMA_ENABLE;
aup->rx_head = (aup->rx_head + 1) & (NUM_RX_DMA - 1);
wmb(); /* drain writebuffer */
--
2.53.0
Re: [PATCH net v4 01/10] net: au1000: recycle RX descriptors on allocation failure
Author: Simon Horman
Date: Tue, 01 Dec 2026 10:58
Date: Tue, 01 Dec 2026 10:58
10 lines
8431 bytes
8431 bytes
On Fri, Nov 20, 2026 at 04:48:00PM -0800, Florian Fainelli wrote:
> An skb allocation failure retries the same completed descriptor forever
> in hard IRQ context. Return the buffer to DMA and advance the ring even
> when the packet must be dropped.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads