ramips: provide get_port_stats() on mt7530/762x switches
authorThibaut VARENE <hacks@slashdirt.org>
Fri, 4 Aug 2017 10:27:32 +0000 (12:27 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 1 Sep 2017 07:30:35 +0000 (09:30 +0200)
commit2b3ab0208eddadbf4413576eb57e608ee6e45d5c
tree715eb3aec8f7b08bba2a6b1e7f6d093782ef6dab
parent7a423c389a162d2945901f0b5e7c604d36c64526
ramips: provide get_port_stats() on mt7530/762x 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/ramips/files-4.9/drivers/net/ethernet/mtk/mt7530.c