NET_RX_DROP vs dev->stats.rx_dropped++ in drivers

From: Joakim Tjernlund <hidden>
Date: 2019-02-18 08:31:06

We have noticed odd dropped packets in a few cases and these comes from
drivers that do this:
...
	dropped = netif_rx(sb);
	if (dropped == NET_RX_DROP) {
		dev->stats.rx_dropped++;
...

This seems a bit odd to me, should drivers account for dropped pkgs in this case?

 Jocke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help