Home
last modified time | relevance | path

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

123456

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_vlan.c111 return port->vlan_aware ? port->pvid : UNAWARE_PVID; in lan966x_vlan_port_get_pvid()
115 bool pvid, bool untagged) in lan966x_vlan_port_set_vid() argument
131 if (pvid) in lan966x_vlan_port_set_vid()
132 port->pvid = vid; in lan966x_vlan_port_set_vid()
139 if (port->pvid == vid) in lan966x_vlan_port_remove_vid()
140 port->pvid = 0; in lan966x_vlan_port_remove_vid()
155 u16 pvid; in lan966x_vlan_port_apply() local
158 pvid = lan966x_vlan_port_get_pvid(port); in lan966x_vlan_port_apply()
162 val = ANA_VLAN_CFG_VLAN_VID_SET(pvid); in lan966x_vlan_port_apply()
180 if (port->vlan_aware && !pvid) in lan966x_vlan_port_apply()
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c121 u32 pvid; in am65_cpsw_get_pvid() local
124 pvid = readl(port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_get_pvid()
126 pvid = readl(host_p->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_get_pvid()
128 pvid = pvid & 0xfff; in am65_cpsw_get_pvid()
130 return pvid; in am65_cpsw_get_pvid()
137 u32 pvid; in am65_cpsw_set_pvid() local
139 pvid = vid; in am65_cpsw_set_pvid()
140 pvid |= cfi ? BIT(12) : 0; in am65_cpsw_set_pvid()
141 pvid |= (cos & 0x7) << 13; in am65_cpsw_set_pvid()
144 writel(pvid, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_set_pvid()
[all …]
Dcpsw_switchdev.c123 u32 pvid; in cpsw_get_pvid() local
130 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid()
133 pvid = readl(port_vlan_reg); in cpsw_get_pvid()
136 pvid = pvid & 0xfff; in cpsw_get_pvid()
138 return pvid; in cpsw_get_pvid()
145 u32 pvid; in cpsw_set_pvid() local
147 pvid = vid; in cpsw_set_pvid()
148 pvid |= cfi ? BIT(12) : 0; in cpsw_set_pvid()
149 pvid |= (cos & 0x7) << 13; in cpsw_set_pvid()
157 slave_write(cpsw->slaves + (priv->emac_port - 1), pvid, reg); in cpsw_set_pvid()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_vlan.c48 ANA_CL_VLAN_CTRL_PORT_VID_SET(port->pvid), in sparx5_vlan_port_setup()
55 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, in sparx5_vlan_vid_add() argument
79 if (pvid) in sparx5_vlan_vid_add()
80 port->pvid = vid; in sparx5_vlan_vid_add()
106 if (port->pvid == vid) in sparx5_vlan_vid_del()
107 port->pvid = 0; in sparx5_vlan_vid_del()
208 ANA_CL_VLAN_CTRL_PORT_VID_SET(port->pvid); in sparx5_vlan_port_apply()
212 if (port->vlan_aware && !port->pvid) in sparx5_vlan_port_apply()
/linux-6.1.9/drivers/net/dsa/
Ddsa_loop.c209 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local
229 __func__, port, vlan->vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_add()
231 if (pvid) in dsa_loop_port_vlan_add()
232 ps->ports[port].pvid = vlan->vid; in dsa_loop_port_vlan_add()
242 u16 pvid = ps->ports[port].pvid; in dsa_loop_port_vlan_del() local
255 if (pvid == vlan->vid) in dsa_loop_port_vlan_del()
256 pvid = 1; in dsa_loop_port_vlan_del()
259 __func__, port, vlan->vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_del()
260 ps->ports[port].pvid = pvid; in dsa_loop_port_vlan_del()
/linux-6.1.9/net/bridge/
Dbr_vlan.c40 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()
[all …]
Dbr_arp_nd_proxy.c52 u16 pvid; in br_arp_send() local
72 pvid = br_get_pvid(vg); in br_arp_send()
73 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_arp_send()
262 u16 pvid; in br_nd_send() local
349 pvid = br_get_pvid(vg); in br_nd_send()
350 if (pvid == (vlan_tci & VLAN_VID_MASK)) in br_nd_send()
/linux-6.1.9/arch/powerpc/platforms/85xx/
Dstx_gp3.c70 uint pvid, svid, phid1; in stx_gp3_show_cpuinfo() local
72 pvid = mfspr(SPRN_PVR); in stx_gp3_show_cpuinfo()
76 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in stx_gp3_show_cpuinfo()
Dtqm85xx.c69 uint pvid, svid, phid1; in tqm85xx_show_cpuinfo() local
71 pvid = mfspr(SPRN_PVR); in tqm85xx_show_cpuinfo()
75 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in tqm85xx_show_cpuinfo()
Dksi8560.c149 uint pvid, svid, phid1; in ksi8560_show_cpuinfo() local
151 pvid = mfspr(SPRN_PVR); in ksi8560_show_cpuinfo()
165 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in ksi8560_show_cpuinfo()
Dmpc85xx_ads.c138 uint pvid, svid, phid1; in mpc85xx_ads_show_cpuinfo() local
140 pvid = mfspr(SPRN_PVR); in mpc85xx_ads_show_cpuinfo()
144 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in mpc85xx_ads_show_cpuinfo()
Dmpc85xx_cds.c357 uint pvid, svid, phid1; in mpc85xx_cds_show_cpuinfo() local
359 pvid = mfspr(SPRN_PVR); in mpc85xx_cds_show_cpuinfo()
365 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in mpc85xx_cds_show_cpuinfo()
/linux-6.1.9/Documentation/networking/device_drivers/ethernet/ti/
Dam65_nuss_cpsw_switchdev.rst65 [*] bridge vlan add dev br0 vid 1 pvid untagged self
84 bridge vlan add dev br0 vid 1 pvid untagged self <---- add cpu port to VLAN 1
93 bridge vlan add dev sw0p1 vid 100 pvid untagged master
94 bridge vlan add dev sw0p2 vid 100 pvid untagged master
95 bridge vlan add dev br0 vid 100 pvid untagged self <---- Add cpu port to VLAN100
101 bridge vlan add dev br0 vid 100 pvid tagged self <---- Add cpu port to VLAN100
135 bridge vlan add dev sw0p1 vid 100 pvid untagged master
Dcpsw_switchdev.rst115 [*] bridge vlan add dev br0 vid 1 pvid untagged self
134 bridge vlan add dev br0 vid 1 pvid untagged self <---- add cpu port to VLAN 1
143 bridge vlan add dev sw0p1 vid 100 pvid untagged master
144 bridge vlan add dev sw0p2 vid 100 pvid untagged master
145 bridge vlan add dev br0 vid 100 pvid untagged self <---- Add cpu port to VLAN100
151 bridge vlan add dev br0 vid 100 pvid tagged self <---- Add cpu port to VLAN100
185 bridge vlan add dev sw0p1 vid 100 pvid untagged master
221 bridge vlan add dev br0 vid 1 pvid untagged self
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/
Dingress_rif_conf_vxlan.sh90 bridge vlan add vid 10 dev $swp1 pvid untagged
249 bridge vlan add vid 4001 dev vx4001 pvid untagged
269 bridge vlan del vid 4001 dev vx4001 pvid untagged
283 bridge vlan add vid 4001 dev vx4001 pvid untagged
300 bridge vlan del vid 4001 dev vx4001 pvid untagged
Dvxlan.sh769 bridge vlan add dev vxlan0 vid $vid pvid untagged
854 bridge vlan add vid 10 dev vxlan10 pvid untagged
855 bridge vlan add vid 20 dev vxlan20 pvid untagged
866 bridge vlan add vid 10 dev vxlan20 pvid untagged &> /dev/null
877 bridge vlan del vid 20 dev vxlan20 pvid untagged
878 bridge vlan add vid 10 dev vxlan20 pvid untagged
886 bridge vlan add vid 20 dev vxlan20 pvid untagged
933 bridge vlan add vid 10 dev vxlan10 pvid untagged
934 bridge vlan add vid 20 dev vxlan20 pvid untagged
1051 bridge vlan add vid 10 dev vxlan10 pvid untagged
[all …]
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dvxlan_symmetric.sh187 bridge vlan add vid 10 dev vx10 pvid untagged
195 bridge vlan add vid 20 dev vx20 pvid untagged
199 bridge vlan add vid 10 dev $swp1 pvid untagged
203 bridge vlan add vid 20 dev $swp2 pvid untagged
211 bridge vlan add vid 4001 dev vx4001 pvid untagged
358 bridge vlan add vid 10 dev vx10 pvid untagged
366 bridge vlan add vid 20 dev vx20 pvid untagged
374 bridge vlan add vid 4001 dev vx4001 pvid untagged
378 bridge vlan add vid 10 dev w1 pvid untagged
382 bridge vlan add vid 20 dev w3 pvid untagged
Dvxlan_symmetric_ipv6.sh189 bridge vlan add vid 10 dev vx10 pvid untagged
197 bridge vlan add vid 20 dev vx20 pvid untagged
211 bridge vlan add vid 4001 dev vx4001 pvid untagged
241 bridge vlan add vid 10 dev $swp1 pvid untagged
242 bridge vlan add vid 20 dev $swp2 pvid untagged
359 bridge vlan add vid 10 dev vx10 pvid untagged
367 bridge vlan add vid 20 dev vx20 pvid untagged
375 bridge vlan add vid 4001 dev vx4001 pvid untagged
379 bridge vlan add vid 10 dev w1 pvid untagged
383 bridge vlan add vid 20 dev w3 pvid untagged
Dq_in_vni.sh154 bridge vlan add vid 100 dev vx100 pvid untagged
158 bridge vlan add vid 100 dev $swp1 pvid untagged
162 bridge vlan add vid 100 dev $swp2 pvid untagged
229 bridge vlan add vid 100 dev w1 pvid untagged
240 bridge vlan add vid 100 dev vx100 pvid untagged
Dq_in_vni_ipv6.sh154 bridge vlan add vid 100 dev vx100 pvid untagged
158 bridge vlan add vid 100 dev $swp1 pvid untagged
162 bridge vlan add vid 100 dev $swp2 pvid untagged
229 bridge vlan add vid 100 dev w1 pvid untagged
240 bridge vlan add vid 100 dev vx100 pvid untagged
Dvxlan_asymmetric.sh177 bridge vlan add vid 10 dev vx10 pvid untagged
185 bridge vlan add vid 20 dev vx20 pvid untagged
189 bridge vlan add vid 10 dev $swp1 pvid untagged
193 bridge vlan add vid 20 dev $swp2 pvid untagged
327 bridge vlan add vid 10 dev vx10 pvid untagged
335 bridge vlan add vid 20 dev vx20 pvid untagged
339 bridge vlan add vid 10 dev w1 pvid untagged
343 bridge vlan add vid 20 dev w3 pvid untagged
Dvxlan_asymmetric_ipv6.sh177 bridge vlan add vid 10 dev vx10 pvid untagged
185 bridge vlan add vid 20 dev vx20 pvid untagged
189 bridge vlan add vid 10 dev $swp1 pvid untagged
193 bridge vlan add vid 20 dev $swp2 pvid untagged
326 bridge vlan add vid 10 dev vx10 pvid untagged
334 bridge vlan add vid 20 dev vx20 pvid untagged
338 bridge vlan add vid 10 dev w1 pvid untagged
342 bridge vlan add vid 20 dev w3 pvid untagged
Dvxlan_bridge_1q.sh170 bridge vlan add vid 10 dev vx10 pvid untagged
178 bridge vlan add vid 20 dev vx20 pvid untagged
283 bridge vlan add vid 10 dev vx10 pvid untagged
294 bridge vlan add vid 20 dev vx20 pvid untagged
403 bridge vlan add vid 10 dev vx10 pvid untagged
406 bridge vlan add vid 20 dev vx20 pvid untagged
642 bridge vlan add vid 10 dev vx10 pvid untagged
675 bridge vlan add vid 10 dev vx10 pvid untagged
Dvxlan_bridge_1q_ipv6.sh184 bridge vlan add vid 10 dev vx10 pvid untagged
192 bridge vlan add vid 20 dev vx20 pvid untagged
302 bridge vlan add vid 10 dev vx10 pvid untagged
313 bridge vlan add vid 20 dev vx20 pvid untagged
422 bridge vlan add vid 10 dev vx10 pvid untagged
425 bridge vlan add vid 20 dev vx20 pvid untagged
784 bridge vlan add vid 10 dev vx10 pvid untagged
817 bridge vlan add vid 10 dev vx10 pvid untagged
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Dq_in_vni_veto.sh46 bridge vlan add vid 100 dev vx100 pvid untagged 2>/dev/null
49 bridge vlan add vid 100 dev vx100 pvid untagged 2>&1 >/dev/null \

123456