diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2018-10-28 09:33:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-28 19:26:42 -0700 |
commit | e6ac075882b2afcdf2d5ab328ce4ab42a1eb9593 (patch) | |
tree | 351f72f5042cc32cbe2935a9eb63bd013be0cad2 /fs/crypto | |
parent | 38b4f18d56372e1e21771ab7b0357b853330186c (diff) | |
download | linux-e6ac075882b2afcdf2d5ab328ce4ab42a1eb9593.tar.bz2 |
macsec: update operstate when lower device changes
Like all other virtual devices (macvlan, vlan), the operstate of a
macsec device should match the state of its lower device. This is done
by calling netif_stacked_transfer_operstate from its netdevice notifier.
We also need to call netif_stacked_transfer_operstate when a new macsec
device is created, so that its operstate is set properly. This is only
relevant when we try to bring the device up directly when we create it.
Radu Rendec proposed a similar patch, inspired from the 802.1q driver,
that included changing the administrative state of the macsec device,
instead of just the operstate. This version is similar to what the
macvlan driver does, and updates only the operstate.
Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Reported-by: Radu Rendec <radu.rendec@gmail.com>
Reported-by: Patrick Talbert <ptalbert@redhat.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions