[lvc-project] [PATCH v2 1/3] net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats

Andrew Lunn andrew at lunn.ch
Wed Nov 30 03:20:50 MSK 2022


On Tue, Nov 29, 2022 at 01:37:59PM +0300, Daniil Tatianin wrote:
> It's not very useful to copy back an empty ethtool_stats struct and
> return 0 if we didn't actually have any stats. This also allows for
> further simplification of this function in the future commits.
> 
> Signed-off-by: Daniil Tatianin <d-tatianin at yandex-team.ru>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the lvc-project mailing list