]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net_sched: sch_sfq: handle bigger packets
authorEric Dumazet <edumazet@google.com>
Fri, 20 Jun 2025 15:46:18 +0000 (15:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:37 +0000 (11:05 +0100)
commit548cf048b426729a7a1fa6acd1271c010c9a7380
treeda695d429df78f052286f4d5e238702dd47addb8
parent8a1eca8985804db008af0708183b8e7381e441c3
net_sched: sch_sfq: handle bigger packets

commit e4650d7ae4252f67e997a632adfae0dd74d3a99a upstream.

SFQ has an assumption on dealing with packets smaller than 64KB.

Even before BIG TCP, TCA_STAB can provide arbitrary big values
in qdisc_pkt_len(skb)

It is time to switch (struct sfq_slot)->allot to a 32bit field.

sizeof(struct sfq_slot) is now 64 bytes, giving better cache locality.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/20241008111603.653140-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_sfq.c