]> git.baikalelectronics.ru Git - kernel.git/commit
macsec: let the administrator set UP state even if lowerdev is down
authorSabrina Dubroca <sd@queasysnail.net>
Sun, 28 Oct 2018 08:33:10 +0000 (09:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Oct 2018 02:26:42 +0000 (19:26 -0700)
commit7063895dde3d08461543b3b9d74d9d2ad8d20a7d
tree284e63f2de4b3186add0090063942e2c4333e626
parent83d4964b1afddcede92c8abdb18307ebdf79553e
macsec: let the administrator set UP state even if lowerdev is down

Currently, the kernel doesn't let the administrator set a macsec device
up unless its lower device is currently up. This is inconsistent, as a
macsec device that is up won't automatically go down when its lower
device goes down.

Now that linkstate propagation works, there's really no reason for this
limitation, so let's remove it.

Fixes: 4f0c7417cca8 ("macsec: introduce IEEE 802.1AE driver")
Reported-by: Radu Rendec <radu.rendec@gmail.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c