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: Add precise drop reason for pfifo_fast queue overflows

Currently, packets dropped by pfifo_fast due to queue overflow are
marked with a generic SKB_DROP_REASON_QDISC_DROP in __dev_xmit_skb().

This patch adds explicit drop reason SKB_DROP_REASON_QDISC_OVERLIMIT
for queue-full cases, providing better distinction from other qdisc drops.

Signed-off-by: Fan Yu <fan.yu9@zte.com.cn>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://patch.msgid.link/20250724212837119BP9HOs0ibXDRWgsXMMir7@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Fan Yu and committed by
Jakub Kicinski
bf3c032b fad4df29

+2
+2
net/sched/sch_generic.c
··· 740 740 err = skb_array_produce(q, skb); 741 741 742 742 if (unlikely(err)) { 743 + tcf_set_drop_reason(skb, SKB_DROP_REASON_QDISC_OVERLIMIT); 744 + 743 745 if (qdisc_is_percpu_stats(qdisc)) 744 746 return qdisc_drop_cpu(skb, qdisc, to_free); 745 747 else