Lines Matching refs:pvid
40 if (vg->pvid == v->vid)
45 vg->pvid = v->vid;
52 if (vg->pvid != vid)
56 vg->pvid = 0;
401 __vlan_delete_pvid(vg, vg->pvid);
518 u16 pvid = br_get_pvid(vg);
521 * See if pvid is set on this port. That tells us which
524 if (!pvid)
530 *vid = pvid;
533 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid);
540 skb->vlan_tci |= pvid;
978 if (vid != vg->pvid)
992 u16 pvid = br->default_pvid;
997 if (vlan_default_pvid(br_vlan_group(br), pvid)) {
998 if (!br_vlan_delete(br, pvid))
999 br_vlan_notify(br, NULL, pvid, 0, RTM_DELVLAN);
1003 if (vlan_default_pvid(nbp_vlan_group(p), pvid) &&
1004 !nbp_vlan_delete(p, pvid))
1005 br_vlan_notify(br, p, pvid, 0, RTM_DELVLAN);
1011 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid,
1022 if (!pvid) {
1037 pvent = br_vlan_find(vg, pvid);
1040 err = br_vlan_add(br, pvid,
1050 br_vlan_notify(br, NULL, pvid, 0, RTM_NEWVLAN);
1061 br_vlan_find(vg, pvid))
1064 err = nbp_vlan_add(p, pvid,
1072 br_vlan_notify(p->br, p, pvid, 0, RTM_NEWVLAN);
1076 br->default_pvid = pvid;
1094 nbp_vlan_delete(p, pvid);
1095 br_vlan_notify(br, p, pvid, 0, RTM_DELVLAN);
1107 br_vlan_delete(br, pvid);
1108 br_vlan_notify(br, NULL, pvid, 0, RTM_DELVLAN);
1115 u16 pvid = val;
1121 if (pvid == br->default_pvid)
1124 /* Only allow default pvid change when filtering is disabled */
1130 err = __br_vlan_set_default_pvid(br, pvid, NULL);
1788 u16 pvid;
1816 pvid = br_get_pvid(vg);
1833 if (dump_stats || v->vid == pvid ||
1835 u16 vlan_flags = br_vlan_flags(range_start, pvid);
1858 range_start, br_vlan_flags(range_start, pvid),