[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y2k25U/KkF1HKox3@electric-eye.fr.zoreil.com>
Date: Mon, 7 Nov 2022 17:48:37 +0100
From: Francois Romieu <romieu@...zoreil.com>
To: Joakim Tjernlund <Joakim.Tjernlund@...inera.com>
Cc: netdev@...r.kernel.org
Subject: Re: NET_RX_DROP question
Joakim Tjernlund <Joakim.Tjernlund@...inera.com> :
[...]
> Looking into drivers/net/ethernet is seems just a few checks if (netif_receive_skb(skb) == NET_RX_DROP),
> the majority does not which makes me this I should just drop this check.
>
> Confirmation more than welcome.
The driver should not maintain stats for packets dropped by
the core network. They are already accounted for in core stats
(include/linux/netdevice.c::struct net_device.core_stats).
--
Ueimor
Powered by blists - more mailing lists