Lines Matching refs:vfinfo
88 adapter->vfinfo = in __ixgbe_enable_sriov()
91 if (adapter->vfinfo) { in __ixgbe_enable_sriov()
111 adapter->vfinfo[i].spoofchk_enabled = true; in __ixgbe_enable_sriov()
118 adapter->vfinfo[i].rss_query_enabled = 0; in __ixgbe_enable_sriov()
190 kfree(adapter->vfinfo); in ixgbe_disable_sriov()
191 adapter->vfinfo = NULL; in ixgbe_disable_sriov()
327 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_set_vf_multicasts() local
343 vfinfo->num_vf_mc_hashes = entries; in ixgbe_set_vf_multicasts()
350 vfinfo->vf_mc_hashes[i] = hash_list[i]; in ixgbe_set_vf_multicasts()
353 for (i = 0; i < vfinfo->num_vf_mc_hashes; i++) { in ixgbe_set_vf_multicasts()
354 vector_reg = (vfinfo->vf_mc_hashes[i] >> 5) & 0x7F; in ixgbe_set_vf_multicasts()
355 vector_bit = vfinfo->vf_mc_hashes[i] & 0x1F; in ixgbe_set_vf_multicasts()
370 struct vf_data_storage *vfinfo; in ixgbe_restore_vf_multicasts() local
378 vfinfo = &adapter->vfinfo[i]; in ixgbe_restore_vf_multicasts()
379 for (j = 0; j < vfinfo->num_vf_mc_hashes; j++) { in ixgbe_restore_vf_multicasts()
381 vector_reg = (vfinfo->vf_mc_hashes[j] >> 5) & 0x7F; in ixgbe_restore_vf_multicasts()
382 vector_bit = vfinfo->vf_mc_hashes[j] & 0x1F; in ixgbe_restore_vf_multicasts()
388 if (vfinfo->num_vf_mc_hashes) in ixgbe_restore_vf_multicasts()
435 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_set_vf_lpe()
516 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_vf_reset_event() local
520 ixgbe_set_vf_vlan(adapter, true, vfinfo->pf_vlan, vf); in ixgbe_vf_reset_event()
523 ixgbe_set_vmolr(hw, vf, !vfinfo->pf_vlan); in ixgbe_vf_reset_event()
526 if (!vfinfo->pf_vlan && !vfinfo->pf_qos && !num_tcs) { in ixgbe_vf_reset_event()
529 if (vfinfo->pf_qos || !num_tcs) in ixgbe_vf_reset_event()
530 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
531 vfinfo->pf_qos, vf); in ixgbe_vf_reset_event()
533 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
536 if (vfinfo->spoofchk_enabled) in ixgbe_vf_reset_event()
541 adapter->vfinfo[vf].num_vf_mc_hashes = 0; in ixgbe_vf_reset_event()
546 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_vf_reset_event()
549 adapter->vfinfo[vf].vf_api = ixgbe_mbox_api_10; in ixgbe_vf_reset_event()
555 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_set_vf_mac()
556 memcpy(adapter->vfinfo[vf].vf_mac_addresses, mac_addr, ETH_ALEN); in ixgbe_set_vf_mac()
557 ixgbe_add_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_set_vf_mac()
625 eth_zero_addr(adapter->vfinfo[vfn].vf_mac_addresses); in ixgbe_vf_configuration()
655 unsigned char *vf_mac = adapter->vfinfo[vf].vf_mac_addresses; in ixgbe_vf_reset_msg()
705 adapter->vfinfo[vf].clear_to_send = true; in ixgbe_vf_reset_msg()
753 if (adapter->vfinfo[vf].pf_set_mac && in ixgbe_set_vf_mac_addr()
754 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
800 if (adapter->vfinfo[vf].pf_vlan || tcs) { in ixgbe_set_vf_vlan_msg()
809 adapter->vfinfo[vf].vlan_count++; in ixgbe_set_vf_vlan_msg()
810 else if (adapter->vfinfo[vf].vlan_count) in ixgbe_set_vf_vlan_msg()
811 adapter->vfinfo[vf].vlan_count--; in ixgbe_set_vf_vlan_msg()
820 if (!err && adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_set_vf_vlan_msg()
866 if (adapter->vfinfo[vf].pf_set_mac && index > 0) { in ixgbe_set_vf_macvlan_msg()
884 if (adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_set_vf_macvlan_msg()
906 adapter->vfinfo[vf].vf_api = api; in ixgbe_negotiate_vf_api()
926 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_get_vf_queues()
946 else if (adapter->vfinfo[vf].pf_vlan || adapter->vfinfo[vf].pf_qos) in ixgbe_get_vf_queues()
965 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_reta()
969 if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12) in ixgbe_get_vf_reta()
992 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_rss_key()
996 if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12) in ixgbe_get_vf_rss_key()
1032 if (!adapter->vfinfo[vf].clear_to_send) { in ixgbe_rcv_msg_from_vf()
1091 if (!adapter->vfinfo[vf].clear_to_send) in ixgbe_rcv_ack_from_vf()
1135 if (adapter->vfinfo[i].clear_to_send) in ixgbe_ping_all_vfs()
1146 adapter->vfinfo[vf].pf_set_mac = true; in ixgbe_ndo_set_vf_mac()
1171 if (adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_enable_port_vlan()
1173 adapter->vfinfo[vf].vlan_count++; in ixgbe_enable_port_vlan()
1180 adapter->vfinfo[vf].pf_vlan = vlan; in ixgbe_enable_port_vlan()
1181 adapter->vfinfo[vf].pf_qos = qos; in ixgbe_enable_port_vlan()
1201 adapter->vfinfo[vf].pf_vlan, vf); in ixgbe_disable_port_vlan()
1205 if (adapter->vfinfo[vf].vlan_count) in ixgbe_disable_port_vlan()
1206 adapter->vfinfo[vf].vlan_count--; in ixgbe_disable_port_vlan()
1212 adapter->vfinfo[vf].pf_vlan = 0; in ixgbe_disable_port_vlan()
1213 adapter->vfinfo[vf].pf_qos = 0; in ixgbe_disable_port_vlan()
1233 if (adapter->vfinfo[vf].pf_vlan) in ixgbe_ndo_set_vf_vlan()
1266 u16 tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_set_vf_rate_limit()
1328 adapter->vfinfo[i].tx_rate = 0; in ixgbe_check_vf_rate_limit()
1362 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1381 adapter->vfinfo[vf].spoofchk_enabled = setting; in ixgbe_ndo_set_vf_spoofchk()
1388 if (adapter->vfinfo[vf].vlan_count) { in ixgbe_ndo_set_vf_spoofchk()
1414 adapter->vfinfo[vf].rss_query_enabled = setting; in ixgbe_ndo_set_vf_rss_query_en()
1426 memcpy(&ivi->mac, adapter->vfinfo[vf].vf_mac_addresses, ETH_ALEN); in ixgbe_ndo_get_vf_config()
1427 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
1429 ivi->vlan = adapter->vfinfo[vf].pf_vlan; in ixgbe_ndo_get_vf_config()
1430 ivi->qos = adapter->vfinfo[vf].pf_qos; in ixgbe_ndo_get_vf_config()
1431 ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled; in ixgbe_ndo_get_vf_config()
1432 ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled; in ixgbe_ndo_get_vf_config()