Lines Matching refs:vf_data
1111 if (adapter->vf_data) { in igb_set_interrupt_capability()
1119 kfree(adapter->vf_data); in igb_set_interrupt_capability()
1120 adapter->vf_data = NULL; in igb_set_interrupt_capability()
2352 adapter->vf_data[i].flags &= IGB_VF_FLAG_PF_SET_MAC; in igb_reset()
3700 if (adapter->vf_data) { in igb_disable_sriov()
3713 kfree(adapter->vf_data); in igb_disable_sriov()
3714 adapter->vf_data = NULL; in igb_disable_sriov()
3752 adapter->vf_data = kcalloc(adapter->vfs_allocated_count, in igb_enable_sriov()
3756 if (!adapter->vf_data) { in igb_enable_sriov()
3820 kfree(adapter->vf_data); in igb_enable_sriov()
3821 adapter->vf_data = NULL; in igb_enable_sriov()
7211 adapter->vf_data[vf].spoofchk_enabled = true; in igb_vf_configure()
7214 adapter->vf_data[vf].trusted = false; in igb_vf_configure()
7228 if (adapter->vf_data[i].flags & IGB_VF_FLAG_CTS) in igb_ping_all_vfs()
7238 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_set_vf_promisc() local
7240 vf_data->flags &= ~(IGB_VF_FLAG_UNI_PROMISC | in igb_set_vf_promisc()
7246 vf_data->flags |= IGB_VF_FLAG_MULTI_PROMISC; in igb_set_vf_promisc()
7253 if (vf_data->num_vf_mc_hashes > 30) { in igb_set_vf_promisc()
7255 } else if (vf_data->num_vf_mc_hashes) { in igb_set_vf_promisc()
7259 for (j = 0; j < vf_data->num_vf_mc_hashes; j++) in igb_set_vf_promisc()
7260 igb_mta_set(hw, vf_data->vf_mc_hashes[j]); in igb_set_vf_promisc()
7278 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_set_vf_multicasts() local
7285 vf_data->num_vf_mc_hashes = n; in igb_set_vf_multicasts()
7293 vf_data->vf_mc_hashes[i] = hash_list[i]; in igb_set_vf_multicasts()
7304 struct vf_data_storage *vf_data; in igb_restore_vf_multicasts() local
7312 vf_data = &adapter->vf_data[i]; in igb_restore_vf_multicasts()
7314 if ((vf_data->num_vf_mc_hashes > 30) || in igb_restore_vf_multicasts()
7315 (vf_data->flags & IGB_VF_FLAG_MULTI_PROMISC)) { in igb_restore_vf_multicasts()
7317 } else if (vf_data->num_vf_mc_hashes) { in igb_restore_vf_multicasts()
7319 for (j = 0; j < vf_data->num_vf_mc_hashes; j++) in igb_restore_vf_multicasts()
7320 igb_mta_set(hw, vf_data->vf_mc_hashes[j]); in igb_restore_vf_multicasts()
7480 if (vlan != adapter->vf_data[vf].pf_vlan) in igb_enable_port_vlan()
7481 igb_set_vf_vlan(adapter, adapter->vf_data[vf].pf_vlan, in igb_enable_port_vlan()
7484 adapter->vf_data[vf].pf_vlan = vlan; in igb_enable_port_vlan()
7485 adapter->vf_data[vf].pf_qos = qos; in igb_enable_port_vlan()
7508 if (adapter->vf_data[vf].pf_vlan) in igb_disable_port_vlan()
7509 igb_set_vf_vlan(adapter, adapter->vf_data[vf].pf_vlan, in igb_disable_port_vlan()
7512 adapter->vf_data[vf].pf_vlan = 0; in igb_disable_port_vlan()
7513 adapter->vf_data[vf].pf_qos = 0; in igb_disable_port_vlan()
7540 if (adapter->vf_data[vf].pf_vlan) in igb_set_vf_vlan_msg()
7555 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_vf_reset() local
7558 vf_data->flags &= IGB_VF_FLAG_PF_SET_MAC; in igb_vf_reset()
7559 vf_data->last_nack = jiffies; in igb_vf_reset()
7563 igb_set_vf_vlan(adapter, vf_data->pf_vlan, true, vf); in igb_vf_reset()
7564 igb_set_vmvir(adapter, vf_data->pf_vlan | in igb_vf_reset()
7565 (vf_data->pf_qos << VLAN_PRIO_SHIFT), vf); in igb_vf_reset()
7566 igb_set_vmolr(adapter, vf, !vf_data->pf_vlan); in igb_vf_reset()
7567 igb_set_vf_vlan_strip(adapter, vf, !!(vf_data->pf_vlan)); in igb_vf_reset()
7570 adapter->vf_data[vf].num_vf_mc_hashes = 0; in igb_vf_reset()
7578 unsigned char *vf_mac = adapter->vf_data[vf].vf_mac_addresses; in igb_vf_reset_event()
7581 if (!(adapter->vf_data[vf].flags & IGB_VF_FLAG_PF_SET_MAC)) in igb_vf_reset_event()
7591 unsigned char *vf_mac = adapter->vf_data[vf].vf_mac_addresses; in igb_vf_reset_msg()
7607 adapter->vf_data[vf].flags |= IGB_VF_FLAG_CTS; in igb_vf_reset_msg()
7836 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_set_vf_mac_filter() local
7841 if ((vf_data->flags & IGB_VF_FLAG_PF_SET_MAC) && in igb_set_vf_mac_filter()
7842 !vf_data->trusted) { in igb_set_vf_mac_filter()
7902 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_set_vf_mac_addr() local
7912 if ((vf_data->flags & IGB_VF_FLAG_PF_SET_MAC) && in igb_set_vf_mac_addr()
7913 !vf_data->trusted) { in igb_set_vf_mac_addr()
7938 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_rcv_ack_from_vf() local
7942 if (!(vf_data->flags & IGB_VF_FLAG_CTS) && in igb_rcv_ack_from_vf()
7943 time_after(jiffies, vf_data->last_nack + (2 * HZ))) { in igb_rcv_ack_from_vf()
7945 vf_data->last_nack = jiffies; in igb_rcv_ack_from_vf()
7954 struct vf_data_storage *vf_data = &adapter->vf_data[vf]; in igb_rcv_msg_from_vf() local
7962 vf_data->flags &= ~IGB_VF_FLAG_CTS; in igb_rcv_msg_from_vf()
7963 if (!time_after(jiffies, vf_data->last_nack + (2 * HZ))) in igb_rcv_msg_from_vf()
7981 if (!(vf_data->flags & IGB_VF_FLAG_CTS)) { in igb_rcv_msg_from_vf()
7982 if (!time_after(jiffies, vf_data->last_nack + (2 * HZ))) in igb_rcv_msg_from_vf()
8003 if (vf_data->pf_vlan) in igb_rcv_msg_from_vf()
8170 if ((adapter->num_q_vectors == 1) && !adapter->vf_data) in igb_ring_irq_enable()
9730 unsigned char *vf_mac_addr = adapter->vf_data[vf].vf_mac_addresses; in igb_set_vf_mac()
9755 adapter->vf_data[vf].flags &= ~IGB_VF_FLAG_PF_SET_MAC; in igb_ndo_set_vf_mac()
9760 adapter->vf_data[vf].flags |= IGB_VF_FLAG_PF_SET_MAC; in igb_ndo_set_vf_mac()
9838 adapter->vf_data[i].tx_rate = 0; in igb_check_vf_rate_limit()
9841 adapter->vf_data[i].tx_rate, in igb_check_vf_rate_limit()
9867 adapter->vf_data[vf].tx_rate = (u16)max_tx_rate; in igb_ndo_set_vf_bw()
9896 adapter->vf_data[vf].spoofchk_enabled = setting; in igb_ndo_set_vf_spoofchk()
9906 if (adapter->vf_data[vf].trusted == setting) in igb_ndo_set_vf_trust()
9909 adapter->vf_data[vf].trusted = setting; in igb_ndo_set_vf_trust()
9923 memcpy(&ivi->mac, adapter->vf_data[vf].vf_mac_addresses, ETH_ALEN); in igb_ndo_get_vf_config()
9924 ivi->max_tx_rate = adapter->vf_data[vf].tx_rate; in igb_ndo_get_vf_config()
9926 ivi->vlan = adapter->vf_data[vf].pf_vlan; in igb_ndo_get_vf_config()
9927 ivi->qos = adapter->vf_data[vf].pf_qos; in igb_ndo_get_vf_config()
9928 ivi->spoofchk = adapter->vf_data[vf].spoofchk_enabled; in igb_ndo_get_vf_config()
9929 ivi->trusted = adapter->vf_data[vf].trusted; in igb_ndo_get_vf_config()