Home
last modified time | relevance | path

Searched refs:pvid (Results 1 - 25 of 182) sorted by relevance

12345678

/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A 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()
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()
114 lan966x_vlan_port_set_vid(struct lan966x_port *port, u16 vid, bool pvid, bool untagged) lan966x_vlan_port_set_vid() argument
213 lan966x_vlan_port_add_vlan(struct lan966x_port *port, u16 vid, bool pvid, bool untagged) lan966x_vlan_port_add_vlan() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
H A Dcpsw_switchdev.c128 u32 pvid; in cpsw_get_pvid() local
135 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid()
138 pvid = readl(port_vlan_reg); in cpsw_get_pvid()
141 pvid = pvid & 0xfff; in cpsw_get_pvid()
143 return pvid; in cpsw_get_pvid()
150 u32 pvid; in cpsw_set_pvid() local
152 pvid = vid; in cpsw_set_pvid()
153 pvid |= cfi ? BIT(12) : 0; in cpsw_set_pvid()
154 pvid | in cpsw_set_pvid()
170 cpsw_port_vlan_add(struct cpsw_priv *priv, bool untag, bool pvid, u16 vid, struct net_device *orig_dev) cpsw_port_vlan_add() argument
262 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; cpsw_port_vlans_add() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/
H A 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 | in cpsw_set_pvid()
165 cpsw_port_vlan_add(struct cpsw_priv *priv, bool untag, bool pvid, u16 vid, struct net_device *orig_dev) cpsw_port_vlan_add() argument
255 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; cpsw_port_vlans_add() local
[all...]
H A 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 | in am65_cpsw_set_pvid()
149 am65_cpsw_port_vlan_add(struct am65_cpsw_port *port, bool untag, bool pvid, u16 vid, struct net_device *orig_dev) am65_cpsw_port_vlan_add() argument
240 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; am65_cpsw_port_vlans_add() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H A 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()
/kernel/linux/linux-6.6/net/bridge/
H A 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
582 * See if pvid is set on this port. That tells us which in __allowed_ingress()
585 if (!pvid) in __allowed_ingress()
591 *vid = pvid; in __allowed_ingress()
1074 u16 pvid = br->default_pvid; br_vlan_disable_default_pvid() local
1093 __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid, struct netlink_ext_ack *extack) __br_vlan_set_default_pvid() argument
1198 u16 pvid = val; br_vlan_set_default_pvid() local
1966 u16 pvid; br_vlan_dump_dev() local
[all...]
/kernel/linux/linux-5.10/net/bridge/
H A Dbr_vlan.c40 if (vg->pvid == v->vid) in __vlan_add_pvid()
45 vg->pvid = v->vid; in __vlan_add_pvid()
52 if (vg->pvid != vid) in __vlan_delete_pvid()
56 vg->pvid = 0; in __vlan_delete_pvid()
401 __vlan_delete_pvid(vg, vg->pvid); in __vlan_flush()
518 u16 pvid = br_get_pvid(vg); in __allowed_ingress() local
521 * See if pvid is set on this port. That tells us which in __allowed_ingress()
524 if (!pvid) in __allowed_ingress()
530 *vid = pvid; in __allowed_ingress()
533 __vlan_hwaccel_put_tag(skb, br->vlan_proto, pvid); in __allowed_ingress()
992 u16 pvid = br->default_pvid; br_vlan_disable_default_pvid() local
1011 __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid, struct netlink_ext_ack *extack) __br_vlan_set_default_pvid() argument
1115 u16 pvid = val; br_vlan_set_default_pvid() local
1788 u16 pvid; br_vlan_dump_dev() local
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/
H A Ddsa_loop.c225 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local
243 dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid: %d\n", in dsa_loop_port_vlan_add()
244 __func__, port, vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_add()
247 if (pvid) in dsa_loop_port_vlan_add()
248 ps->ports[port].pvid = vid; in dsa_loop_port_vlan_add()
258 u16 vid, pvid = ps->ports[port].pvid; in dsa_loop_port_vlan_del() local
270 if (pvid == vid) in dsa_loop_port_vlan_del()
271 pvid = 1; in dsa_loop_port_vlan_del()
273 dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid in dsa_loop_port_vlan_del()
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/
H A Ddsa_loop.c209 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local
228 dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid: %d\n", in dsa_loop_port_vlan_add()
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()
258 dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid in dsa_loop_port_vlan_del()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/85xx/
H A 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()
H A 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()
H A Dksi8560.c150 uint pvid, svid, phid1; in ksi8560_show_cpuinfo() local
152 pvid = mfspr(SPRN_PVR); in ksi8560_show_cpuinfo()
166 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in ksi8560_show_cpuinfo()
/kernel/linux/linux-5.10/arch/powerpc/platforms/85xx/
H A Dstx_gp3.c71 uint pvid, svid, phid1; in stx_gp3_show_cpuinfo() local
73 pvid = mfspr(SPRN_PVR); in stx_gp3_show_cpuinfo()
77 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in stx_gp3_show_cpuinfo()
H A Dtqm85xx.c70 uint pvid, svid, phid1; in tqm85xx_show_cpuinfo() local
72 pvid = mfspr(SPRN_PVR); in tqm85xx_show_cpuinfo()
76 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in tqm85xx_show_cpuinfo()
H A Dsbc8548.c96 uint pvid, svid, phid1; in sbc8548_show_cpuinfo() local
98 pvid = mfspr(SPRN_PVR); in sbc8548_show_cpuinfo()
103 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); in sbc8548_show_cpuinfo()
H A 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()
H A 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()
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
H A Dvxlan_symmetric.sh15 # | | vid 10 pvid untagged vid 20 pvid untagged | |
22 # | | vid 10 pvid untagged vid 20 pvid untagged | |
29 # | | vid 4001 pvid untagged | |
86 # | | vid 10 pvid untagged vid 20 pvid untagged | |
93 # | | vid 4001 pvid untagged | |
96 # | | | vid 10 pvid untagged br1 | vid 20 pvid untagge
[all...]
H A Dvxlan_asymmetric.sh15 # | | vid 10 pvid untagged vid 20 pvid untagged | |
22 # | | vid 10 pvid untagged vid 20 pvid untagged | |
79 # | | vid 10 pvid untagged vid 20 pvid untagged | |
82 # | | | vid 10 pvid untagged br1 | vid 20 pvid untagged | |
177 bridge vlan add vid 10 dev vx10 pvid untagged
185 bridge vlan add vid 20 dev vx20 pvid untagge
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dvxlan_symmetric.sh15 # | | vid 10 pvid untagged vid 20 pvid untagged | |
22 # | | vid 10 pvid untagged vid 20 pvid untagged | |
29 # | | vid 4001 pvid untagged | |
86 # | | vid 10 pvid untagged vid 20 pvid untagged | |
93 # | | vid 4001 pvid untagged | |
96 # | | | vid 10 pvid untagged br1 | vid 20 pvid untagge
[all...]
H A Dq_in_vni_ipv6.sh19 # | | vid 100 pvid untagged vid 100 pvid | |
25 # | | vid 100 pvid untagged | |
60 # | | vid 100 pvid untagged | | | | vid 100 pvid untagged | |
63 # | | | vid 100 pvid untagged | | | | | vid 100 pvid untagged | |
154 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 untagge
[all...]
H A Dq_in_vni.sh19 # | | vid 100 pvid untagged vid 100 pvid | |
25 # | | vid 100 pvid untagged | |
60 # | | vid 100 pvid untagged | | | | vid 100 pvid untagged | |
63 # | | | vid 100 pvid untagged | | | | | vid 100 pvid untagged | |
155 bridge vlan add vid 100 dev vx100 pvid untagged
159 bridge vlan add vid 100 dev $swp1 pvid untagged
163 bridge vlan add vid 100 dev $swp2 pvid untagge
[all...]
H A Drouter_bridge_vlan_upper_pvid.sh121 bridge vlan add dev br1 vid 10 pvid self
130 bridge vlan add dev br1 vid 10 pvid self
132 bridge vlan add dev br1 vid 20 pvid self
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dingress_rif_conf_vxlan.sh18 # | | vid 10 pvid untagged | |
26 # | | vid 4001 pvid untagged | |
90 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
/kernel/linux/linux-6.6/net/dsa/
H A Dtag.h47 /* If under a bridge with vlan_filtering=0, make sure to send pvid-tagged
56 u16 vid, pvid, proto; in dsa_untag_bridge_pvid() local
81 err = br_vlan_get_pvid_rcu(dev, &pvid); in dsa_untag_bridge_pvid()
85 if (vid != pvid) in dsa_untag_bridge_pvid()

Completed in 13 milliseconds

12345678