bridge: update vlan dev state when port added to or deleted from vlan
authorMike Manning <mmanning@vyatta.att-mail.com>
Thu, 18 Apr 2019 17:35:34 +0000 (18:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 20:58:17 +0000 (13:58 -0700)
commit80900acd3a30ed32d65ec591ded5d527d6ba373f
tree16b1089ff3506fd0af5a91aa1e7597de74e80345
parent9c0ec2e7182a508335364c752da0883a2a7f3999
bridge: update vlan dev state when port added to or deleted from vlan

If vlan bridge binding is enabled, then the link state of a vlan device
that is an upper device of the bridge should track the state of bridge
ports that are members of that vlan. So if a bridge port becomes or
stops being a member of a vlan, then update the link state of the
vlan device if necessary.

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