Searched refs:pvid (Results 51 - 75 of 102) sorted by relevance

12345

/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dextack.sh106 bridge vlan add dev vx1 vid 1 pvid untagged 2>&1 >/dev/null \
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_net.c492 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, argument
501 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged);
1074 static int ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, argument
1082 return ocelot_vlan_prepare(ocelot, port, vid, pvid, untagged, extack);
1090 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; local
1093 ret = ocelot_vlan_vid_prepare(dev, vlan->vid, pvid, untagged, extack);
1097 return ocelot_vlan_vid_add(dev, vlan->vid, pvid, untagged);
H A Docelot.c461 u16 pvid = ocelot_vlan_unaware_pvid(ocelot, ocelot_port->bridge); local
467 pvid = pvid_vlan->vid;
470 ANA_PORT_VLAN_CFG_VLAN_VID(pvid),
474 /* If there's no pvid, we should drop not only untagged traffic (which
641 int ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid, argument
670 int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, argument
687 if (pvid)
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dport.c1101 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) argument
1111 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK;
1116 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) argument
1127 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK;
1134 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid);
H A Dport.h396 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid);
397 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
/linux-master/drivers/net/dsa/
H A Dmt7530.c1460 G0_PORT_VID(priv->ports[port].pvid));
1463 if (!priv->ports[port].pvid)
1811 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; local
1820 if (pvid) {
1821 priv->ports[port].pvid = vlan->vid;
1832 } else if (vlan->vid && priv->ports[port].pvid == vlan->vid) {
1834 priv->ports[port].pvid = G0_PORT_VID_DEF;
1866 if (priv->ports[port].pvid == vlan->vid) {
1867 priv->ports[port].pvid = G0_PORT_VID_DEF;
H A Dlantiq_gswip.c1037 bool pvid)
1104 if (pvid)
1112 u16 vid, bool pvid, bool vlan_aware)
1162 if (pvid)
1259 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; local
1275 untagged, pvid);
1283 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; local
1293 return gswip_vlan_remove(priv, bridge, port, vlan->vid, pvid, true);
1034 gswip_vlan_add_aware(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool untagged, bool pvid) argument
1110 gswip_vlan_remove(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool pvid, bool vlan_aware) argument
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pci.c1593 u16 glort, pvid; local
1602 /* extract values from the pvid update */
1604 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID);
1611 if (pvid >= FM10K_VLAN_TABLE_VID_MAX)
1617 err = fm10k_iov_update_pvid(interface, glort, pvid);
1622 if (pvid != hw->mac.default_vid)
1625 hw->mac.default_vid = pvid;
H A Dfm10k_pf.c1688 u16 glort, pvid; local
1697 /* extract values from the pvid update */
1699 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID);
1706 if (pvid >= FM10K_VLAN_TABLE_VID_MAX)
1710 hw->mac.default_vid = pvid;
H A Dfm10k.h531 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid);
/linux-master/net/bridge/
H A Dbr_private.h250 * @pvid: PVID VLAN id
264 u16 pvid; member in struct:net_bridge_vlan_group
693 /* pvid flag is not allowed in ranges */
1561 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid,
1637 return vg->pvid;
1640 static inline u16 br_vlan_flags(const struct net_bridge_vlan *v, u16 pvid) argument
1642 return v->vid == pvid ? v->flags | BRIDGE_VLAN_INFO_PVID : v->flags;
1826 static inline u16 br_vlan_flags(const struct net_bridge_vlan *v, u16 pvid) argument
H A Dbr_mst.c86 if (v->vid == vg->pvid)
H A Dbr_switchdev.c419 u16 pvid; local
424 pvid = br_get_pvid(vg);
430 .flags = br_vlan_flags(v, pvid),
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_main.h177 /* Ingress default VLAN (pvid) */
178 u16 pvid; member in struct:sparx5_port
354 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid,
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera.h141 u16 pvid; member in struct:prestera_port
H A Dprestera_main.c87 prestera_hw_vlan_port_vid_set(port, port->pvid);
89 port->pvid = vid;
617 port->pvid = PRESTERA_DEFAULT_VID;
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c1417 else if (mlxsw_sp_port->pvid == vid)
1420 return mlxsw_sp_port->pvid;
1518 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); local
1520 u16 old_pvid = mlxsw_sp_port->pvid;
1546 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto);
2292 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; local
2302 mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto);
2575 u16 pvid; local
[all...]
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.c752 if (vsi->info.pvid)
2144 if (!vsi->info.pvid)
3223 if (vsi->info.pvid) {
3287 if (vsi->info.pvid) {
4532 if (le16_to_cpu(vsi->info.pvid) == vlanprio)
4550 vlanprio != le16_to_cpu(vsi->info.pvid)) &&
4551 vsi->info.pvid) {
4562 if (vsi->info.pvid) {
4564 i40e_rm_vlan_all_mac(vsi, (le16_to_cpu(vsi->info.pvid) &
4621 vf->port_vlan_id = le16_to_cpu(vsi->info.pvid);
[all...]
/linux-master/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_pf.c711 cmd.req.arg[3] |= vp->pvid << 8;
1272 cmd->req.arg[3] |= vp->pvid << 16;
1361 cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16;
1960 vp->pvid = vlan;
1975 vlan = vp->pvid;
/linux-master/drivers/net/dsa/microchip/
H A Dksz8795.c1424 u16 data, pvid; local
1430 ksz_pread16(dev, port, REG_PORT_CTRL_VID, &pvid);
1431 pvid = pvid & 0xFFF;
1447 if (pvid == vlan->vid)
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq_cmd.h347 __le16 pvid; /* VLANS include priority bits */ member in struct:iavf_aqc_vsi_properties_data
/linux-master/drivers/infiniband/hw/ocrdma/
H A Docrdma.h291 u16 pvid; member in struct:ocrdma_dev
/linux-master/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c401 adapter->pvid = le16_to_cpu(evt->tag) & VLAN_VID_MASK;
402 dev_info(&adapter->pdev->dev, "LPVID: %d\n", adapter->pvid);
404 adapter->pvid = 0;
3880 int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, argument
3909 if (pvid) {
3911 AMAP_SET_BITS(struct amap_set_hsw_context, pvid, ctxt, pvid);
3938 int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, argument
3981 pvid, &resp->context);
3982 if (pvid)
[all...]
H A Dbe.h654 u16 pvid; member in struct:be_adapter
740 #define be_pvid_tagging_enabled(adapter) (adapter->pvid)
/linux-master/include/soc/mscc/
H A Docelot.h1052 int ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid,
1054 int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid,

Completed in 336 milliseconds

12345