2017-11-28 21:56:25

by Ben Whitten

[permalink] [raw]
Subject: [PATCH] Introduce a NETDEV LED trigger

It's quite useful to be able to trigger LEDs based on network activity,
similar mechanisms exist in routers and gateway devices.
I am looking to mainline a patch that has existed out of tree for
some time in OpenWRT/LEDE.
The patch has been updated and restructured and most of the issues raised
in the initial submission have been addressed [1].

I am also including the netdev mailing list as it was suggested previously
that if there is no activity the interval will still run and is wasteful

[1] https://lkml.org/lkml/2010/11/14/116

Ben Whitten (1):
leds: trigger: Introduce a NETDEV trigger

.../ABI/testing/sysfs-class-led-trigger-netdev | 45 +++
drivers/leds/trigger/Kconfig | 7 +
drivers/leds/trigger/Makefile | 1 +
drivers/leds/trigger/ledtrig-netdev.c | 428 +++++++++++++++++++++
4 files changed, 481 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-class-led-trigger-netdev
create mode 100644 drivers/leds/trigger/ledtrig-netdev.c

--
2.7.4


From 1585948002208495573@xxx Tue Dec 05 12:44:36 +0000 2017
X-GM-THRID: 1585948002208495573
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread