generic: provide get_port_stats() on b53 switches
authorThibaut VARENE <hacks@slashdirt.org>
Fri, 4 Aug 2017 10:29:19 +0000 (12:29 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 1 Sep 2017 07:30:35 +0000 (09:30 +0200)
commit3056d09b4046e0eb0f6de0f3f5432cd9fa86fc51
tree90efa3c046507278eb3838df3f8378364e7cded6
parent4ddbc43cc15c2fa128a2f169964ef7eb508cf2c5
generic: provide get_port_stats() on b53 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/b53/b53_common.c