summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-11-21 11:32:55 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-11-25 18:10:32 +0300
commit191ff13e42a7b7824fec5b2ed84fd6481356754d (patch)
treeddd4c7cdcd4ca88654791f78ade112b11432f9a7 /tools/lib/python
parent0170d7f47c8bb0311bc802bad52245c045f151fe (diff)
downloadlinux-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