generic: provide get_port_stats() on rtl836x switches
authorThibaut VARENE <hacks@slashdirt.org>
Fri, 4 Aug 2017 10:29:52 +0000 (12:29 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 1 Sep 2017 07:30:35 +0000 (09:30 +0200)
commit0369e358916ef092a1644334f5dd1412051b68a4
tree3778611278cb84aeaf772f7072ccf9e0ca1d6d98
parent3056d09b4046e0eb0f6de0f3f5432cd9fa86fc51
generic: provide get_port_stats() on rtl836x switches

This patch provides a generic switch_dev_ops 'get_port_stats()' callback by
taping into the relevant port MIB counters.

This callback is used by swconfig_leds led trigger to blink LEDs with port
network traffic.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
target/linux/generic/files/drivers/net/phy/rtl8366_smi.h
target/linux/generic/files/drivers/net/phy/rtl8366rb.c
target/linux/generic/files/drivers/net/phy/rtl8366s.c
target/linux/generic/files/drivers/net/phy/rtl8367.c
target/linux/generic/files/drivers/net/phy/rtl8367b.c