* [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
@ 2025-07-24 13:28 fan.yu9
2025-07-25 17:25 ` Cong Wang
2025-07-25 23:26 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: fan.yu9 @ 2025-07-24 13:28 UTC (permalink / raw)
To: dumazet, kuba, pabeni, horms, davem, jiri, xiyou.wangcong, jhs
Cc: netdev, linux-kernel, xu.xin16, yang.yang29, tu.qiang35,
jiang.kun2, wang.yaxin, qiu.yutan, he.peilin
From: Fan Yu <fan.yu9@zte.com.cn>
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>
---
net/sched/sch_generic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 16afb834fe4a..1e008a228ebd 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -740,6 +740,8 @@ static int pfifo_fast_enqueue(struct sk_buff *skb, struct Qdisc *qdisc,
err = skb_array_produce(q, skb);
if (unlikely(err)) {
+ tcf_set_drop_reason(skb, SKB_DROP_REASON_QDISC_OVERLIMIT);
+
if (qdisc_is_percpu_stats(qdisc))
return qdisc_drop_cpu(skb, qdisc, to_free);
else
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
2025-07-24 13:28 [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows fan.yu9
@ 2025-07-25 17:25 ` Cong Wang
2025-07-28 9:11 ` fan.yu9
2025-07-25 23:26 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 5+ messages in thread
From: Cong Wang @ 2025-07-25 17:25 UTC (permalink / raw)
To: fan.yu9
Cc: dumazet, kuba, pabeni, horms, davem, jiri, jhs, netdev,
linux-kernel, xu.xin16, yang.yang29, tu.qiang35, jiang.kun2,
wang.yaxin, qiu.yutan, he.peilin
On Thu, Jul 24, 2025 at 09:28:37PM +0800, fan.yu9@zte.com.cn wrote:
> From: Fan Yu <fan.yu9@zte.com.cn>
>
> 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>
BTW, it seems net-next is closed, you may need to resend it after it is
re-open.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
2025-07-24 13:28 [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows fan.yu9
2025-07-25 17:25 ` Cong Wang
@ 2025-07-25 23:26 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-07-25 23:26 UTC (permalink / raw)
To: fan.yu9
Cc: dumazet, kuba, pabeni, horms, davem, jiri, xiyou.wangcong, jhs,
netdev, linux-kernel, xu.xin16, yang.yang29, tu.qiang35,
jiang.kun2, wang.yaxin, qiu.yutan, he.peilin
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 24 Jul 2025 21:28:37 +0800 (CST) you wrote:
> From: Fan Yu <fan.yu9@zte.com.cn>
>
> 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.
>
> [...]
Here is the summary with links:
- [net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
https://git.kernel.org/netdev/net-next/c/bf3c032bfe16
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
2025-07-25 17:25 ` Cong Wang
@ 2025-07-28 9:11 ` fan.yu9
2025-07-28 12:01 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: fan.yu9 @ 2025-07-28 9:11 UTC (permalink / raw)
To: xiyou.wangcong
Cc: dumazet, kuba, pabeni, horms, davem, jiri, jhs, netdev,
linux-kernel, xu.xin16, yang.yang29, tu.qiang35, jiang.kun2,
wang.yaxin, qiu.yutan, he.peilin
[-- Attachment #1.1.1: Type: text/plain, Size: 371 bytes --]
> BTW, it seems net-next is closed, you may need to resend it after it is> re-open.>> Thanks.
Hi Cong,
Thank you for your review and the feedback!
Could you kindly share how to track the status of the net-next merge window?
Should I monitor the linux-netdev mailing list for announcements, or is there a specific schedule I can follow?
Best Regards,
Fan Yu
[-- Attachment #1.1.2: Type: text/html , Size: 1776 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows
2025-07-28 9:11 ` fan.yu9
@ 2025-07-28 12:01 ` Simon Horman
0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2025-07-28 12:01 UTC (permalink / raw)
To: fan.yu9
Cc: xiyou.wangcong, dumazet, kuba, pabeni, davem, jiri, jhs, netdev,
linux-kernel, xu.xin16, yang.yang29, tu.qiang35, jiang.kun2,
wang.yaxin, qiu.yutan, he.peilin
On Mon, Jul 28, 2025 at 05:11:37PM +0800, fan.yu9@zte.com.cn wrote:
> > BTW, it seems net-next is closed, you may need to resend it after it is> re-open.>> Thanks.
>
> Hi Cong,
> Thank you for your review and the feedback!
> Could you kindly share how to track the status of the net-next merge window?
> Should I monitor the linux-netdev mailing list for announcements, or is there a specific schedule I can follow?
Hi,
The merge-window opens when a new version of the Kernel is released, in
this case v6.16 was released yesterday. It remains open until the
subsequent rc1 release is made, in this case that will be v6.17-rc1. That
is typically two weeks after the merge-window opens.
You can observe the current Kernel release in a variety of ways,
including visiting https://www.kernel.org/
The timing of the merge window can be predicted with some accuracy by
following kernel rc releases: it usually occurs 1 week after an rc7
release. (If not, an rc8 release occurs, and the merge window will likely
open a week after that; and so on.)
net-next closes around the time that the merge-window opens.
But there is some variance in exactly when this occurs, due
to the schedules of the maintainers.
net-next re-opens around the time that the merge-window closes.
But again there is some variance.
The opening and closing of net-next is announced, with [ANN] in
the subject on the netdev mailing list.
https://lore.kernel.org/netdev/?q=ANN
There is some more information on this topic here:
https://docs.kernel.org/process/maintainer-netdev.html#development-cycle
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-07-28 12:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 13:28 [PATCH net-next] net/sched: Add precise drop reason for pfifo_fast queue overflows fan.yu9
2025-07-25 17:25 ` Cong Wang
2025-07-28 9:11 ` fan.yu9
2025-07-28 12:01 ` Simon Horman
2025-07-25 23:26 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).