Re: [PATCH net-next v6 10/14] net: ethernet: oa_tc6: implement receive path to receive rx ethernet frames
From: Jakub Kicinski
Date: Fri Aug 16 2024 - 13:02:25 EST
On Mon, 12 Aug 2024 15:56:07 +0530 Parthiban Veerasooran wrote:
> + if (netif_rx(tc6->rx_skb) == NET_RX_DROP)
> + tc6->netdev->stats.rx_dropped++;
This is a bit unusual. If the core decides to drop the packet it will
count the drop towards the appropriate statistic. The drivers generally
only count their own drops, and call netif_rx() without checking the
return value.