/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 68 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __ixgbe_enable_sriov() 70 if (!adapter->vfinfo) in __ixgbe_enable_sriov() 100 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov() 101 adapter->vfinfo[i].link_enable = true; in __ixgbe_enable_sriov() 108 adapter->vfinfo[i].rss_query_enabled = false; in __ixgbe_enable_sriov() 111 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov() 114 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov() 148 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 215 /* set num VFs to 0 to prevent access to vfinfo */ in ixgbe_disable_sriov() 221 struct pci_dev *vfdev = adapter->vfinfo[v in ixgbe_disable_sriov() 373 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_set_vf_multicasts() local 416 struct vf_data_storage *vfinfo; ixgbe_restore_vf_multicasts() local 703 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_vf_reset_event() local [all...] |
H A D | ixgbe_dcb_nl.c | 650 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_setapp() local 652 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_setapp() 653 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_setapp() 695 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_delapp() local 697 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_delapp() 698 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_delapp()
|
H A D | ixgbe_ipsec.c | 886 if (!adapter->vfinfo[vf].trusted || in ixgbe_ipsec_vf_add_sa() 991 if (!adapter->vfinfo[vf].trusted) { in ixgbe_ipsec_vf_del_sa()
|
H A D | ixgbe.h | 810 struct vf_data_storage *vfinfo; member
|
H A D | ixgbe_ethtool.c | 2267 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test() 3698 adapter->vfinfo[i].primary_abort_count = 0; in ixgbe_set_priv_flags()
|
/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_sriov.c | 19 eth_zero_addr(wx->vfinfo[vfn].vf_mac_addr); in wx_vf_configuration() 52 /* set num VFs to 0 to prevent access to vfinfo */ in wx_sriov_clear_data() 56 kfree(wx->vfinfo); in wx_sriov_clear_data() 57 wx->vfinfo = NULL; in wx_sriov_clear_data() 91 wx->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __wx_enable_sriov() 93 if (!wx->vfinfo) in __wx_enable_sriov() 105 wx->vfinfo[i].spoofchk_enabled = true; in __wx_enable_sriov() 106 wx->vfinfo[i].link_enable = true; in __wx_enable_sriov() 108 wx->vfinfo[i].trusted = false; in __wx_enable_sriov() 110 wx->vfinfo[ in __wx_enable_sriov() 346 struct vf_data_storage *vfinfo = &wx->vfinfo[vf]; wx_vf_reset_event() local 453 struct vf_data_storage *vfinfo = &wx->vfinfo[vf]; wx_set_vf_multicasts() local [all...] |
H A D | wx_vf.c | 76 wx->vfinfo->vf_api = wx_mbox_api_null; in wx_reset_hw_vf() 247 if (wx->vfinfo->vf_api < wx_mbox_api_13) in wx_update_xcast_mode_vf() 423 wx->vfinfo->vf_api = api; in wx_negotiate_api_version() 435 if (wx->vfinfo->vf_api < wx_mbox_api_13) in wx_get_queues_vf()
|
H A D | wx_mbx.c | 406 wx->vfinfo = kzalloc(sizeof(struct vf_data_storage), in wx_init_mbx_params_vf() 408 if (!wx->vfinfo) in wx_init_mbx_params_vf()
|
H A D | wx_hw.c | 1222 struct vf_data_storage *vfinfo; in wx_restore_vf_multicasts() local 1227 vfinfo = &wx->vfinfo[i]; in wx_restore_vf_multicasts() 1228 for (j = 0; j < vfinfo->num_vf_mc_hashes; j++) { in wx_restore_vf_multicasts() 1230 vector_reg = WX_PSR_MC_TBL_REG(vfinfo->vf_mc_hashes[j]); in wx_restore_vf_multicasts() 1231 vector_bit = WX_PSR_MC_TBL_BIT(vfinfo->vf_mc_hashes[j]); in wx_restore_vf_multicasts() 1237 if (vfinfo->num_vf_mc_hashes) in wx_restore_vf_multicasts() 1473 wx->vfinfo[vf].spoofchk_enabled = setting; in wx_set_vf_spoofchk() 1478 if (wx->vfinfo[vf].vlan_count) in wx_set_vf_spoofchk() 1521 if (!wx->vfinfo[ in wx_configure_virtualization() [all...] |
H A D | wx_vf_common.c | 54 kfree(wx->vfinfo); in wxvf_remove()
|
/linux/drivers/net/ethernet/wangxun/txgbevf/ |
H A D | txgbevf_main.c | 74 if (wx->vfinfo->vf_api >= wx_mbox_api_13) { in txgbevf_set_num_queues() 160 kfree(wx->vfinfo); in txgbevf_sw_init() 272 kfree(wx->vfinfo); in txgbevf_probe()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.c | 576 struct vf_data_storage *vfinfo; in hinic_get_vf_config() local 578 vfinfo = hwdev->func_to_io.vf_infos + HW_VF_ID_TO_OS(vf_id); in hinic_get_vf_config() 581 memcpy(ivi->mac, vfinfo->vf_mac_addr, ETH_ALEN); in hinic_get_vf_config() 582 ivi->vlan = vfinfo->pf_vlan; in hinic_get_vf_config() 583 ivi->qos = vfinfo->pf_qos; in hinic_get_vf_config() 584 ivi->spoofchk = vfinfo->spoofchk; in hinic_get_vf_config() 585 ivi->trusted = vfinfo->trust; in hinic_get_vf_config() 586 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config() 587 ivi->min_tx_rate = vfinfo->min_rate; in hinic_get_vf_config() 589 if (!vfinfo in hinic_get_vf_config() [all...] |
/linux/drivers/net/ethernet/wangxun/ngbevf/ |
H A D | ngbevf_main.c | 115 kfree(wx->vfinfo); in ngbevf_sw_init() 219 kfree(wx->vfinfo); in ngbevf_probe()
|
/linux/drivers/crypto/cavium/cpt/ |
H A D | cptpf.h | 48 struct cpt_vf_info vfinfo[CPT_MAX_VF_NUM]; /* Per VF info */ member
|
H A D | cptpf_mbox.c | 88 struct cpt_vf_info *vfx = &cpt->vfinfo[vf]; in cpt_handle_mbox_intr()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 3220 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, macaddr); in cxgb4_mgmt_fill_vf_station_mac_addr() 3242 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, mac); in cxgb4_mgmt_set_vf_mac() 3251 struct vf_info *vfinfo; in cxgb4_mgmt_get_vf_config() local 3255 vfinfo = &adap->vfinfo[vf]; in cxgb4_mgmt_get_vf_config() 3258 ivi->max_tx_rate = vfinfo->tx_rate; in cxgb4_mgmt_get_vf_config() 3260 ether_addr_copy(ivi->mac, vfinfo->vf_mac_addr); in cxgb4_mgmt_get_vf_config() 3261 ivi->vlan = vfinfo->vlan; in cxgb4_mgmt_get_vf_config() 3262 ivi->linkstate = vfinfo->link_state; in cxgb4_mgmt_get_vf_config() 3316 adap->vfinfo[v in cxgb4_mgmt_set_vf_rate() [all...] |
H A D | cxgb4.h | 1136 struct vf_info *vfinfo; member
|
/linux/net/core/ |
H A D | rtnetlink.c | 1638 struct nlattr *vfinfo; in rtnl_fill_vf() local 1651 vfinfo = nla_nest_start_noflag(skb, IFLA_VFINFO_LIST); in rtnl_fill_vf() 1652 if (!vfinfo) in rtnl_fill_vf() 1657 nla_nest_cancel(skb, vfinfo); in rtnl_fill_vf() 1662 nla_nest_end(skb, vfinfo); in rtnl_fill_vf() 3229 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink() local 3239 err = nla_parse_nested_deprecated(vfinfo, IFLA_VF_MAX, in do_setlink() 3245 err = do_setvfinfo(dev, vfinfo); in do_setlink()
|