]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: use ocelot's ndo_get_stats64 method
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 8 Sep 2022 16:48:11 +0000 (19:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2022 09:59:12 +0000 (10:59 +0100)
commitcab5d30453560f3cde2fa5fbee7b43a725e06100
treec528d43870c623ebb66c32c993a13bbc108f16da
parentc5b36face9a958bb9bc9d5df5ef667b74c246758
net: dsa: felix: use ocelot's ndo_get_stats64 method

Move the logic from the ocelot switchdev driver's ocelot_get_stats64()
method to the common switch lib and reuse it for the DSA driver.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot_net.c
drivers/net/ethernet/mscc/ocelot_stats.c
include/soc/mscc/ocelot.h