]> 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)
commitde3a4f487320f9475f52cc4926dffbc09c12f578
tree894ecca9ea6eb719e2d569086938ef8b7fa6439f
parent1f6effe1762d6d14820b682557314919724dcebd
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