/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 67 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __ixgbe_enable_sriov() 69 if (!adapter->vfinfo) in __ixgbe_enable_sriov() 99 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov() 100 adapter->vfinfo[i].link_enable = true; in __ixgbe_enable_sriov() 107 adapter->vfinfo[i].rss_query_enabled = false; in __ixgbe_enable_sriov() 110 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov() 113 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov() 147 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 213 /* set num VFs to 0 to prevent access to vfinfo */ in ixgbe_disable_sriov() 219 struct pci_dev *vfdev = adapter->vfinfo[v in ixgbe_disable_sriov() 369 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_set_vf_multicasts() local 412 struct vf_data_storage *vfinfo; ixgbe_restore_vf_multicasts() local 701 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_vf_reset_event() local [all...] |
H A D | ixgbe_dcb_nl.c | 651 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_setapp() local 653 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_setapp() 654 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_setapp() 696 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_delapp() local 698 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_delapp() 699 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_delapp()
|
H A D | ixgbe_ipsec.c | 896 if (!adapter->vfinfo[vf].trusted || in ixgbe_ipsec_vf_add_sa() 1002 if (!adapter->vfinfo[vf].trusted) { in ixgbe_ipsec_vf_del_sa()
|
H A D | ixgbe.h | 744 struct vf_data_storage *vfinfo; member
|
H A D | ixgbe_main.c | 4243 adapter->vfinfo[i].spoofchk_enabled); in ixgbe_configure_virtualization() 4247 adapter->vfinfo[i].rss_query_enabled); in ixgbe_configure_virtualization() 6147 adapter->vfinfo[i].clear_to_send = false; in ixgbe_down() 7623 adapter->vfinfo[vf].primary_abort_count++; in ixgbe_bad_vf_abort() 7624 if (adapter->vfinfo[vf].primary_abort_count == in ixgbe_bad_vf_abort() 7628 adapter->vfinfo[vf].primary_abort_count = 0; in ixgbe_bad_vf_abort() 7633 adapter->vfinfo[vf].vf_mac_addresses); in ixgbe_bad_vf_abort() 7662 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_check_for_bad_vf() 9330 upper = pci_get_drvdata(adapter->vfinfo[vf].vfdev); in handle_redirect_action()
|
H A D | ixgbe_ethtool.c | 2183 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test() 3546 adapter->vfinfo[i].primary_abort_count = 0; in ixgbe_set_priv_flags()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 67 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __ixgbe_enable_sriov() 69 if (!adapter->vfinfo) in __ixgbe_enable_sriov() 99 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov() 100 adapter->vfinfo[i].link_enable = true; in __ixgbe_enable_sriov() 107 adapter->vfinfo[i].rss_query_enabled = false; in __ixgbe_enable_sriov() 110 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov() 113 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov() 147 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 213 /* set num VFs to 0 to prevent access to vfinfo */ in ixgbe_disable_sriov() 219 struct pci_dev *vfdev = adapter->vfinfo[v in ixgbe_disable_sriov() 369 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_set_vf_multicasts() local 412 struct vf_data_storage *vfinfo; ixgbe_restore_vf_multicasts() local 701 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; ixgbe_vf_reset_event() local [all...] |
H A D | ixgbe_dcb_nl.c | 649 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_setapp() local 651 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_setapp() 652 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_setapp() 694 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_dcbnl_ieee_delapp() local 696 if (!vfinfo->pf_qos) in ixgbe_dcbnl_ieee_delapp() 697 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_dcbnl_ieee_delapp()
|
H A D | ixgbe_main.c | 4235 adapter->vfinfo[i].spoofchk_enabled); in ixgbe_configure_virtualization() 4239 adapter->vfinfo[i].rss_query_enabled); in ixgbe_configure_virtualization() 5555 adapter->vfinfo[i].last_vfstats.gprc = in ixgbe_clear_vf_stats_counters() 5557 adapter->vfinfo[i].saved_rst_vfstats.gprc += in ixgbe_clear_vf_stats_counters() 5558 adapter->vfinfo[i].vfstats.gprc; in ixgbe_clear_vf_stats_counters() 5559 adapter->vfinfo[i].vfstats.gprc = 0; in ixgbe_clear_vf_stats_counters() 5560 adapter->vfinfo[i].last_vfstats.gptc = in ixgbe_clear_vf_stats_counters() 5562 adapter->vfinfo[i].saved_rst_vfstats.gptc += in ixgbe_clear_vf_stats_counters() 5563 adapter->vfinfo[i].vfstats.gptc; in ixgbe_clear_vf_stats_counters() 5564 adapter->vfinfo[ in ixgbe_clear_vf_stats_counters() [all...] |
H A D | ixgbe_ipsec.c | 902 if (!adapter->vfinfo[vf].trusted || in ixgbe_ipsec_vf_add_sa() 1007 if (!adapter->vfinfo[vf].trusted) { in ixgbe_ipsec_vf_del_sa()
|
H A D | ixgbe.h | 787 struct vf_data_storage *vfinfo; member
|
H A D | ixgbe_ethtool.c | 2201 if (adapter->vfinfo[i].clear_to_send) { in ixgbe_diag_test() 3568 adapter->vfinfo[i].primary_abort_count = 0; in ixgbe_set_priv_flags()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.c | 556 struct vf_data_storage *vfinfo; in hinic_get_vf_config() local 558 vfinfo = hwdev->func_to_io.vf_infos + HW_VF_ID_TO_OS(vf_id); in hinic_get_vf_config() 561 memcpy(ivi->mac, vfinfo->vf_mac_addr, ETH_ALEN); in hinic_get_vf_config() 562 ivi->vlan = vfinfo->pf_vlan; in hinic_get_vf_config() 563 ivi->qos = vfinfo->pf_qos; in hinic_get_vf_config() 564 ivi->spoofchk = vfinfo->spoofchk; in hinic_get_vf_config() 565 ivi->trusted = vfinfo->trust; in hinic_get_vf_config() 566 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config() 567 ivi->min_tx_rate = vfinfo->min_rate; in hinic_get_vf_config() 569 if (!vfinfo in hinic_get_vf_config() [all...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 3232 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, macaddr); in cxgb4_mgmt_fill_vf_station_mac_addr() 3254 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, mac); in cxgb4_mgmt_set_vf_mac() 3263 struct vf_info *vfinfo; in cxgb4_mgmt_get_vf_config() local 3267 vfinfo = &adap->vfinfo[vf]; in cxgb4_mgmt_get_vf_config() 3270 ivi->max_tx_rate = vfinfo->tx_rate; in cxgb4_mgmt_get_vf_config() 3272 ether_addr_copy(ivi->mac, vfinfo->vf_mac_addr); in cxgb4_mgmt_get_vf_config() 3273 ivi->vlan = vfinfo->vlan; in cxgb4_mgmt_get_vf_config() 3274 ivi->linkstate = vfinfo->link_state; in cxgb4_mgmt_get_vf_config() 3328 adap->vfinfo[v in cxgb4_mgmt_set_vf_rate() [all...] |
H A D | cxgb4.h | 1140 struct vf_info *vfinfo; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_main.c | 3229 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, macaddr); in cxgb4_mgmt_fill_vf_station_mac_addr() 3251 ether_addr_copy(adap->vfinfo[vf].vf_mac_addr, mac); in cxgb4_mgmt_set_vf_mac() 3260 struct vf_info *vfinfo; in cxgb4_mgmt_get_vf_config() local 3264 vfinfo = &adap->vfinfo[vf]; in cxgb4_mgmt_get_vf_config() 3267 ivi->max_tx_rate = vfinfo->tx_rate; in cxgb4_mgmt_get_vf_config() 3269 ether_addr_copy(ivi->mac, vfinfo->vf_mac_addr); in cxgb4_mgmt_get_vf_config() 3270 ivi->vlan = vfinfo->vlan; in cxgb4_mgmt_get_vf_config() 3271 ivi->linkstate = vfinfo->link_state; in cxgb4_mgmt_get_vf_config() 3325 adap->vfinfo[v in cxgb4_mgmt_set_vf_rate() [all...] |
H A D | cxgb4.h | 1136 struct vf_info *vfinfo; member
|
/kernel/linux/linux-5.10/net/core/ |
H A D | rtnetlink.c | 1227 struct nlattr *vfinfo, in rtnl_fill_vfinfo() 1369 nla_nest_cancel(skb, vfinfo); in rtnl_fill_vfinfo() 1377 struct nlattr *vfinfo; in rtnl_fill_vf() local 1390 vfinfo = nla_nest_start_noflag(skb, IFLA_VFINFO_LIST); in rtnl_fill_vf() 1391 if (!vfinfo) in rtnl_fill_vf() 1395 if (rtnl_fill_vfinfo(skb, dev, i, vfinfo, ext_filter_mask)) in rtnl_fill_vf() 1399 nla_nest_end(skb, vfinfo); in rtnl_fill_vf() 2800 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink() local 2810 err = nla_parse_nested_deprecated(vfinfo, IFLA_VF_MAX, in do_setlink() 2816 err = do_setvfinfo(dev, vfinfo); in do_setlink() 1224 rtnl_fill_vfinfo(struct sk_buff *skb, struct net_device *dev, int vfs_num, struct nlattr *vfinfo, u32 ext_filter_mask) rtnl_fill_vfinfo() argument [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | rtnetlink.c | 1423 struct nlattr *vfinfo; in rtnl_fill_vf() local 1436 vfinfo = nla_nest_start_noflag(skb, IFLA_VFINFO_LIST); in rtnl_fill_vf() 1437 if (!vfinfo) in rtnl_fill_vf() 1442 nla_nest_cancel(skb, vfinfo); in rtnl_fill_vf() 1447 nla_nest_end(skb, vfinfo); in rtnl_fill_vf() 2961 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink() local 2971 err = nla_parse_nested_deprecated(vfinfo, IFLA_VF_MAX, in do_setlink() 2977 err = do_setvfinfo(dev, vfinfo); in do_setlink()
|