net: bridge: Extend br_vlan_get_pvid() for bridge ports
authorIdo Schimmel <idosch@mellanox.com>
Wed, 28 Nov 2018 20:06:58 +0000 (20:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:06:28 +0000 (17:06 -0800)
commit5a6db04ca8d44c873d6dd6bc3d2328aaa4c86a87
tree263cf8f434480df60eb357309a99a7950a0e7a9a
parent734317d93e5e19ced0d5b903afe6cceefc177c81
net: bridge: Extend br_vlan_get_pvid() for bridge ports

Currently, the function only works for the bridge device itself, but
subsequent patches will need to be able to query the PVID of a given
bridge port, so extend the function.

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