diff options
author | Liu Jian <liujian56@huawei.com> | 2023-10-23 08:47:29 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-10-24 13:15:09 +0200 |
commit | 6d25d1dc76bf5943a5c1f4bb74d66d5eac58eb77 (patch) | |
tree | 81701bb47f08633ce942dc45b10a85fa72c0c5bd /net/sched | |
parent | net: ethernet: davinci_emac: Use MAC Address from Device Tree (diff) | |
download | linux-6d25d1dc76bf5943a5c1f4bb74d66d5eac58eb77.tar.xz linux-6d25d1dc76bf5943a5c1f4bb74d66d5eac58eb77.zip |
net: sched: sch_qfq: Use non-work-conserving warning handler
A helper function for printing non-work-conserving alarms is added in
commit b00355db3f88 ("pkt_sched: sch_hfsc: sch_htb: Add non-work-conserving
warning handler."). In this commit, use qdisc_warn_nonwc() instead of
WARN_ONCE() to handle the non-work-conserving warning in qfq Qdisc.
Signed-off-by: Liu Jian <liujian56@huawei.com>
Link: https://lore.kernel.org/r/20231023064729.370649-1-liujian56@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_qfq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_qfq.c b/net/sched/sch_qfq.c index 546c10adcacd..5598f8be18ae 100644 --- a/net/sched/sch_qfq.c +++ b/net/sched/sch_qfq.c @@ -1003,7 +1003,7 @@ static inline struct sk_buff *qfq_peek_skb(struct qfq_aggregate *agg, *cl = list_first_entry(&agg->active, struct qfq_class, alist); skb = (*cl)->qdisc->ops->peek((*cl)->qdisc); if (skb == NULL) - WARN_ONCE(1, "qfq_dequeue: non-workconserving leaf\n"); + qdisc_warn_nonwc("qfq_dequeue", (*cl)->qdisc); else *len = qdisc_pkt_len(skb); |