generic: provide get_port_stats() on adm6996 switches
authorThibaut VARENE <hacks@slashdirt.org>
Fri, 4 Aug 2017 10:28:56 +0000 (12:28 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 1 Sep 2017 07:30:35 +0000 (09:30 +0200)
commit4ddbc43cc15c2fa128a2f169964ef7eb508cf2c5
treef2d7805f672368386a0de47ec10ad00956fc3074
parent4d8a66d9346373c2a7fcac5bdae3f662a9dbd9df
generic: provide get_port_stats() on adm6996 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/adm6996.c