/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_switchdev.c | 1407 u16 old_pvid = port->pvid; in prestera_bridge_port_vlan_add() 1408 u16 pvid; in prestera_bridge_port_vlan_add() local 1412 pvid = vid; in prestera_bridge_port_vlan_add() 1414 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_add() 1430 err = prestera_port_pvid_set(port, pvid); in prestera_bridge_port_vlan_add() 1454 u16 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_del() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
H A D | ethsw.h | 56 u16 pvid; member
|
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 102 static int sja1105_pvid_apply(struct sja1105_private *priv, int port, u16 pvid) in sja1105_pvid_apply() argument 108 if (mac[port].vlanid == pvid) in sja1105_pvid_apply() 111 mac[port].vlanid = pvid; in sja1105_pvid_apply() 125 u16 pvid; in sja1105_commit_pvid() local 128 pvid = priv->bridge_pvid[port]; in sja1105_commit_pvid() 130 pvid = priv->tag_8021q_pvid[port]; in sja1105_commit_pvid() 132 rc = sja1105_pvid_apply(priv, port, pvid); in sja1105_commit_pvid() 137 * VLAN-aware bridge. When the tag_8021q pvid is used, we are in sja1105_commit_pvid() 143 if (pvid == priv->bridge_pvid[port]) { in sja1105_commit_pvid() 146 match = sja1105_is_vlan_configured(priv, pvid); in sja1105_commit_pvid() 463 struct sja1105_vlan_lookup_entry pvid = { sja1105_init_static_vlan() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_switchdev.c | 148 if (port->pvid == 0) in sparx5_port_attr_set() 149 port->pvid = 1; in sparx5_port_attr_set() 218 port->pvid = NULL_VID; in sparx5_port_bridge_leave() 254 u16 vid = port->pvid; in sparx5_port_add_addr()
|
H A D | sparx5_netdev.c | 190 sparx5_mact_forget(sparx5, dev->dev_addr, port->pvid); in sparx5_set_mac_address() 193 sparx5_mact_learn(sparx5, PGID_CPU, addr->sa_data, port->pvid); in sparx5_set_mac_address()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 209 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_add() argument 218 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged); in ocelot_vlan_vid_add() 412 return ocelot_mact_forget(ocelot, addr, ocelot_port->pvid); in ocelot_mc_unsync() 421 return ocelot_mact_learn(ocelot, PGID_CPU, addr, ocelot_port->pvid, in ocelot_mc_sync() 465 ocelot_mact_learn(ocelot, PGID_CPU, addr->sa_data, ocelot_port->pvid, in ocelot_port_set_mac_address() 468 ocelot_mact_forget(ocelot, dev->dev_addr, ocelot_port->pvid); in ocelot_port_set_mac_address() 1075 ocelot_mact_learn(ocelot, PGID_CPU, dev->dev_addr, ocelot_port->pvid, in ocelot_probe_port()
|
/kernel/linux/linux-6.6/drivers/net/dsa/microchip/ |
H A D | ksz9477.c | 440 u16 pvid; in ksz9477_port_vlan_del() local 442 ksz_pread16(dev, port, REG_PORT_DEFAULT_VID, &pvid); in ksz9477_port_vlan_del() 443 pvid = pvid & 0xFFF; in ksz9477_port_vlan_del() 452 if (pvid == vlan->vid) in ksz9477_port_vlan_del() 453 pvid = 1; in ksz9477_port_vlan_del() 463 ksz_pwrite16(dev, port, REG_PORT_DEFAULT_VID, pvid); in ksz9477_port_vlan_del()
|
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/ |
H A D | port.c | 912 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) in mv88e6xxx_port_get_pvid() argument 922 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_get_pvid() 927 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) in mv88e6xxx_port_set_pvid() argument 938 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_set_pvid() 945 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid); in mv88e6xxx_port_set_pvid()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
H A D | rtl8366.c | 412 bool pvid = !!(vlan->flags & BRIDGE_VLAN_INFO_PVID); in rtl8366_vlan_add() local 427 pvid ? " PVID" : "no PVID"); in rtl8366_vlan_add() 444 if (!pvid) in rtl8366_vlan_add()
|
H A D | mt7530.c | 1401 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in mt7530_port_vlan_add() local 1414 if (pvid) { in mt7530_port_vlan_add() 1417 priv->ports[port].pvid = vlan->vid_end; in mt7530_port_vlan_add() 1429 u16 vid, pvid; in mt7530_port_vlan_del() local 1433 pvid = priv->ports[port].pvid; in mt7530_port_vlan_del() 1442 if (pvid == vid) in mt7530_port_vlan_del() 1443 pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_del() 1446 mt7530_rmw(priv, MT7530_PPBV1_P(port), G0_PORT_VID_MASK, pvid); in mt7530_port_vlan_del() 1447 priv->ports[port].pvid in mt7530_port_vlan_del() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 44 prestera_hw_vlan_port_vid_set(port, port->pvid); in prestera_port_pvid_set() 46 port->pvid = vid; in prestera_port_pvid_set() 292 port->pvid = PRESTERA_DEFAULT_VID; in prestera_port_create()
|
/kernel/linux/linux-6.6/drivers/net/dsa/realtek/ |
H A D | rtl8366-core.c | 300 bool pvid = !!(vlan->flags & BRIDGE_VLAN_INFO_PVID); in rtl8366_vlan_add() local 323 pvid ? "PVID" : "no PVID"); in rtl8366_vlan_add() 336 if (!pvid) in rtl8366_vlan_add()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | dual_vxlan_bridge.sh | 17 # | | vid 100 pvid untagged | | | | | 24 # | | vid 100 pvid untagged | | | | 59 # | | vid 100 pvid untagged | | | | | | 63 # | | | vid 100 pvid untagged | | | | | | | 157 bridge vlan add vid 100 dev vx100 pvid untagged 161 bridge vlan add vid 100 dev $swp1 pvid untagged 274 in_ns ns1 bridge vlan add vid 100 dev vx100 pvid untagged
|
H A D | mirror_gre_bridge_1q.sh | 22 # | | | vid555 vid555[pvid,untagged] | | 68 bridge vlan add dev br1 vid 555 pvid untagged self
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 1028 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine() 1031 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine() 1129 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add() local 1131 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add() 1155 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid); in mlxsw_sp_bridge_port_vlan_add() 1180 u16 pvid; in mlxsw_sp_br_ban_rif_pvid_change() local 1183 pvid = mlxsw_sp_rif_vid(mlxsw_sp, br_dev); in mlxsw_sp_br_ban_rif_pvid_change() 1184 if (!pvid) in mlxsw_sp_br_ban_rif_pvid_change() 1189 if (vid != pvid) { in mlxsw_sp_br_ban_rif_pvid_change() 1194 if (vid == pvid) { in mlxsw_sp_br_ban_rif_pvid_change() 1819 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; mlxsw_sp_bridge_port_vlan_del() local 2057 u16 pvid; mlxsw_sp_bridge_8021q_vxlan_dev_find() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_bridge_1q.sh | 22 # | | | vid555 vid555[pvid,untagged] | | 68 bridge vlan add dev br1 vid 555 pvid untagged self
|
H A D | router_bridge_vlan.sh | 50 bridge vlan add dev br1 vid 555 self pvid untagged
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.h | 48 u16 pvid; member 109 * to offload VLAN 1 with pvid and untagged flags set. Since these in ice_eswitch_br_is_vid_valid()
|
/kernel/linux/linux-5.10/drivers/net/dsa/b53/ |
H A D | b53_common.c | 1429 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in b53_vlan_add() local 1451 if (pvid && !dsa_is_cpu_port(ds, port)) { in b53_vlan_add() 1466 u16 pvid; in b53_vlan_del() local 1468 b53_read16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), &pvid); in b53_vlan_del() 1477 if (pvid == vid) in b53_vlan_del() 1478 pvid = b53_default_pvid(dev); in b53_vlan_del() 1487 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), pvid); in b53_vlan_del() 1488 b53_fast_age_vlan(dev, pvid); in b53_vlan_del() 1862 u16 pvlan, reg, pvid; in b53_br_leave() local 1884 pvid in b53_br_leave() [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/b53/ |
H A D | b53_common.c | 1506 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in b53_vlan_add() local 1530 if (pvid && !dsa_is_cpu_port(ds, port)) { in b53_vlan_add() 1546 u16 pvid; in b53_vlan_del() local 1548 b53_read16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), &pvid); in b53_vlan_del() 1556 if (pvid == vlan->vid) in b53_vlan_del() 1557 pvid = b53_default_pvid(dev); in b53_vlan_del() 1565 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), pvid); in b53_vlan_del() 1566 b53_fast_age_vlan(dev, pvid); in b53_vlan_del() 1948 u16 pvlan, reg, pvid; in b53_br_leave() local 1970 pvid in b53_br_leave() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 383 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) in fm10k_iov_update_pvid() argument 400 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid() 401 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.h | 445 u16 pvid; member 549 bool pvid, 553 bool pvid,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 383 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) in fm10k_iov_update_pvid() argument 400 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid() 401 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_vlan_options.c | 273 u16 pvid; in br_vlan_process_options() local 289 pvid = br_get_pvid(vg); in br_vlan_process_options() 313 if (v->vid == pvid || in br_vlan_process_options()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_debugfs.h | 758 u16 pvid; member
|