]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: support binding link state to vlan member bridge ports
authorMike Manning <mmanning@vyatta.att-mail.com>
Thu, 18 Apr 2019 17:35:31 +0000 (18:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 20:58:17 +0000 (13:58 -0700)
commit4d64a05043e9975c567c866198dc095611ece582
tree57d041c206093980546be4665a32c4dab88ece81
parentf84684cf7a815caa655bc238cb776e6f3d9ca663
vlan: support binding link state to vlan member bridge ports

In the case of vlan filtering on bridges, the bridge may also have the
corresponding vlan devices as upper devices. Currently the link state
of vlan devices is transferred from the lower device. So this is up if
the bridge is in admin up state and there is at least one bridge port
that is up, regardless of the vlan that the port is a member of.

The link state of the vlan device may need to track only the state of
the subset of ports that are also members of the corresponding vlan,
rather than that of all ports.

Add a flag to specify a vlan bridge binding mode, by which the link
state is no longer automatically transferred from the lower device,
but is instead determined by the bridge ports that are members of the
vlan.

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>
include/uapi/linux/if_vlan.h
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c