Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net/sched: sch_cake: two shaper accounting fixes
@ 2026-12-05 15:11 Julius Bairaktaris
  2026-12-05 15:12 ` [PATCH net 1/2] net/sched: sch_cake: count the arriving packet in the autorate window Julius Bairaktaris
  2026-12-05 15:12 ` [PATCH net 2/2] net/sched: sch_cake: charge an SCTP GSO packet by its own segments Julius Bairaktaris
  0 siblings, 2 replies; 4+ messages in thread
From: Julius Bairaktaris @ 2026-12-05 15:11 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen
  Cc: netdev, cake, Jamal Hadi Salim, Jiri Pirko, David S . Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Willem de Bruijn,
	Simon Horman

Two fixes to how CAKE counts the length of a packet.

1/2: with autorate-ingress and the ACK filter, dropping a queued ACK
that is longer than the new one wraps the window's byte count, and the
shaper is set to tens of Gbit/s.

2/2: an SCTP GSO packet (gso_size GSO_BY_FRAGS) is charged as about
65 kB per segment when CAKE does not split it at enqueue, so the other
flows lose link time to a local SCTP sender.

Sashiko's review of my net-next CAKE series pointed at the first; the
second came up while testing that series with SCTP.

Tested in QEMU (KVM, x86_64) on net e9d78fc6741a, one module per run:
- 1/2: a scapy sender on a veth, CAKE besteffort 20kbit autorate-ingress
  ack-filter-aggressive. Without the fix the shaper rate ends at 61976
  to 69100 Mbit/s in 5 of 6 runs; with it at 275 to 276 kbit in 6 of 6.
- 2/2: CAKE besteffort 1gbit no-split-gso on a veth, a local SCTP sender
  beside iperf3 TCP, one run per SCTP message size (2000, 60000 bytes).
  Without the fix TCP gets 478/459 Mbit/s and SCTP 15.7/20.7 Mbit/s; with
  it TCP 621/479 and SCTP 351/536 Mbit/s, the link full.

I used Claude (Anthropic) to help write these patches.


Julius Bairaktaris (2):
  net/sched: sch_cake: count the arriving packet in the autorate window
  net/sched: sch_cake: charge an SCTP GSO packet by its own segments

 net/sched/sch_cake.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)


base-commit: e9d78fc6741ac06d438cf64e314c28e57014432a
-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-06 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 15:11 [PATCH net 0/2] net/sched: sch_cake: two shaper accounting fixes Julius Bairaktaris
2026-12-05 15:12 ` [PATCH net 1/2] net/sched: sch_cake: count the arriving packet in the autorate window Julius Bairaktaris
2026-12-05 15:12 ` [PATCH net 2/2] net/sched: sch_cake: charge an SCTP GSO packet by its own segments Julius Bairaktaris
2026-12-06 16:06   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox