]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net_sched: sch_fq: move qdisc_bstats_update() to fq_dequeue_skb()
authorEric Dumazet <edumazet@google.com>
Fri, 21 Nov 2025 08:32:50 +0000 (08:32 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Nov 2025 15:10:32 +0000 (16:10 +0100)
commit3c1100f042c006cae6c241028cc4c69e1a70483f
treeedf8af40f66b7f4001fe636ade48ed40a99b4bdb
parentad50d5a3fc20327e133e2db849c6e67fc49650e6
net_sched: sch_fq: move qdisc_bstats_update() to fq_dequeue_skb()

Group together changes to qdisc fields to reduce chances of false sharing
if another cpu attempts to acquire the qdisc spinlock.

  qdisc_qstats_backlog_dec(sch, skb);
  sch->q.qlen--;
  qdisc_bstats_update(sch, skb);

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20251121083256.674562-9-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/sch_fq.c