| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sriov.c | 67 adapter->vfinfo = kzalloc_objs(struct vf_data_storage, num_vfs); in __ixgbe_enable_sriov() 68 if (!adapter->vfinfo) in __ixgbe_enable_sriov() 98 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov() 99 adapter->vfinfo[i].link_enable = true; in __ixgbe_enable_sriov() 106 adapter->vfinfo[i].rss_query_enabled = false; in __ixgbe_enable_sriov() 109 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov() 112 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov() 146 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 219 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_disable_sriov() 223 adapter->vfinfo[vf].vfdev = NULL; in ixgbe_disable_sriov() [all …]
|
| H A D | ixgbe_dcb_nl.c | 648 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_setapp() local 650 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_setapp() 651 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_setapp() 693 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_delapp() local 695 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_delapp() 696 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_delapp()
|
| H A D | ixgbe_main.c | 1249 hw->bus.func, vf, adapter->vfinfo[vf].vf_mac_addresses); in ixgbe_vf_handle_tx_hang() 1328 if (adapter->vfinfo && ixgbe_check_mdd_event(adapter)) { in ixgbe_handle_mdd_event() 4686 adapter->vfinfo[i].spoofchk_enabled); in ixgbe_configure_virtualization() 4690 adapter->vfinfo[i].rss_query_enabled); in ixgbe_configure_virtualization() 6099 adapter->vfinfo[i].last_vfstats.gprc = in ixgbe_clear_vf_stats_counters() 6101 adapter->vfinfo[i].saved_rst_vfstats.gprc += in ixgbe_clear_vf_stats_counters() 6102 adapter->vfinfo[i].vfstats.gprc; in ixgbe_clear_vf_stats_counters() 6103 adapter->vfinfo[i].vfstats.gprc = 0; in ixgbe_clear_vf_stats_counters() 6104 adapter->vfinfo[i].last_vfstats.gptc = in ixgbe_clear_vf_stats_counters() 6106 adapter->vfinfo[i].saved_rst_vfstats.gptc += in ixgbe_clear_vf_stats_counters() [all …]
|
| 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 | 811 struct vf_data_storage *vfinfo; member
|
| H A D | ixgbe_ethtool.c | 2270 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test() 3704 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() 55 kfree(wx->vfinfo); in wx_sriov_clear_data() 56 wx->vfinfo = NULL; in wx_sriov_clear_data() 90 wx->vfinfo = kzalloc_objs(struct vf_data_storage, num_vfs); in __wx_enable_sriov() 91 if (!wx->vfinfo) in __wx_enable_sriov() 103 wx->vfinfo[i].spoofchk_enabled = true; in __wx_enable_sriov() 104 wx->vfinfo[i].link_enable = true; in __wx_enable_sriov() 106 wx->vfinfo[i].trusted = false; in __wx_enable_sriov() 108 wx->vfinfo[i].xcast_mode = WXVF_XCAST_MODE_NONE; in __wx_enable_sriov() 227 wx_del_mac_filter(wx, wx->vfinfo[vf].vf_mac_addr, vf); in wx_set_vf_mac() [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_obj(struct vf_data_storage); in wx_init_mbx_params_vf() 407 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[i].spoofchk_enabled) in wx_configure_virtualization()
|
| H A D | wx_vf_common.c | 55 kfree(wx->vfinfo); in wxvf_remove()
|
| /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->link_forced) in hinic_get_vf_config() [all …]
|
| /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[vf].tx_rate = 0; in cxgb4_mgmt_set_vf_rate() 3375 adap->vfinfo[vf].tx_rate = max_tx_rate; in cxgb4_mgmt_set_vf_rate() [all …]
|
| /linux/net/core/ |
| H A D | rtnetlink.c | 1669 struct nlattr *vfinfo; in rtnl_fill_vf() local 1682 vfinfo = nla_nest_start_noflag(skb, IFLA_VFINFO_LIST); in rtnl_fill_vf() 1683 if (!vfinfo) in rtnl_fill_vf() 1688 nla_nest_cancel(skb, vfinfo); in rtnl_fill_vf() 1693 nla_nest_end(skb, vfinfo); in rtnl_fill_vf() 3267 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink() local 3277 err = nla_parse_nested_deprecated(vfinfo, IFLA_VF_MAX, in do_setlink() 3283 err = do_setvfinfo(dev, vfinfo); in do_setlink()
|