/linux-4.4.14/net/bridge/ |
H A D | br_vlan.c | 36 if (vg->pvid == vid) __vlan_add_pvid() 40 vg->pvid = vid; __vlan_add_pvid() 45 if (vg->pvid != vid) __vlan_delete_pvid() 49 vg->pvid = 0; __vlan_delete_pvid() 321 __vlan_delete_pvid(vg, vg->pvid); __vlan_flush() 405 u16 pvid = br_get_pvid(vg); __allowed_ingress() local 408 * See if pvid is set on this port. That tells us which __allowed_ingress() 411 if (!pvid) __allowed_ingress() 417 *vid = pvid; __allowed_ingress() 420 __vlan_hwaccel_put_tag(skb, proto, pvid); __allowed_ingress() 427 skb->vlan_tci |= pvid; __allowed_ingress() 718 if (vid != vg->pvid) vlan_default_pvid() 732 u16 pvid = br->default_pvid; br_vlan_disable_default_pvid() local 737 if (vlan_default_pvid(br_vlan_group(br), pvid)) br_vlan_disable_default_pvid() 738 br_vlan_delete(br, pvid); br_vlan_disable_default_pvid() 741 if (vlan_default_pvid(nbp_vlan_group(p), pvid)) br_vlan_disable_default_pvid() 742 nbp_vlan_delete(p, pvid); br_vlan_disable_default_pvid() 748 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid) __br_vlan_set_default_pvid() argument 757 if (!pvid) { __br_vlan_set_default_pvid() 773 pvent = br_vlan_find(vg, pvid); __br_vlan_set_default_pvid() 776 err = br_vlan_add(br, pvid, __br_vlan_set_default_pvid() 793 br_vlan_find(vg, pvid)) __br_vlan_set_default_pvid() 796 err = nbp_vlan_add(p, pvid, __br_vlan_set_default_pvid() 805 br->default_pvid = pvid; __br_vlan_set_default_pvid() 820 nbp_vlan_delete(p, pvid); __br_vlan_set_default_pvid() 829 br_vlan_delete(br, pvid); __br_vlan_set_default_pvid() 836 u16 pvid = val; br_vlan_set_default_pvid() local 845 if (pvid == br->default_pvid) br_vlan_set_default_pvid() 848 /* Only allow default pvid change when filtering is disabled */ br_vlan_set_default_pvid() 854 err = __br_vlan_set_default_pvid(br, pvid); br_vlan_set_default_pvid()
|
H A D | br_netlink.c | 29 u16 flags, pvid; __get_num_vlan_infos() local 35 pvid = br_get_pvid(vg); __get_num_vlan_infos() 42 if (v->vid == pvid) __get_num_vlan_infos() 248 u16 flags, pvid; br_fill_ifvlaninfo_compressed() local 255 pvid = br_get_pvid(vg); br_fill_ifvlaninfo_compressed() 260 if (v->vid == pvid) br_fill_ifvlaninfo_compressed() 303 u16 pvid; br_fill_ifvlaninfo() local 305 pvid = br_get_pvid(vg); br_fill_ifvlaninfo() 312 if (v->vid == pvid) br_fill_ifvlaninfo()
|
H A D | br_private.h | 122 * @pvid: PVID VLAN id 134 u16 pvid; member in struct:net_bridge_vlan_group 693 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid); 747 return vg->pvid; br_get_pvid()
|
/linux-4.4.14/arch/powerpc/platforms/85xx/ |
H A D | stx_gp3.c | 75 uint pvid, svid, phid1; stx_gp3_show_cpuinfo() local 77 pvid = mfspr(SPRN_PVR); stx_gp3_show_cpuinfo() 81 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); stx_gp3_show_cpuinfo()
|
H A D | tqm85xx.c | 74 uint pvid, svid, phid1; tqm85xx_show_cpuinfo() local 76 pvid = mfspr(SPRN_PVR); tqm85xx_show_cpuinfo() 80 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); tqm85xx_show_cpuinfo()
|
H A D | ksi8560.c | 148 uint pvid, svid, phid1; ksi8560_show_cpuinfo() local 150 pvid = mfspr(SPRN_PVR); ksi8560_show_cpuinfo() 164 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); ksi8560_show_cpuinfo()
|
H A D | mpc85xx_ads.c | 157 uint pvid, svid, phid1; mpc85xx_ads_show_cpuinfo() local 159 pvid = mfspr(SPRN_PVR); mpc85xx_ads_show_cpuinfo() 163 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); mpc85xx_ads_show_cpuinfo()
|
H A D | sbc8548.c | 101 uint pvid, svid, phid1; sbc8548_show_cpuinfo() local 103 pvid = mfspr(SPRN_PVR); sbc8548_show_cpuinfo() 108 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); sbc8548_show_cpuinfo()
|
H A D | mpc85xx_cds.c | 348 uint pvid, svid, phid1; mpc85xx_cds_show_cpuinfo() local 350 pvid = mfspr(SPRN_PVR); mpc85xx_cds_show_cpuinfo() 356 seq_printf(m, "PVR\t\t: 0x%x\n", pvid); mpc85xx_cds_show_cpuinfo()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 420 if (flag_pvid && mlxsw_sp_port->pvid != vid) { __mlxsw_sp_port_vlans_add() 427 mlxsw_sp_port->pvid = vid; __mlxsw_sp_port_vlans_add() 463 vid = mlxsw_sp_port->pvid; mlxsw_sp_port_fdb_op() 564 if ((mlxsw_sp_port->pvid >= vid_begin) && __mlxsw_sp_port_vlans_del() 565 (mlxsw_sp_port->pvid <= vid_end)) { __mlxsw_sp_port_vlans_del() 567 mlxsw_sp_port->pvid = 1; __mlxsw_sp_port_vlans_del() 569 mlxsw_sp_port->pvid); __mlxsw_sp_port_vlans_del() 706 if (vid == mlxsw_sp_port->pvid) mlxsw_sp_port_vlan_dump() 887 mlxsw_sp_port->pvid = 1; mlxsw_sp_port_vlan_init()
|
H A D | spectrum.h | 93 u16 pvid; member in struct:mlxsw_sp_port
|
H A D | reg.h | 584 MLXSW_ITEM32(reg, spvid, pvid, 0x04, 0, 12); 586 static inline void mlxsw_reg_spvid_pack(char *payload, u8 local_port, u16 pvid) mlxsw_reg_spvid_pack() argument 590 mlxsw_reg_spvid_pvid_set(payload, pvid); mlxsw_reg_spvid_pack()
|
H A D | spectrum.c | 1231 mlxsw_sp_port->pvid = 1; mlxsw_sp_port_create()
|
/linux-4.4.14/drivers/net/dsa/ |
H A D | mv88e6xxx.c | 1128 static int _mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *pvid) _mv88e6xxx_port_pvid_get() argument 1136 *pvid = ret & PORT_DEFAULT_VLAN_MASK; _mv88e6xxx_port_pvid_get() 1141 int mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *pvid) mv88e6xxx_port_pvid_get() argument 1149 *pvid = ret & PORT_DEFAULT_VLAN_MASK; mv88e6xxx_port_pvid_get() 1154 static int _mv88e6xxx_port_pvid_set(struct dsa_switch *ds, int port, u16 pvid) _mv88e6xxx_port_pvid_set() argument 1157 pvid & PORT_DEFAULT_VLAN_MASK); _mv88e6xxx_port_pvid_set() 1508 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; mv88e6xxx_port_vlan_add() local 1521 if (pvid) mv88e6xxx_port_vlan_add() 1572 u16 pvid, vid; mv88e6xxx_port_vlan_del() local 1577 err = _mv88e6xxx_port_pvid_get(ds, port, &pvid); mv88e6xxx_port_vlan_del() 1586 if (vid == pvid) { mv88e6xxx_port_vlan_del() 1880 const u16 pvid = 4000 + ds->index * DSA_MAX_PORTS + port; mv88e6xxx_port_bridge_join() local 1885 err = _mv88e6xxx_port_vlan_del(ds, port, pvid); mv88e6xxx_port_bridge_join() 1895 const u16 pvid = 4000 + ds->index * DSA_MAX_PORTS + port; mv88e6xxx_port_bridge_leave() local 1900 err = _mv88e6xxx_port_vlan_add(ds, port, pvid, true); mv88e6xxx_port_bridge_leave() 1902 err = _mv88e6xxx_port_pvid_set(ds, port, pvid); mv88e6xxx_port_bridge_leave()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 244 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) fm10k_iov_update_pvid() argument 261 if (vf_info->sw_vid != pvid) { fm10k_iov_update_pvid() 262 vf_info->sw_vid = pvid; fm10k_iov_update_pvid()
|
H A D | fm10k_pci.c | 1255 u16 glort, pvid; fm10k_update_pvid() local 1264 /* extract values from the pvid update */ fm10k_update_pvid() 1266 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID); fm10k_update_pvid() 1273 if (pvid >= FM10K_VLAN_TABLE_VID_MAX) fm10k_update_pvid() 1279 err = fm10k_iov_update_pvid(interface, glort, pvid); fm10k_update_pvid() 1284 if (pvid != hw->mac.default_vid) fm10k_update_pvid() 1287 hw->mac.default_vid = pvid; fm10k_update_pvid()
|
H A D | fm10k_pf.c | 1684 u16 glort, pvid; fm10k_msg_update_pvid_pf() local 1693 /* extract values from the pvid update */ fm10k_msg_update_pvid_pf() 1695 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID); fm10k_msg_update_pvid_pf() 1702 if (pvid >= FM10K_VLAN_TABLE_VID_MAX) fm10k_msg_update_pvid_pf() 1706 hw->mac.default_vid = pvid; fm10k_msg_update_pvid_pf()
|
H A D | fm10k.h | 512 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid);
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_virtchnl_pf.c | 1203 if (!vsi->info.pvid) i40e_vc_get_vf_resources_msg() 1731 if (vsi->info.pvid) { i40e_vc_add_vlan_msg() 1785 if (vsi->info.pvid) { i40e_vc_remove_vlan_msg() 2158 if (le16_to_cpu(vsi->info.pvid) == vlanprio) i40e_ndo_set_vf_port_vlan() 2166 if (le16_to_cpu(vsi->info.pvid) == 0 && is_vsi_in_vlan) { i40e_ndo_set_vf_port_vlan() 2186 vlanprio != le16_to_cpu(vsi->info.pvid)) && i40e_ndo_set_vf_port_vlan() 2187 vsi->info.pvid) i40e_ndo_set_vf_port_vlan() 2190 if (vsi->info.pvid) { i40e_ndo_set_vf_port_vlan() 2192 ret = i40e_vsi_kill_vlan(vsi, (le16_to_cpu(vsi->info.pvid) & i40e_ndo_set_vf_port_vlan() 2230 vf->port_vlan_id = le16_to_cpu(vsi->info.pvid); i40e_ndo_set_vf_port_vlan() 2358 ivi->vlan = le16_to_cpu(vsi->info.pvid) & I40E_VLAN_MASK; i40e_ndo_get_vf_config() 2359 ivi->qos = (le16_to_cpu(vsi->info.pvid) & I40E_PRIORITY_MASK) >> i40e_ndo_get_vf_config()
|
H A D | i40e_debugfs.c | 617 " info: pvid = 0x%04x, fcoe_pvid = 0x%04x, port_vlan_flags = 0x%02x\n", i40e_dbg_dump_vsi_seid() 618 vsi->info.pvid, vsi->info.fcoe_pvid, i40e_dbg_dump_vsi_seid() 1192 } else if (strncmp(cmd_buf, "add pvid", 8) == 0) { i40e_dbg_command_write() 1200 "add pvid: bad command string, cnt=%d\n", cnt); i40e_dbg_command_write() 1206 dev_info(&pf->pdev->dev, "add pvid: VSI %d not found\n", i40e_dbg_command_write() 1215 "add pvid: %d added to VSI %d\n", i40e_dbg_command_write() 1219 "add pvid: %d to VSI %d failed, ret=%d\n", i40e_dbg_command_write() 1222 } else if (strncmp(cmd_buf, "del pvid", 8) == 0) { i40e_dbg_command_write() 1227 "del pvid: bad command string, cnt=%d\n", i40e_dbg_command_write() 1235 "del pvid: VSI %d not found\n", vsi_seid); i40e_dbg_command_write() 1241 "del pvid: removed from VSI %d\n", vsi_seid); i40e_dbg_command_write() 1953 dev_info(&pf->pdev->dev, " add pvid <vsi_seid> <vid>\n"); i40e_dbg_command_write() 1954 dev_info(&pf->pdev->dev, " del pvid <vsi_seid>\n"); i40e_dbg_command_write()
|
H A D | i40e_main.c | 1280 if (f->vlan >= 0 || vsi->info.pvid) i40e_is_vsi_in_vlan() 1305 if (vsi->info.pvid) i40e_put_mac_in_vlan() 1306 f->vlan = le16_to_cpu(vsi->info.pvid); i40e_put_mac_in_vlan() 2361 if (vid > 0 && !vsi->info.pvid) { i40e_vsi_add_vlan() 2563 * i40e_vsi_add_pvid - Add pvid for the VSI 2573 vsi->info.pvid = cpu_to_le16(vid); i40e_vsi_add_pvid() 2583 "add pvid failed, err %s aq_err %s\n", i40e_vsi_add_pvid() 2594 * i40e_vsi_remove_pvid - Remove the pvid from the VSI 2603 vsi->info.pvid = 0; i40e_vsi_remove_pvid()
|
H A D | i40e_adminq_cmd.h | 754 __le16 pvid; /* VLANS include priority bits */ member in struct:i40e_aqc_vsi_properties_data
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 337 adapter->pvid = le16_to_cpu(evt->tag) & VLAN_VID_MASK; be_async_grp5_pvid_state_process() 338 dev_info(&adapter->pdev->dev, "LPVID: %d\n", adapter->pvid); be_async_grp5_pvid_state_process() 340 adapter->pvid = 0; be_async_grp5_pvid_state_process() 3225 int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, be_cmd_set_hsw_config() argument 3250 if (pvid) { be_cmd_set_hsw_config() 3252 AMAP_SET_BITS(struct amap_set_hsw_context, pvid, ctxt, pvid); be_cmd_set_hsw_config() 3279 int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, be_cmd_get_hsw_config() argument 3322 pvid, &resp->context); be_cmd_get_hsw_config() 3323 if (pvid) be_cmd_get_hsw_config() 3324 *pvid = le16_to_cpu(vid); be_cmd_get_hsw_config()
|
H A D | be.h | 582 u16 pvid; member in struct:be_adapter 635 #define be_pvid_tagging_enabled(adapter) (adapter->pvid)
|
H A D | be_cmds.h | 1792 u8 pvid[16]; member in struct:amap_set_hsw_context 1816 u8 pvid[16]; member in struct:amap_get_hsw_resp_context 2374 int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, u32 domain, 2376 int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, u32 domain,
|
H A D | be_main.c | 991 if (qnq_async_evt_rcvd(adapter) && adapter->pvid) { be_insert_vlan_in_pkt() 993 vlan_tag = adapter->pvid; be_insert_vlan_in_pkt() 1045 return skb_vlan_tag_present(skb) || adapter->pvid || adapter->qnq_vid; be_vlan_tag_tx_chk() 1076 * tagging in pvid-tagging mode be_lancer_xmit_workarounds() 1098 (adapter->pvid || adapter->qnq_vid) && be_lancer_xmit_workarounds() 2273 if (adapter->pvid == (rxcp->vlan_tag & VLAN_VID_MASK) && be_rx_compl_get() 4029 /* In a non-qnq multichannel mode, the pvid BEx_get_resources()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_ah.c | 72 vlan_tag = dev->pvid; set_av_attr()
|
H A D | ocrdma.h | 292 u16 pvid; member in struct:ocrdma_dev
|
H A D | ocrdma_hw.c | 810 dev->pvid = ((evt->tag_enabled & ocrdma_process_grp5_aync()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov.h | 131 u16 pvid; member in struct:qlcnic_vport
|
H A D | qlcnic_sriov_pf.c | 710 cmd.req.arg[3] |= vp->pvid << 8; qlcnic_sriov_set_vf_acl() 1274 cmd->req.arg[3] |= vp->pvid << 16; qlcnic_sriov_validate_cfg_macvlan() 1364 cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16; qlcnic_sriov_pf_get_acl_cmd() 1962 vp->pvid = vlan; qlcnic_sriov_set_vf_vlan() 1977 vlan = vp->pvid; qlcnic_sriov_get_vf_vlan()
|
H A D | qlcnic_sysfs.c | 615 npar->pvid = esw_cfg[i].vlan_id; qlcnic_sysfs_write_esw_config() 618 npar->pvid = 0; qlcnic_sysfs_write_esw_config()
|
H A D | qlcnic_main.c | 1529 npar->pvid = esw_cfg.vlan_id; qlcnic_set_default_offload_settings() 1548 esw_cfg.vlan_id = npar->pvid; qlcnic_reset_eswitch_config()
|
H A D | qlcnic.h | 1297 u16 pvid; member in struct:qlcnic_npar_info
|
/linux-4.4.14/include/net/ |
H A D | dsa.h | 321 int (*port_pvid_get)(struct dsa_switch *ds, int port, u16 *pvid);
|
/linux-4.4.14/net/dsa/ |
H A D | slave.c | 297 u16 pvid, vid = 0; dsa_slave_port_vlan_dump() local 303 err = ds->drv->port_pvid_get(ds, p->port, &pvid); dsa_slave_port_vlan_dump() 318 if (vid == pvid) dsa_slave_port_vlan_dump()
|
/linux-4.4.14/drivers/scsi/bfa/ |
H A D | bfad_bsg.h | 222 u16 pvid; /* Port vlan id */ member in struct:bfa_bsg_ioc_info_s
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_adminq_cmd.h | 751 __le16 pvid; /* VLANS include priority bits */ member in struct:i40e_aqc_vsi_properties_data
|