]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: Notify about bridge VLANs
authorPetr Machata <petrm@mellanox.com>
Wed, 30 May 2018 01:00:45 +0000 (03:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 May 2018 18:13:44 +0000 (14:13 -0400)
commitd42bbf8c776667b26e5ffbc9dcd2a36c1d28b39c
tree894ecca9ea6eb719e2d569086938ef8b7fa6439f
parent26b689ae63868e6d76b1040618b9dd13b788f30d
net: bridge: Notify about bridge VLANs

A driver might need to react to changes in settings of brentry VLANs.
Therefore send switchdev port notifications for these as well. Reuse
SWITCHDEV_OBJ_ID_PORT_VLAN for this purpose. Listeners should use
netif_is_bridge_master() on orig_dev to determine whether the
notification is about a bridge port or a bridge.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c