leds: trigger: Introduce a NETDEV trigger

This commit introduces a NETDEV trigger for named device
activity. Available triggers are link, rx, and tx.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
This commit is contained in:
Ben Whitten
2017-12-10 21:17:55 +00:00
committed by Jacek Anaszewski
parent e0d4229879
commit 06f502f57d
4 changed files with 549 additions and 0 deletions

View File

@@ -135,4 +135,11 @@ config LEDS_TRIGGER_PANIC
a different trigger.
If unsure, say Y.
config LEDS_TRIGGER_NETDEV
tristate "LED Netdev Trigger"
depends on NET && LEDS_TRIGGERS
help
This allows LEDs to be controlled by network device activity.
If unsure, say Y.
endif # LEDS_TRIGGERS