switch: allow Ethernet port LEDs to show specific port speeds only
authorFelix Fietkau <nbd@openwrt.org>
Thu, 25 Feb 2016 13:31:26 +0000 (13:31 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 25 Feb 2016 13:31:26 +0000 (13:31 +0000)
commit40e94c91f55bc1b53d4eaf220b84684a7a24fc49
tree9c368b540b64e2b2269fb8221310d17de88a090f
parent061b0bb7e1a53b1f704e4397d4d940b2d81efc4f
switch: allow Ethernet port LEDs to show specific port speeds only

This patch adds speed_mask special file to LEDs connected to switch ports
via 'switch' trigger. It allows to choose which speeds to signal when link
is up. If router has more than one LED per port, they may light up
differently depending on how fast connection is. Default setting is 'all
speeds' so backward compatibility with system scripts (for example uci) is
maintained.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
SVN-Revision: 48775
target/linux/generic/files/drivers/net/phy/swconfig_leds.c