]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: flush_backlog() small changes
authorEric Dumazet <edumazet@google.com>
Tue, 4 Feb 2025 14:48:25 +0000 (14:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 02:19:54 +0000 (18:19 -0800)
commitcbe08724c18078564abefbf6591078a7c98e5e0f
tree11ca74131271358677628c7cd23afb29ad8ad32f
parent6cccb3bb0561812539d7f0ab35382e8d8998076a
net: flush_backlog() small changes

Add READ_ONCE() around reads of skb->dev->reg_state, because
this field can be changed from other threads/cpus.

Instead of calling dev_kfree_skb_irq() and kfree_skb()
while interrupts are masked and locks held,
use a temporary list and use __skb_queue_purge_reason()

Use SKB_DROP_REASON_DEV_READY drop reason to better
describe why these skbs are dropped.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20250204144825.316785-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c