net: bridge: Allow bridge master in br_vlan_get_info()
authorPetr Machata <petrm@mellanox.com>
Thu, 10 May 2018 10:13:03 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 21:50:51 +0000 (17:50 -0400)
commit2b18d79e733fd727378aea7927536fb270c7ccbc
tree2dfb468c2e62fe8ab26b2c7105b9928ae195c3cb
parent00483690552c5fb6aa30bf3acb75b0ee89b4c0fd
net: bridge: Allow bridge master in br_vlan_get_info()

Mirroring offload in mlxsw needs to check that a given VLAN is allowed
to ingress the bridge device. br_vlan_get_info() is the function that is
used for this, however currently it only supports bridge port devices.
Extend it to support bridge masters as well.

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