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()
121 adapter->vfinfo[i].trusted = false; in __ixgbe_enable_sriov()
124 adapter->vfinfo[i].xcast_mode = IXGBEVF_XCAST_MODE_NONE; in __ixgbe_enable_sriov()
196 kfree(adapter->vfinfo); in ixgbe_disable_sriov()
197 adapter->vfinfo = NULL; in ixgbe_disable_sriov()
333 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_set_vf_multicasts() local
349 vfinfo->num_vf_mc_hashes = entries; in ixgbe_set_vf_multicasts()
356 vfinfo->vf_mc_hashes[i] = hash_list[i]; in ixgbe_set_vf_multicasts()
359 for (i = 0; i < vfinfo->num_vf_mc_hashes; i++) { in ixgbe_set_vf_multicasts()
360 vector_reg = (vfinfo->vf_mc_hashes[i] >> 5) & 0x7F; in ixgbe_set_vf_multicasts()
361 vector_bit = vfinfo->vf_mc_hashes[i] & 0x1F; in ixgbe_set_vf_multicasts()
376 struct vf_data_storage *vfinfo; in ixgbe_restore_vf_multicasts() local
384 vfinfo = &adapter->vfinfo[i]; in ixgbe_restore_vf_multicasts()
385 for (j = 0; j < vfinfo->num_vf_mc_hashes; j++) { in ixgbe_restore_vf_multicasts()
387 vector_reg = (vfinfo->vf_mc_hashes[j] >> 5) & 0x7F; in ixgbe_restore_vf_multicasts()
388 vector_bit = vfinfo->vf_mc_hashes[j] & 0x1F; in ixgbe_restore_vf_multicasts()
394 if (vfinfo->num_vf_mc_hashes) in ixgbe_restore_vf_multicasts()
441 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_set_vf_lpe()
522 struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; in ixgbe_vf_reset_event() local
526 ixgbe_set_vf_vlan(adapter, true, vfinfo->pf_vlan, vf); in ixgbe_vf_reset_event()
529 ixgbe_set_vmolr(hw, vf, !vfinfo->pf_vlan); in ixgbe_vf_reset_event()
532 if (!vfinfo->pf_vlan && !vfinfo->pf_qos && !num_tcs) { in ixgbe_vf_reset_event()
535 if (vfinfo->pf_qos || !num_tcs) in ixgbe_vf_reset_event()
536 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
537 vfinfo->pf_qos, vf); in ixgbe_vf_reset_event()
539 ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, in ixgbe_vf_reset_event()
542 if (vfinfo->spoofchk_enabled) in ixgbe_vf_reset_event()
547 adapter->vfinfo[vf].num_vf_mc_hashes = 0; in ixgbe_vf_reset_event()
552 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_vf_reset_event()
555 adapter->vfinfo[vf].vf_api = ixgbe_mbox_api_10; in ixgbe_vf_reset_event()
561 ixgbe_del_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_set_vf_mac()
562 memcpy(adapter->vfinfo[vf].vf_mac_addresses, mac_addr, ETH_ALEN); in ixgbe_set_vf_mac()
563 ixgbe_add_mac_filter(adapter, adapter->vfinfo[vf].vf_mac_addresses, vf); in ixgbe_set_vf_mac()
631 eth_zero_addr(adapter->vfinfo[vfn].vf_mac_addresses); in ixgbe_vf_configuration()
661 unsigned char *vf_mac = adapter->vfinfo[vf].vf_mac_addresses; in ixgbe_vf_reset_msg()
711 adapter->vfinfo[vf].clear_to_send = true; in ixgbe_vf_reset_msg()
759 if (adapter->vfinfo[vf].pf_set_mac && in ixgbe_set_vf_mac_addr()
760 !ether_addr_equal(adapter->vfinfo[vf].vf_mac_addresses, new_mac)) { in ixgbe_set_vf_mac_addr()
806 if (adapter->vfinfo[vf].pf_vlan || tcs) { in ixgbe_set_vf_vlan_msg()
815 adapter->vfinfo[vf].vlan_count++; in ixgbe_set_vf_vlan_msg()
816 else if (adapter->vfinfo[vf].vlan_count) in ixgbe_set_vf_vlan_msg()
817 adapter->vfinfo[vf].vlan_count--; in ixgbe_set_vf_vlan_msg()
826 if (!err && adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_set_vf_vlan_msg()
872 if (adapter->vfinfo[vf].pf_set_mac && index > 0) { in ixgbe_set_vf_macvlan_msg()
890 if (adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_set_vf_macvlan_msg()
912 adapter->vfinfo[vf].vf_api = api; in ixgbe_negotiate_vf_api()
932 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_get_vf_queues()
952 else if (adapter->vfinfo[vf].pf_vlan || adapter->vfinfo[vf].pf_qos) in ixgbe_get_vf_queues()
971 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_reta()
975 if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12) in ixgbe_get_vf_reta()
998 if (!adapter->vfinfo[vf].rss_query_enabled) in ixgbe_get_vf_rss_key()
1002 if (adapter->vfinfo[vf].vf_api != ixgbe_mbox_api_12) in ixgbe_get_vf_rss_key()
1018 switch (adapter->vfinfo[vf].vf_api) { in ixgbe_update_vf_xcast_mode()
1026 !adapter->vfinfo[vf].trusted) { in ixgbe_update_vf_xcast_mode()
1030 if (adapter->vfinfo[vf].xcast_mode == xcast_mode) in ixgbe_update_vf_xcast_mode()
1055 adapter->vfinfo[vf].xcast_mode = xcast_mode; in ixgbe_update_vf_xcast_mode()
1091 if (!adapter->vfinfo[vf].clear_to_send) { in ixgbe_rcv_msg_from_vf()
1153 if (!adapter->vfinfo[vf].clear_to_send) in ixgbe_rcv_ack_from_vf()
1195 if (adapter->vfinfo[vf].clear_to_send) in ixgbe_ping_vf()
1208 if (adapter->vfinfo[i].clear_to_send) in ixgbe_ping_all_vfs()
1219 adapter->vfinfo[vf].pf_set_mac = true; in ixgbe_ndo_set_vf_mac()
1244 if (adapter->vfinfo[vf].spoofchk_enabled) in ixgbe_enable_port_vlan()
1246 adapter->vfinfo[vf].vlan_count++; in ixgbe_enable_port_vlan()
1253 adapter->vfinfo[vf].pf_vlan = vlan; in ixgbe_enable_port_vlan()
1254 adapter->vfinfo[vf].pf_qos = qos; in ixgbe_enable_port_vlan()
1274 adapter->vfinfo[vf].pf_vlan, vf); in ixgbe_disable_port_vlan()
1278 if (adapter->vfinfo[vf].vlan_count) in ixgbe_disable_port_vlan()
1279 adapter->vfinfo[vf].vlan_count--; in ixgbe_disable_port_vlan()
1285 adapter->vfinfo[vf].pf_vlan = 0; in ixgbe_disable_port_vlan()
1286 adapter->vfinfo[vf].pf_qos = 0; in ixgbe_disable_port_vlan()
1306 if (adapter->vfinfo[vf].pf_vlan) in ixgbe_ndo_set_vf_vlan()
1339 u16 tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_set_vf_rate_limit()
1401 adapter->vfinfo[i].tx_rate = 0; in ixgbe_check_vf_rate_limit()
1435 adapter->vfinfo[vf].tx_rate = max_tx_rate; in ixgbe_ndo_set_vf_bw()
1454 adapter->vfinfo[vf].spoofchk_enabled = setting; in ixgbe_ndo_set_vf_spoofchk()
1461 if (adapter->vfinfo[vf].vlan_count) { in ixgbe_ndo_set_vf_spoofchk()
1487 adapter->vfinfo[vf].rss_query_enabled = setting; in ixgbe_ndo_set_vf_rss_query_en()
1500 if (adapter->vfinfo[vf].trusted == setting) in ixgbe_ndo_set_vf_trust()
1503 adapter->vfinfo[vf].trusted = setting; in ixgbe_ndo_set_vf_trust()
1506 adapter->vfinfo[vf].clear_to_send = false; in ixgbe_ndo_set_vf_trust()
1521 memcpy(&ivi->mac, adapter->vfinfo[vf].vf_mac_addresses, ETH_ALEN); in ixgbe_ndo_get_vf_config()
1522 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config()
1524 ivi->vlan = adapter->vfinfo[vf].pf_vlan; in ixgbe_ndo_get_vf_config()
1525 ivi->qos = adapter->vfinfo[vf].pf_qos; in ixgbe_ndo_get_vf_config()
1526 ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled; in ixgbe_ndo_get_vf_config()
1527 ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled; in ixgbe_ndo_get_vf_config()
1528 ivi->trusted = adapter->vfinfo[vf].trusted; in ixgbe_ndo_get_vf_config()