net: dsa: mt7530: move pkt stats and err MIB counter to eth_mac stats API
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 10 Apr 2025 16:30:12 +0000 (18:30 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Apr 2025 10:10:21 +0000 (12:10 +0200)
commitdcf9eb6d33a2b030d96ab935a9e9f06715a951db
tree109d82df720bc1ce653d4886fe05a59d794ea858
parente12989ab719cea827cd2b8442f7dada4fd259481
net: dsa: mt7530: move pkt stats and err MIB counter to eth_mac stats API

Drop custom handling of TX/RX packet stats and error MIB counter and handle
them in the standard .get_eth_mac_stats API

The MIB entry are dropped from the custom MIB table and converted to
a define providing only the MIB offset.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://patch.msgid.link/20250410163022.3695-5-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h