Skip to content
Snippets Groups Projects
Commit 4d8a66d9 authored by Thibaut VARENE's avatar Thibaut VARENE Committed by John Crispin
Browse files

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: default avatarThibaut VARENE <hacks@slashdirt.org>
parent 2b3ab020
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment