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