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 netem; cake adds it in 4/4.
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 Cc: stable. The aggregate wrap predates
every touched qdisc; 3/4 carries a Fixes: naming the size-table commit
that makes it reachable, which a net-next patch may carry.
1/4 and 2/4 are unchanged from v15 and carry no revision-history block.
Changes in v16:
- the ancestor-room walk skips a parent that never books the counter
(multiq, mq, mqprio), and the tree reconciliation does not debit it.
- netem keeps the duplicate depth on every segment of a corrupt split,
and the split reserves the segment sum on netem and each ancestor.
- taprio's mirror saturates instead of wrapping, and a graft resyncs it.
- the split headroom reserves twice the larger of the segment sum and
the original length, not the growth alone.
- the segment drop reason is tagged before a split list is freed at
tbf, dualpi2, taprio's SDU drop and netem's limit and linearize arms.
- the offload and non-work-conserving flags use a compare-and-swap.
- 3/4 now also touches sch_multiq.c, sch_mq.c and sch_mqprio.c, so the
Cc set is re-derived.
- 3/4 and 4/4 carry the v15 -> v16 block; 1/4 and 2/4 are unchanged.
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 | 3 +-
include/net/sch_generic.h | 75 ++++++++++++++-
net/sched/sch_api.c | 66 +++++++++++--
net/sched/sch_cake.c | 191 ++++++++++++++++++++++++++------------
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 | 30 +++++-
net/sched/sch_etf.c | 6 ++
net/sched/sch_ets.c | 6 ++
net/sched/sch_fifo.c | 15 ++-
net/sched/sch_fq.c | 6 ++
net/sched/sch_fq_codel.c | 11 ++-
net/sched/sch_fq_pie.c | 3 +-
net/sched/sch_generic.c | 9 ++
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_mq.c | 2 +-
net/sched/sch_mqprio.c | 2 +-
net/sched/sch_multiq.c | 2 +
net/sched/sch_netem.c | 85 ++++++++++++++++-
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 | 11 ++-
net/sched/sch_skbprio.c | 19 +++-
net/sched/sch_taprio.c | 165 +++++++++++++++++++++++++++-----
net/sched/sch_tbf.c | 32 ++++++-
34 files changed, 736 insertions(+), 125 deletions(-)
base-commit: 19c484e12ed269c1ce734f049cc5ccf12cb93a20
--
2.43.0