mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
net: bridge: mst: use br_get_pvid helper
The only place that accessed pvid directly outside of the bridge vlan code was mst, change it to use the br_get_pvid helper. Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260903143138.1574598-4-razor@blackwall.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
bd1aeca098
commit
e46efd49e0
|
|
@ -86,7 +86,7 @@ static void br_mst_vlan_set_state(struct net_bridge_vlan_group *vg,
|
|||
if (br_vlan_get_state(v) == state)
|
||||
return;
|
||||
|
||||
if (v->vid == vg->pvid)
|
||||
if (v->vid == br_get_pvid(vg))
|
||||
br_vlan_set_pvid_state(vg, state);
|
||||
|
||||
br_vlan_set_state(v, state);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user