]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: update vlan dev link state for bridge netdev changes
authorMike Manning <mmanning@vyatta.att-mail.com>
Thu, 18 Apr 2019 17:35:35 +0000 (18:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 20:58:17 +0000 (13:58 -0700)
commitb54c77c5557c8825d0d100f8d2e3ecf33164357f
treeba9d30159bb848eb705fa8d3c88e31b819e3921f
parentf57c0fe50cbb889c876adac7a9ca84d2b1412978
bridge: update vlan dev link state for bridge netdev changes

If vlan bridge binding is enabled, then the link state of a vlan device
that is an upper device of the bridge tracks the state of bridge ports
that are members of that vlan. But this can only be done when the link
state of the bridge is up. If it is down, then the link state of the
vlan devices must also be down. This is to maintain existing behavior
for when STP is enabled and there are no live ports, in which case the
link state for the bridge and any vlan devices is down.

Signed-off-by: Mike Manning <mmanning@vyatta.att-mail.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c