Re: [PATCH net-next v4 1/1] net: dsa: microchip: ksz9477: export HW stats over stats64 interface

From: Vladimir Oltean
Date: Sat Feb 19 2022 - 04:47:07 EST


On Sat, Feb 19, 2022 at 09:26:30AM +0100, Oleksij Rempel wrote:
> Provide access to HW offloaded packets over stats64 interface.
> The rx/tx_bytes values needed some fixing since HW is accounting size of
> the Ethernet frame together with FCS.
>
> Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
> ---
> changes v4:
> - do not copy raw counters to the stack
> changes v3:
> - move dev->dev_ops->r_mib_stat64 insight of the mutex
> changes v2:
> - fix locking issue in in atomic context
> ---

Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>