Re: [PATCH net-next v3 3/4] net: add dev_dstats_rx_dropped_add() helper

From: Joe Damato
Date: Tue Jun 17 2025 - 15:34:08 EST


On Tue, Jun 17, 2025 at 01:18:59AM -0700, Breno Leitao wrote:
> Introduce the dev_dstats_rx_dropped_add() helper to allow incrementing
> the rx_drops per-CPU statistic by an arbitrary value, rather than just
> one. This is useful for drivers or code paths that need to account for
> multiple dropped packets at once, such as when dropping entire queues.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
> ---
> include/linux/netdevice.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>

Reviewed-by: Joe Damato <joe@xxxxxxx>