Re: [PATCH net 2/2] net: enetc: correct rx_bytes statistics of XDP

From: Vladimir Oltean
Date: Fri Jun 02 2023 - 06:35:49 EST


On Fri, Jun 02, 2023 at 05:46:59PM +0800, wei.fang@xxxxxxx wrote:
> From: Wei Fang <wei.fang@xxxxxxx>
>
> The rx_bytes statistics of XDP are always zero, because rx_byte_cnt
> is not updated after it is initialized to 0. So fix it.
>
> Fixes: d1b15102dd16 ("net: enetc: add support for XDP_DROP and XDP_PASS")
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>

Thanks!