Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v14 0/4] net/sched: cap the accounted backlog before it can wrap
@ 2026-11-29  9:06 Jamal Hadi Salim
  2026-11-29  9:06 ` [PATCH net-next v14 1/4] net/sched: cake: return the classifier result to the caller Jamal Hadi Salim
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jamal Hadi Salim @ 2026-11-29  9:06 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, David S . Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Willem de Bruijn, Simon Horman, Jiri Pirko,
	Stephen Hemminger, Vinicius Costa Gomes,
	Toke Høiland-Jørgensen, cake, Victor Nogueira,
	Björn Töpel, Sashiko

This series bounds the shared qdisc backlog (sch->qstats.backlog) so that
it cannot wrap mod 2^32.  A qdisc with per-CPU statistics books into
cpu_qstats and is outside this guard (stats-only).

  1/4  cake: classifier refactor: cake_tcf_classify() returns its result
       to the caller.
  2/4  cake: use a dedicated split-GSO list iterator.
  3/4  the fix: drop at enqueue once the stored backlog cannot represent
       the packet's accounted length, saturate the fixed-removal helpers,
       and keep the tree reconciliation modular.  The ancestor-room check
       is shared by tbf, dualpi2 and cake.
  4/4  cake: split cake_hash() into key extraction (on the unsegmented
       skb) and resolution (after admission), move the split-GSO path
       ahead of the resolution, and refuse a split an ancestor cannot
       absorb.

For the sashikos: net-next, no Fixes: (the aggregate wrap predates every
touched qdisc).

1/4 and 2/4 are unchanged from v13 and carry no revision-history block.

Changes in v14:
  - the reconciliation length is s64, so a multi-gigabyte purge is
    removed rather than read as growth.
  - the ancestor delta is modular again; only the fixed-removal helpers
    clamp a known-positive amount.
  - taprio resyncs from its children when the guard would refuse traffic
    and in the stats dump, under the qdisc lock; the mirror delta is s64
    and the resync is skipped inside an open mirror window.
  - the offload exemption is latched on a successful setup and cleared
    when the counter returns to core ownership.
  - the ancestor-room check is shared by tbf, dualpi2 and cake; netem's
    duplicate keeps the original accounted length.  tbf also bounds its
    own segment-sum booking.
  - 3/4 and 4/4 carry the v13 -> v14 block; 1/4 and 2/4 are unchanged.
  - rebased onto net-next f89726ffabef.

Jamal Hadi Salim (4):
  net/sched: cake: return the classifier result to the caller
  net/sched: cake: use a dedicated split-GSO list iterator
  net/sched: cap the accounted backlog before it can wrap
  net/sched: cake: hash before segmenting and reject an overlong split

 include/net/pkt_sched.h   |   1 -
 include/net/sch_generic.h |  68 ++++++++++++-
 net/sched/sch_api.c       |  50 +++++++++-
 net/sched/sch_cake.c      | 196 +++++++++++++++++++++++++++-----------
 net/sched/sch_cbs.c       |   6 ++
 net/sched/sch_choke.c     |   6 ++
 net/sched/sch_codel.c     |  16 ++--
 net/sched/sch_drr.c       |   6 ++
 net/sched/sch_dualpi2.c   |  19 +++-
 net/sched/sch_etf.c       |   6 ++
 net/sched/sch_ets.c       |   6 ++
 net/sched/sch_fifo.c      |  12 +++
 net/sched/sch_fq.c        |   6 ++
 net/sched/sch_fq_codel.c  |   9 ++
 net/sched/sch_fq_pie.c    |   3 +-
 net/sched/sch_generic.c   |  11 +++
 net/sched/sch_gred.c      |   9 ++
 net/sched/sch_hfsc.c      |   6 ++
 net/sched/sch_hhf.c       |  23 ++++-
 net/sched/sch_htb.c       |  16 +++-
 net/sched/sch_netem.c     |  18 ++++
 net/sched/sch_pie.c       |   3 +-
 net/sched/sch_plug.c      |   3 +-
 net/sched/sch_prio.c      |   6 ++
 net/sched/sch_qfq.c       |   6 ++
 net/sched/sch_red.c       |  10 ++
 net/sched/sch_sfb.c       |   6 ++
 net/sched/sch_sfq.c       |   8 +-
 net/sched/sch_skbprio.c   |  19 +++-
 net/sched/sch_taprio.c    | 145 ++++++++++++++++++++++++----
 net/sched/sch_tbf.c       |  27 +++++-
 31 files changed, 623 insertions(+), 103 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-30 10:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29  9:06 [PATCH net-next v14 0/4] net/sched: cap the accounted backlog before it can wrap Jamal Hadi Salim
2026-11-29  9:06 ` [PATCH net-next v14 1/4] net/sched: cake: return the classifier result to the caller Jamal Hadi Salim
2026-11-29  9:06 ` [PATCH net-next v14 2/4] net/sched: cake: use a dedicated split-GSO list iterator Jamal Hadi Salim
2026-11-29  9:06 ` [PATCH net-next v14 3/4] net/sched: cap the accounted backlog before it can wrap Jamal Hadi Salim
2026-11-30 10:01   ` netdev-bot+sashiko
2026-11-29  9:06 ` [PATCH net-next v14 4/4] net/sched: cake: hash before segmenting and reject an overlong split Jamal Hadi Salim
2026-11-30 10:01   ` 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