diff options
| author | Eric Dumazet <edumazet@google.com> | 2025-11-21 11:32:55 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-11-25 18:10:32 +0300 |
| commit | 191ff13e42a7b7824fec5b2ed84fd6481356754d (patch) | |
| tree | ddd4c7cdcd4ca88654791f78ade112b11432f9a7 /tools/lib/python | |
| parent | 0170d7f47c8bb0311bc802bad52245c045f151fe (diff) | |
| download | linux-191ff13e42a7b7824fec5b2ed84fd6481356754d.tar.xz | |
net_sched: add qdisc_dequeue_drop() helper
Some qdisc like cake, codel, fq_codel might drop packets
in their dequeue() method.
This is currently problematic because dequeue() runs with
the qdisc spinlock held. Freeing skbs can be extremely expensive.
Add qdisc_dequeue_drop() method and a new TCQ_F_DEQUEUE_DROPS
so that these qdiscs can opt-in to defer the skb frees
after the socket spinlock is released.
TCQ_F_DEQUEUE_DROPS is an attempt to not penalize other qdiscs
with an extra cache line miss.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20251121083256.674562-14-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
