[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260203060907.993-1-murariprasadsamal57@gmail.com>
Date: Tue, 3 Feb 2026 06:09:07 +0000
From: Murari Prasad Samal <murariprasadsamal57@...il.com>
To: netdev@...r.kernel.org
Cc: andrew+netdev@...n.ch,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
Murari Prasad Samal <murariprasadsamal57@...il.com>
Subject: [PATCH v3] net: ifb: record drop reason when redirect device is missing
When redirecting packets in ifb_ri_tasklet(), the skb is dropped
if the original ingress device can no longer be found.
Use kfree_skb_reason() with SKB_DROP_REASON_DEV_DOWN so the drop
is properly attributed.
No functional change intended.
Signed-off-by: Murari Prasad Samal
---
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
Powered by blists - more mailing lists