OSDN Git Service

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)
commit9c86ce2c1ae337fc10568a12aea812ed03de8319
tree894ecca9ea6eb719e2d569086938ef8b7fa6439f
parenta73bceb86df8f1e007b7f7691d7e38bb29601943
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