public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: ifb: record drop reason when redirect device is missing
@ 2026-02-02 19:11 Murari Prasad Samal
  2026-02-03  5:50 ` kernel test robot
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Murari Prasad Samal @ 2026-02-02 19:11 UTC (permalink / raw)
  To: netdev; +Cc: andrew+netdev, davem, edumazet, kuba, pabeni, Murari Prasad Samal

When redirecting packets in ifb_ri_tasklet(), the skb is dropped
if the original ingress device can no longer be found.

Replace dev_kfree_skb() with kfree_skb_reason() so the drop is
properly attributed as SKB_DROP_REASON_NO_DEV.

No functional change intended.

Signed-off-by: Murari Prasad Samal <murariprasadsamal57@gmail.com>
---
 drivers/net/ifb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index d3dc0914450a..689340ccf9c7 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -115,7 +115,7 @@ static void ifb_ri_tasklet(struct tasklet_struct *t)
 		skb->dev = dev_get_by_index_rcu(dev_net(txp->dev), skb->skb_iif);
 		if (!skb->dev) {
 			rcu_read_unlock();
-			dev_kfree_skb(skb);
+			kfree_skb_reason(skb, SKB_DROP_REASON_NO_DEV);
 			txp->dev->stats.tx_dropped++;
 			if (skb_queue_len(&txp->tq) != 0)
 				goto resched;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-03 11:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 19:11 [PATCH] net: ifb: record drop reason when redirect device is missing Murari Prasad Samal
2026-02-03  5:50 ` kernel test robot
2026-02-03  6:04 ` [PATCH v2] " Murari Prasad Samal
2026-02-03  6:09 ` [PATCH v3] " Murari Prasad Samal
2026-02-03 11:33 ` [PATCH] " kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox