]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Export VLAN filtering state
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:23 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:44 +0000 (15:18 -0400)
commit612f4b81732d51aa551249c38fc76b8df1b53a11
tree58b6ad2c8b0ad4410776f23d2ba80877df9b11f4
parent0df621b8a076c12674a285d28959530f29876f5a
bridge: Export VLAN filtering state

It's useful for drivers supporting bridge offload to be able to query
the bridge's VLAN filtering state.

Currently, upon enslavement to a bridge master, the offloading driver
will only learn about the bridge's VLAN filtering state after the bridge
device was already linked with its slave.

Being able to query the bridge's VLAN filtering state allows such
drivers to forbid enslavement in case resource couldn't be allocated for
a VLAN-aware bridge and also choose the correct initialization routine
for the enslaved port, which is dependent on the bridge type.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_if.c
net/bridge/br_mdb.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_vlan.c