[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <177032651701.1975497.17267547145694969895.stgit@firesoul>
Date: Thu, 05 Feb 2026 22:21:57 +0100
From: Jesper Dangaard Brouer <hawk@...nel.org>
To: netdev@...r.kernel.org, Eric Dumazet <eric.dumazet@...il.com>,
"David S. Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>,
Toke Høiland-Jørgensen <toke@...e.dk>
Cc: Jesper Dangaard Brouer <hawk@...nel.org>, bpf@...r.kernel.org,
Jakub Kicinski <kuba@...nel.org>, horms@...nel.org, jiri@...nulli.us,
edumazet@...gle.com, xiyou.wangcong@...il.com, jhs@...atatu.com,
atenart@...hat.com, carges@...udflare.com, kernel-team@...udflare.com
Subject: [PATCH net-next v2 5/6] net: sched: rename QDISC_DROP_FQ_* to generic
names
Rename FQ-specific drop reasons to generic names:
- QDISC_DROP_FQ_BAND_LIMIT -> QDISC_DROP_BAND_LIMIT
- QDISC_DROP_FQ_HORIZON_LIMIT -> QDISC_DROP_HORIZON_LIMIT
This follows the principle that drop reasons should describe the drop
mechanism rather than being tied to a specific qdisc implementation.
These concepts (priority band limits, timestamp horizon) could apply
to other qdiscs as well.
Signed-off-by: Jesper Dangaard Brouer <hawk@...nel.org>
---
include/net/dropreason-qdisc.h | 21 +++++++++++----------
net/sched/sch_fq.c | 2 +-
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/include/net/dropreason-qdisc.h b/include/net/dropreason-qdisc.h
index 3759a801bddd..031fd8a0bc8c 100644
--- a/include/net/dropreason-qdisc.h
+++ b/include/net/dropreason-qdisc.h
@@ -12,8 +12,8 @@
FN(FLOW_LIMIT) \
FN(MAXFLOWS) \
FN(FLOOD_PROTECTION) \
- FN(FQ_BAND_LIMIT) \
- FN(FQ_HORIZON_LIMIT) \
+ FN(BAND_LIMIT) \
+ FN(HORIZON_LIMIT) \
FNe(MAX)
#undef FN
@@ -81,17 +81,18 @@ enum qdisc_drop_reason {
*/
QDISC_DROP_FLOOD_PROTECTION,
/**
- * @QDISC_DROP_FQ_BAND_LIMIT: FQ (Fair Queue) dropped packet because
- * the priority band's packet limit was reached. Each priority band
- * in FQ has its own limit.
+ * @QDISC_DROP_BAND_LIMIT: packet dropped because the priority band's
+ * limit was reached. Used by qdiscs with priority bands that have
+ * per-band packet limits (e.g., FQ).
*/
- QDISC_DROP_FQ_BAND_LIMIT,
+ QDISC_DROP_BAND_LIMIT,
/**
- * @QDISC_DROP_FQ_HORIZON_LIMIT: FQ dropped packet because its
- * timestamp is too far in the future (beyond horizon). This prevents
- * packets with unreasonable future timestamps from blocking the queue.
+ * @QDISC_DROP_HORIZON_LIMIT: packet dropped because its timestamp
+ * is too far in the future (beyond horizon). This prevents packets
+ * with unreasonable future timestamps from occupying queue space.
+ * Used by qdiscs with time-based scheduling (e.g., FQ).
*/
- QDISC_DROP_FQ_HORIZON_LIMIT,
+ QDISC_DROP_HORIZON_LIMIT,
/**
* @QDISC_DROP_MAX: the maximum of qdisc drop reasons, which
* shouldn't be used as a real 'reason' - only for tracing code gen
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c
index ca615d5433db..a8432b63d496 100644
--- a/net/sched/sch_fq.c
+++ b/net/sched/sch_fq.c
@@ -541,7 +541,7 @@ static bool fq_packet_beyond_horizon(const struct sk_buff *skb,
return unlikely((s64)skb->tstamp > (s64)(now + q->horizon));
}
-#define FQDR(reason) QDISC_DROP_FQ_##reason
+#define FQDR(reason) QDISC_DROP_##reason
static int fq_enqueue(struct sk_buff *skb, struct Qdisc *sch,
struct sk_buff **to_free)
Powered by blists - more mailing lists