Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Liu Jian and committed by
Paolo Abeni
6d25d1dc f30a51a4

+1 -1
+1 -1
net/sched/sch_qfq.c
··· 1003 1003 *cl = list_first_entry(&agg->active, struct qfq_class, alist); 1004 1004 skb = (*cl)->qdisc->ops->peek((*cl)->qdisc); 1005 1005 if (skb == NULL) 1006 - WARN_ONCE(1, "qfq_dequeue: non-workconserving leaf\n"); 1006 + qdisc_warn_nonwc("qfq_dequeue", (*cl)->qdisc); 1007 1007 else 1008 1008 *len = qdisc_pkt_len(skb); 1009 1009