generic: provide get_port_stats() on ar8xxx switches
This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.
The implementation uses a generic callback that select the correct MIB counter
index based on chip version.
This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.
Signed-off-by:
Thibaut VARENE <hacks@slashdirt.org>
Showing
- target/linux/generic/files/drivers/net/phy/ar8216.c 57 additions, 0 deletionstarget/linux/generic/files/drivers/net/phy/ar8216.c
- target/linux/generic/files/drivers/net/phy/ar8216.h 3 additions, 0 deletionstarget/linux/generic/files/drivers/net/phy/ar8216.h
- target/linux/generic/files/drivers/net/phy/ar8327.c 1 addition, 0 deletionstarget/linux/generic/files/drivers/net/phy/ar8327.c
Loading
Please register or sign in to comment