Lines Matching refs:pvid
40 if (vg->pvid == v->vid) in __vlan_add_pvid()
45 vg->pvid = v->vid; in __vlan_add_pvid()
50 if (vg->pvid != vid) in __vlan_delete_pvid()
54 vg->pvid = 0; in __vlan_delete_pvid()
73 change = !!(flags & BRIDGE_VLAN_INFO_PVID) == !!(vg->pvid != v->vid) || in __vlan_flags_update()
447 __vlan_delete_pvid(vg, vg->pvid); in __vlan_flush()
579 u16 pvid = br_get_pvid(vg); in __allowed_ingress() local
585 if (!pvid) in __allowed_ingress()
591 *vid = pvid; in __allowed_ingress()
594 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
601 skb->vlan_tci |= pvid; in __allowed_ingress()
1060 if (vid != vg->pvid) in vlan_default_pvid()
1074 u16 pvid = br->default_pvid; in br_vlan_disable_default_pvid() local
1079 if (vlan_default_pvid(br_vlan_group(br), pvid)) { in br_vlan_disable_default_pvid()
1080 if (!br_vlan_delete(br, pvid)) in br_vlan_disable_default_pvid()
1081 br_vlan_notify(br, NULL, pvid, 0, RTM_DELVLAN); in br_vlan_disable_default_pvid()
1085 if (vlan_default_pvid(nbp_vlan_group(p), pvid) && in br_vlan_disable_default_pvid()
1086 !nbp_vlan_delete(p, pvid)) in br_vlan_disable_default_pvid()
1087 br_vlan_notify(br, p, pvid, 0, RTM_DELVLAN); in br_vlan_disable_default_pvid()
1093 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid, in __br_vlan_set_default_pvid() argument
1104 if (!pvid) { in __br_vlan_set_default_pvid()
1119 pvent = br_vlan_find(vg, pvid); in __br_vlan_set_default_pvid()
1122 err = br_vlan_add(br, pvid, in __br_vlan_set_default_pvid()
1132 br_vlan_notify(br, NULL, pvid, 0, RTM_NEWVLAN); in __br_vlan_set_default_pvid()
1143 br_vlan_find(vg, pvid)) in __br_vlan_set_default_pvid()
1146 err = nbp_vlan_add(p, pvid, in __br_vlan_set_default_pvid()
1154 br_vlan_notify(p->br, p, pvid, 0, RTM_NEWVLAN); in __br_vlan_set_default_pvid()
1158 br->default_pvid = pvid; in __br_vlan_set_default_pvid()
1176 nbp_vlan_delete(p, pvid); in __br_vlan_set_default_pvid()
1177 br_vlan_notify(br, p, pvid, 0, RTM_DELVLAN); in __br_vlan_set_default_pvid()
1189 br_vlan_delete(br, pvid); in __br_vlan_set_default_pvid()
1190 br_vlan_notify(br, NULL, pvid, 0, RTM_DELVLAN); in __br_vlan_set_default_pvid()
1198 u16 pvid = val; in br_vlan_set_default_pvid() local
1204 if (pvid == br->default_pvid) in br_vlan_set_default_pvid()
1213 err = __br_vlan_set_default_pvid(br, pvid, extack); in br_vlan_set_default_pvid()
1965 u16 pvid; in br_vlan_dump_dev() local
1997 pvid = br_get_pvid(vg); in br_vlan_dump_dev()
2027 } else if (dump_stats || v->vid == pvid || in br_vlan_dump_dev()
2029 u16 vlan_flags = br_vlan_flags(range_start, pvid); in br_vlan_dump_dev()
2059 br_vlan_flags(range_start, pvid), in br_vlan_dump_dev()