Lines Matching refs:vfinfo
66 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __ixgbe_enable_sriov()
68 if (!adapter->vfinfo) in __ixgbe_enable_sriov()
98 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov()
105 adapter->vfinfo[i].rss_query_enabled = 0; in __ixgbe_enable_sriov()
108 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov()
111 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov()
145 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs()
214 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_disable_sriov()
218 adapter->vfinfo[vf].vfdev = NULL; in ixgbe_disable_sriov()
223 kfree(adapter->vfinfo); in ixgbe_disable_sriov()
224 adapter->vfinfo = NULL; in ixgbe_disable_sriov()
364 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_set_vf_multicasts() local
380 vfinfo->num_vf_mc_hashes = entries; in ixgbe_set_vf_multicasts()
387 vfinfo->vf_mc_hashes[i] = hash_list[i]; in ixgbe_set_vf_multicasts()
390 for (i = 0; i < vfinfo->num_vf_mc_hashes; i++) { in ixgbe_set_vf_multicasts()
391 vector_reg = (vfinfo->vf_mc_hashes[i] >> 5) & 0x7F; in ixgbe_set_vf_multicasts()
392 vector_bit = vfinfo->vf_mc_hashes[i] & 0x1F; in ixgbe_set_vf_multicasts()
407 struct vf_data_storage *vfinfo; in ixgbe_restore_vf_multicasts() local
415 vfinfo = &adapter->vfinfo[i]; in ixgbe_restore_vf_multicasts()
416 for (j = 0; j < vfinfo->num_vf_mc_hashes; j++) { in ixgbe_restore_vf_multicasts()
418 vector_reg = (vfinfo->vf_mc_hashes[j] >> 5) & 0x7F; in ixgbe_restore_vf_multicasts()
419 vector_bit = vfinfo->vf_mc_hashes[j] & 0x1F; in ixgbe_restore_vf_multicasts()
425 if (vfinfo->num_vf_mc_hashes) in ixgbe_restore_vf_multicasts()
495 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_set_vf_lpe()
698 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_vf_reset_event() local
708 ixgbe_set_vf_vlan(adapter, true, vfinfo->pf_vlan, vf); in ixgbe_vf_reset_event()
711 ixgbe_set_vmolr(hw, vf, !vfinfo->pf_vlan); in ixgbe_vf_reset_event()
714 if (!vfinfo->pf_vlan && !vfinfo->pf_qos && !num_tcs) { in ixgbe_vf_reset_event()
717 if (vfinfo->pf_qos || !num_tcs) in ixgbe_vf_reset_event()
718 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
719 vfinfo->pf_qos, vf); in ixgbe_vf_reset_event()
721 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
724 if (vfinfo->spoofchk_enabled) { in ixgbe_vf_reset_event()
731 adapter->vfinfo[vf].num_vf_mc_hashes = 0; in ixgbe_vf_reset_event()
739 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_vf_reset_event()
743 adapter->vfinfo[vf].vf_api = ixgbe_mbox_api_10; in ixgbe_vf_reset_event()
780 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_set_vf_mac()
783 memcpy(adapter->vfinfo[vf].vf_mac_addresses, mac_addr, in ixgbe_set_vf_mac()
786 memset(adapter->vfinfo[vf].vf_mac_addresses, 0, ETH_ALEN); in ixgbe_set_vf_mac()
799 eth_zero_addr(adapter->vfinfo[vfn].vf_mac_addresses); in ixgbe_vf_configuration()
829 unsigned char *vf_mac = adapter->vfinfo[vf].vf_mac_addresses; in ixgbe_vf_reset_msg()
857 if (adapter->vfinfo[vf].pf_vlan) in ixgbe_vf_reset_msg()
885 adapter->vfinfo[vf].clear_to_send = true; in ixgbe_vf_reset_msg()
903 if (!is_zero_ether_addr(vf_mac) && adapter->vfinfo[vf].pf_set_mac) { in ixgbe_vf_reset_msg()
930 if (adapter->vfinfo[vf].pf_set_mac && !adapter->vfinfo[vf].trusted && in ixgbe_set_vf_mac_addr()
931 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
949 if (adapter->vfinfo[vf].pf_vlan || tcs) { in ixgbe_set_vf_vlan_msg()
972 if (adapter->vfinfo[vf].pf_set_mac && !adapter->vfinfo[vf].trusted && in ixgbe_set_vf_macvlan_msg()
991 if (adapter->vfinfo[vf].spoofchk_enabled) { in ixgbe_set_vf_macvlan_msg()
1019 adapter->vfinfo[vf].vf_api = api; in ixgbe_negotiate_vf_api()
1039 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_get_vf_queues()
1061 else if (adapter->vfinfo[vf].pf_vlan || adapter->vfinfo[vf].pf_qos) in ixgbe_get_vf_queues()
1080 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_reta()
1084 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_get_vf_reta()
1113 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_rss_key()
1117 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_get_vf_rss_key()
1139 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_update_vf_xcast_mode()
1153 !adapter->vfinfo[vf].trusted) { in ixgbe_update_vf_xcast_mode()
1157 if (adapter->vfinfo[vf].xcast_mode == xcast_mode) in ixgbe_update_vf_xcast_mode()
1199 adapter->vfinfo[vf].xcast_mode = xcast_mode; in ixgbe_update_vf_xcast_mode()
1235 if (!adapter->vfinfo[vf].clear_to_send) { in ixgbe_rcv_msg_from_vf()
1303 if (!adapter->vfinfo[vf].clear_to_send) in ixgbe_rcv_ack_from_vf()
1345 if (adapter->vfinfo[vf].clear_to_send) in ixgbe_ping_vf()
1358 if (adapter->vfinfo[i].clear_to_send) in ixgbe_ping_all_vfs()
1379 adapter->vfinfo[vf].pf_set_mac = true; in ixgbe_ndo_set_vf_mac()
1390 adapter->vfinfo[vf].vf_mac_addresses; in ixgbe_ndo_set_vf_mac()
1400 adapter->vfinfo[vf].pf_set_mac = false; in ixgbe_ndo_set_vf_mac()
1433 adapter->vfinfo[vf].pf_vlan = vlan; in ixgbe_enable_port_vlan()
1434 adapter->vfinfo[vf].pf_qos = qos; in ixgbe_enable_port_vlan()
1454 adapter->vfinfo[vf].pf_vlan, vf); in ixgbe_disable_port_vlan()
1464 adapter->vfinfo[vf].pf_vlan = 0; in ixgbe_disable_port_vlan()
1465 adapter->vfinfo[vf].pf_qos = 0; in ixgbe_disable_port_vlan()
1488 if (adapter->vfinfo[vf].pf_vlan) in ixgbe_ndo_set_vf_vlan()
1521 u16 tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_set_vf_rate_limit()
1583 adapter->vfinfo[i].tx_rate = 0; in ixgbe_check_vf_rate_limit()
1617 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1633 adapter->vfinfo[vf].spoofchk_enabled = setting; in ixgbe_ndo_set_vf_spoofchk()
1676 adapter->vfinfo[vf].rss_query_enabled = setting; in ixgbe_ndo_set_vf_rss_query_en()
1689 if (adapter->vfinfo[vf].trusted == setting) in ixgbe_ndo_set_vf_trust()
1692 adapter->vfinfo[vf].trusted = setting; in ixgbe_ndo_set_vf_trust()
1695 adapter->vfinfo[vf].clear_to_send = false; in ixgbe_ndo_set_vf_trust()
1710 memcpy(&ivi->mac, adapter->vfinfo[vf].vf_mac_addresses, ETH_ALEN); in ixgbe_ndo_get_vf_config()
1711 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
1713 ivi->vlan = adapter->vfinfo[vf].pf_vlan; in ixgbe_ndo_get_vf_config()
1714 ivi->qos = adapter->vfinfo[vf].pf_qos; in ixgbe_ndo_get_vf_config()
1715 ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled; in ixgbe_ndo_get_vf_config()
1716 ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled; in ixgbe_ndo_get_vf_config()
1717 ivi->trusted = adapter->vfinfo[vf].trusted; in ixgbe_ndo_get_vf_config()