net_sched: sch_fq: clear q->band_pkt_count[] in fq_reset()
Subsystems (3)
PATCH 1/1 net_sched: sch_fq: clear q->band_pkt_count[] in fq_reset()
When/if a NIC resets, queues are deactivated by dev_deactivate_many(), then reactivated when the reset operation completes.
fq_reset() removes all the skbs from various queues.
If we do not clear q->band_pkt_count[], these counters keep growing and can eventually reach sch->limit, preventing new packets to be queued.
Many thanks to Praveen for discovering the root cause.
--- net/sched/sch_fq.c | 1 + 1 file changed, 1 insertion(+)
net/sched/sch_fq.c +1 -0
@@ -827,6 +827,7 @@ static void fq_reset(struct Qdisc *sch)for (idx =0 ; idx <FQ_BANDS ; idx++) { q->band_flows[idx].new_flows.first =NULL ; q->band_flows[idx].old_flows.first =NULL ; + q->band_pkt_count[idx] =0 ; } q->delayed =RB_ROOT ; q->flows =0 ;
Signature · 1 line
2.53.0.473.g4a7958ca14-goog
Quoted 9 lines · Eric Dumazet
When/if a NIC resets, queues are deactivated by
dev_deactivate_many(), then reactivated when the reset operation completes.
fq_reset()removes all the skbs from various queues.If we do not clear q->band_pkt_count[], these counters keep growing and can eventually reach
sch->limit, preventing new packets to be queued.
Quoted 7 lines
Many thanks to Praveen for discovering the root cause.
Fixes 29f834aa326e ("net_sched: sch_fq: add 3 bands and WRR scheduling")Diagnosed-by Praveen Kaligineedi <[email protected]>Signed-off-by Eric Dumazet <[email protected]>Cc Willem de Bruijn <[email protected]>---
Thanks, Eric and Praveen!
neal
Willem de Bruijn
Reviewed-byQuoted 12 lines · Neal Cardwell
Quoted 11 lines · Eric Dumazet
When/if a NIC resets, queues are deactivated by
dev_deactivate_many(), then reactivated when the reset operation completes.
fq_reset()removes all the skbs from various queues.If we do not clear q->band_pkt_count[], these counters keep growing and can eventually reach
sch->limit, preventing new packets to be queued.Many thanks to Praveen for discovering the root cause.
Quoted 7 lines
Quoted 5 lines
Fixes 29f834aa326e ("net_sched: sch_fq: add 3 bands and WRR scheduling")Diagnosed-by Praveen Kaligineedi <[email protected]>Signed-off-by Eric Dumazet <[email protected]>Cc Willem de Bruijn <[email protected]>---
Reviewed-by Neal Cardwell <[email protected]>
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 4 Mar 2026 01:56:40 +0000 you wrote:
When/if a NIC resets, queues are deactivated by
dev_deactivate_many(), then reactivated when the reset operation completes.
fq_reset()removes all the skbs from various queues.If we do not clear q->band_pkt_count[], these counters keep growing and can eventually reach
sch->limit, preventing new packets to be queued.[...]
Here is the summary with links:
- [net] net_sched: sch_fq: clear q->band_pkt_count[] in fq_reset()
https://git.kernel.org/netdev/net/c/a4c2b8be2e53
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html