|
|
@@ -4154,7 +4154,10 @@ ncls:
|
|
|
ret = pt_prev->func(skb, skb->dev, pt_prev, orig_dev);
|
|
|
} else {
|
|
|
drop:
|
|
|
- atomic_long_inc(&skb->dev->rx_dropped);
|
|
|
+ if (!deliver_exact)
|
|
|
+ atomic_long_inc(&skb->dev->rx_dropped);
|
|
|
+ else
|
|
|
+ atomic_long_inc(&skb->dev->rx_nohandler);
|
|
|
kfree_skb(skb);
|
|
|
/* Jamal, now you will not able to escape explaining
|
|
|
* me how you were going to use this. :-)
|
|
|
@@ -7307,6 +7310,7 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
|
|
|
}
|
|
|
storage->rx_dropped += atomic_long_read(&dev->rx_dropped);
|
|
|
storage->tx_dropped += atomic_long_read(&dev->tx_dropped);
|
|
|
+ storage->rx_nohandler += atomic_long_read(&dev->rx_nohandler);
|
|
|
return storage;
|
|
|
}
|
|
|
EXPORT_SYMBOL(dev_get_stats);
|