diff options
author | Eric Dumazet <edumazet@google.com> | 2025-02-04 14:48:25 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-05 18:19:54 -0800 |
commit | cbe08724c18078564abefbf6591078a7c98e5e0f (patch) | |
tree | 11ca74131271358677628c7cd23afb29ad8ad32f /scripts/generate_rust_analyzer.py | |
parent | 6cccb3bb0561812539d7f0ab35382e8d8998076a (diff) |
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions