Home
last modified time | relevance | path

Searched refs:pvid (Results 1 – 25 of 56) sorted by relevance

123

/Linux-v4.19/drivers/net/dsa/
Ddsa_loop.c62 u16 pvid; member
207 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local
226 __func__, port, vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_add()
229 if (pvid) in dsa_loop_port_vlan_add()
230 ps->pvid = vid; in dsa_loop_port_vlan_add()
240 u16 vid, pvid = ps->pvid; in dsa_loop_port_vlan_del() local
252 if (pvid == vid) in dsa_loop_port_vlan_del()
253 pvid = 1; in dsa_loop_port_vlan_del()
256 __func__, port, vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_del()
258 ps->pvid = pvid; in dsa_loop_port_vlan_del()
Dmt7530.c1133 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in mt7530_port_vlan_add() local
1152 if (pvid) { in mt7530_port_vlan_add()
1155 priv->ports[port].pvid = vlan->vid_end; in mt7530_port_vlan_add()
1167 u16 vid, pvid; in mt7530_port_vlan_del() local
1177 pvid = priv->ports[port].pvid; in mt7530_port_vlan_del()
1186 if (pvid == vid) in mt7530_port_vlan_del()
1187 pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_del()
1190 mt7530_rmw(priv, MT7530_PPBV1_P(port), G0_PORT_VID_MASK, pvid); in mt7530_port_vlan_del()
1191 priv->ports[port].pvid = pvid; in mt7530_port_vlan_del()
Drtl8366.c365 bool pvid = !!(vlan->flags & BRIDGE_VLAN_INFO_PVID); in rtl8366_vlan_add() local
378 pvid ? " PVID" : "no PVID"); in rtl8366_vlan_add()
/Linux-v4.19/net/bridge/
Dbr_vlan.c37 if (vg->pvid == vid) in __vlan_add_pvid()
41 vg->pvid = vid; in __vlan_add_pvid()
48 if (vg->pvid != vid) in __vlan_delete_pvid()
52 vg->pvid = 0; in __vlan_delete_pvid()
352 __vlan_delete_pvid(vg, vg->pvid); in __vlan_flush()
453 u16 pvid = br_get_pvid(vg); in __allowed_ingress() local
459 if (!pvid) in __allowed_ingress()
465 *vid = pvid; in __allowed_ingress()
468 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
475 skb->vlan_tci |= pvid; in __allowed_ingress()
[all …]
Dbr_arp_nd_proxy.c55 u16 pvid; in br_arp_send() local
75 pvid = br_get_pvid(vg); in br_arp_send()
76 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send()
256 u16 pvid; in br_nd_send() local
339 pvid = br_get_pvid(vg); in br_nd_send()
340 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
Dbr_netlink.c30 u16 flags, pvid; in __get_num_vlan_infos() local
36 pvid = br_get_pvid(vg); in __get_num_vlan_infos()
43 if (v->vid == pvid) in __get_num_vlan_infos()
290 u16 flags, pvid; in br_fill_ifvlaninfo_compressed() local
297 pvid = br_get_pvid(vg); in br_fill_ifvlaninfo_compressed()
302 if (v->vid == pvid) in br_fill_ifvlaninfo_compressed()
345 u16 pvid; in br_fill_ifvlaninfo() local
347 pvid = br_get_pvid(vg); in br_fill_ifvlaninfo()
354 if (v->vid == pvid) in br_fill_ifvlaninfo()
1551 u16 pvid; in br_fill_linkxstats() local
[all …]
/Linux-v4.19/arch/powerpc/platforms/85xx/
Dstx_gp3.c75 uint pvid, svid, phid1; in stx_gp3_show_cpuinfo() local
77 pvid = mfspr(SPRN_PVR); in stx_gp3_show_cpuinfo()
81 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in stx_gp3_show_cpuinfo()
Dtqm85xx.c74 uint pvid, svid, phid1; in tqm85xx_show_cpuinfo() local
76 pvid = mfspr(SPRN_PVR); in tqm85xx_show_cpuinfo()
80 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in tqm85xx_show_cpuinfo()
Dsbc8548.c101 uint pvid, svid, phid1; in sbc8548_show_cpuinfo() local
103 pvid = mfspr(SPRN_PVR); in sbc8548_show_cpuinfo()
108 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in sbc8548_show_cpuinfo()
Dksi8560.c148 uint pvid, svid, phid1; in ksi8560_show_cpuinfo() local
150 pvid = mfspr(SPRN_PVR); in ksi8560_show_cpuinfo()
164 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in ksi8560_show_cpuinfo()
Dmpc85xx_ads.c142 uint pvid, svid, phid1; in mpc85xx_ads_show_cpuinfo() local
144 pvid = mfspr(SPRN_PVR); in mpc85xx_ads_show_cpuinfo()
148 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in mpc85xx_ads_show_cpuinfo()
Dmpc85xx_cds.c362 uint pvid, svid, phid1; in mpc85xx_cds_show_cpuinfo() local
364 pvid = mfspr(SPRN_PVR); in mpc85xx_cds_show_cpuinfo()
370 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in mpc85xx_cds_show_cpuinfo()
/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot.c187 val = ANA_PORT_VLAN_CFG_VLAN_VID(port->pvid); in ocelot_vlan_port_apply()
234 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_add() argument
252 if (pvid) in ocelot_vlan_vid_add()
253 port->pvid = vid; in ocelot_vlan_vid_add()
287 if (port->pvid == vid) in ocelot_vlan_vid_del()
288 port->pvid = 0; in ocelot_vlan_vid_del()
598 ocelot_mact_forget(ocelot, ha->addr, port->pvid); in ocelot_mact_mc_reset()
616 ocelot_mact_learn(ocelot, PGID_CPU, ha->addr, port->pvid, in ocelot_mact_mc_add()
667 ocelot_mact_learn(ocelot, PGID_CPU, addr->sa_data, port->pvid, in ocelot_port_set_mac_address()
670 ocelot_mact_forget(ocelot, dev->dev_addr, port->pvid); in ocelot_port_set_mac_address()
[all …]
/Linux-v4.19/drivers/net/dsa/b53/
Db53_common.c1100 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in b53_vlan_add() local
1119 if (pvid) { in b53_vlan_add()
1134 u16 pvid; in b53_vlan_del() local
1136 b53_read16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), &pvid); in b53_vlan_del()
1145 if (pvid == vid) { in b53_vlan_del()
1147 pvid = 1; in b53_vlan_del()
1149 pvid = 0; in b53_vlan_del()
1159 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), pvid); in b53_vlan_del()
1160 b53_fast_age_vlan(dev, pvid); in b53_vlan_del()
1441 u16 pvlan, reg, pvid; in b53_br_leave() local
[all …]
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.h50 u16 pvid; member
Dethsw.c53 static int ethsw_port_set_pvid(struct ethsw_port_priv *port_priv, u16 pvid) in ethsw_port_set_pvid() argument
68 tci_cfg.vlan_id = pvid; in ethsw_port_set_pvid()
90 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
91 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in ethsw_port_set_pvid()
92 port_priv->pvid = pvid; in ethsw_port_set_pvid()
/Linux-v4.19/drivers/net/dsa/microchip/
Dksz_common.c617 u16 pvid; in ksz_port_vlan_del() local
619 ksz_pread16(dev, port, REG_PORT_DEFAULT_VID, &pvid); in ksz_port_vlan_del()
620 pvid = pvid & 0xFFF; in ksz_port_vlan_del()
630 if (pvid == vid) in ksz_port_vlan_del()
631 pvid = 1; in ksz_port_vlan_del()
642 ksz_pwrite16(dev, port, REG_PORT_DEFAULT_VID, pvid); in ksz_port_vlan_del()
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/
Dport.c846 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) in mv88e6xxx_port_get_pvid() argument
856 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_get_pvid()
861 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) in mv88e6xxx_port_set_pvid() argument
872 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_set_pvid()
879 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid); in mv88e6xxx_port_set_pvid()
Dport.h283 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid);
284 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c992 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine()
995 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine()
1092 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add() local
1094 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add()
1106 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid); in mlxsw_sp_bridge_port_vlan_add()
1132 u16 pvid; in mlxsw_sp_br_ban_rif_pvid_change() local
1139 pvid = mlxsw_sp_fid_8021q_vid(fid); in mlxsw_sp_br_ban_rif_pvid_change()
1143 if (vid != pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1148 if (vid == pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1758 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : vid; in mlxsw_sp_bridge_port_vlan_del() local
[all …]
/Linux-v4.19/tools/testing/selftests/net/forwarding/
Dmirror_gre_bridge_1q.sh66 bridge vlan add dev br1 vid 555 pvid untagged self
Drouter_bridge_vlan.sh50 bridge vlan add dev br1 vid 555 self pvid untagged
Dmirror_gre_vlan_bridge_1q.sh185 bridge vlan add dev $swp3 vid 555 pvid untagged
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c356 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) in fm10k_iov_update_pvid() argument
373 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid()
374 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c1722 if (!vsi->info.pvid) in i40e_vc_get_vf_resources_msg()
2639 if (vsi->info.pvid) { in i40e_vc_add_vlan_msg()
2705 if (vsi->info.pvid) { in i40e_vc_remove_vlan_msg()
3899 if (vsi->info.pvid) in i40e_vsi_has_vlans()
3960 if (le16_to_cpu(vsi->info.pvid) == vlanprio) in i40e_ndo_set_vf_port_vlan()
3989 vlanprio != le16_to_cpu(vsi->info.pvid)) && in i40e_ndo_set_vf_port_vlan()
3990 vsi->info.pvid) { in i40e_ndo_set_vf_port_vlan()
4001 if (vsi->info.pvid) { in i40e_ndo_set_vf_port_vlan()
4003 i40e_rm_vlan_all_mac(vsi, (le16_to_cpu(vsi->info.pvid) & in i40e_ndo_set_vf_port_vlan()
4045 vf->port_vlan_id = le16_to_cpu(vsi->info.pvid); in i40e_ndo_set_vf_port_vlan()
[all …]

123