mlxsw: implement ethtool standard stats
authorJakub Kicinski <kuba@kernel.org>
Fri, 16 Apr 2021 19:27:43 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 23:59:20 +0000 (16:59 -0700)
commitc1912ab0eeba6ba7fbf601bad9c2992d5f528672
treeacfbf8f2931e51682d610cb56b4baaaa9d6af3c8
parenta8b06e9d40d8b18c41c8ce060e8dc004fa59e708
mlxsw: implement ethtool standard stats

mlxsw has nicely grouped stats, add support for standard uAPI.
I'm guessing the register access part. Compile tested only.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c