Skip to contentSkip to conversation

net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()

PATCH Applied Eric Dumazet 2 participants 2 messages Mar 6 – Mar 10

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()

rtnl_kfree_skbs() reduces RTNL and qdisc spinlock hold time.

skbs are freed later after RTNL has been released.

---
 net/sched/sch_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/sch_generic.c +1 -1
index 55e17f9e5636f2d9e798889ff59b2f69c9c1709c..40e0d20ed0227ede4f1cb292613f1918c5a48f2c 100644
@@ -850,7 +850,7 @@ static void pfifo_fast_reset(struct Qdisc *qdisc)
 			continue;
 
 		while ((skb = __skb_array_consume(q)) != NULL)
-			kfree_skb(skb);
+			rtnl_kfree_skbs(skb, skb);
 	}
 
 	if (qdisc_is_percpu_stats(qdisc)) {
Signature · 1 line
2.53.0.473.g4a7958ca14-goog
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Fri, 6 Mar 2026 13:31:54 +0000 you wrote:

rtnl_kfree_skbs() reduces RTNL and qdisc spinlock hold time.

skbs are freed later after RTNL has been released.

---
 net/sched/sch_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()

    https://git.kernel.org/netdev/net-next/c/58e4d35ae7b9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html