Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net_sched: sch_fq: fastpath needs to take care of sk->sk_pacing_status

If packets of a TCP flows take the fast path, we need to make sure
sk->sk_pacing_status is set to SK_PACING_FQ otherwise TCP might
fallback to internal pacing, which is not optimal.

Fixes: 076433bd78d7 ("net_sched: sch_fq: add fast path for mostly idle qdisc")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20231020201254.732527-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
81a41698 06e4dd18

+4
+4
net/sched/sch_fq.c
··· 383 383 384 384 if (fq_fastpath_check(sch, skb, now)) { 385 385 q->internal.stat_fastpath_packets++; 386 + if (skb->sk == sk && q->rate_enable && 387 + READ_ONCE(sk->sk_pacing_status) != SK_PACING_FQ) 388 + smp_store_release(&sk->sk_pacing_status, 389 + SK_PACING_FQ); 386 390 return &q->internal; 387 391 } 388 392