]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sched: sfq: convert to qdisc drop reasons
authorJesper Dangaard Brouer <hawk@kernel.org>
Thu, 26 Feb 2026 13:44:19 +0000 (14:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 23:31:34 +0000 (15:31 -0800)
commit3e28f8ad478f165260deba751858afac46cffd2f
treececb6e359e9451eb1e7460b3c2dd0f3b725b4b64
parentff2998f29f390d963299103f0b247cc79106ced5
net: sched: sfq: convert to qdisc drop reasons

Convert SFQ to use the new qdisc-specific drop reason infrastructure.

This patch demonstrates how to convert a flow-based qdisc to use the
new enum qdisc_drop_reason. As part of this conversion:

- Add QDISC_DROP_MAXFLOWS for flow table exhaustion
- Rename FQ_FLOW_LIMIT to generic FLOW_LIMIT, now shared by FQ and SFQ
- Use QDISC_DROP_OVERLIMIT for sfq_drop() when overall limit exceeded
- Use QDISC_DROP_FLOW_LIMIT for per-flow depth limit exceeded

The FLOW_LIMIT reason is now a common drop reason for per-flow limits,
applicable to both FQ and SFQ qdiscs.

Signed-off-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/177211345946.3011628.12770616071857185664.stgit@firesoul
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dropreason-qdisc.h
net/sched/sch_fq.c
net/sched/sch_sfq.c