Lines Matching full:pf
10 * @pf: pointer to the PF structure
16 * send a message to all VFs on a given PF
18 static void i40e_vc_vf_broadcast(struct i40e_pf *pf, in i40e_vc_vf_broadcast() argument
23 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast()
24 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast()
27 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast()
78 * @pfe: pointer to PF event structure
111 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() local
112 struct i40e_hw *hw = &pf->hw; in i40e_vc_notify_vf_link_state()
113 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state()
127 * @pf: pointer to the PF structure
129 * send a link status message to all VFs on a given PF
131 void i40e_vc_notify_link_state(struct i40e_pf *pf) in i40e_vc_notify_link_state() argument
135 for (i = 0; i < pf->num_alloc_vfs; i++) in i40e_vc_notify_link_state()
136 i40e_vc_notify_vf_link_state(&pf->vf[i]); in i40e_vc_notify_link_state()
141 * @pf: pointer to the PF structure
143 * indicate a pending reset to all VFs on a given PF
145 void i40e_vc_notify_reset(struct i40e_pf *pf) in i40e_vc_notify_reset() argument
151 i40e_vc_vf_broadcast(pf, VIRTCHNL_OP_EVENT, 0, in i40e_vc_notify_reset()
167 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
175 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
179 i40e_aq_send_msg_to_vf(&vf->pf->hw, abs_vf_id, VIRTCHNL_OP_EVENT, in i40e_vc_notify_vf_reset()
193 struct i40e_pf *pf = vf->pf; in i40e_vc_reset_vf() local
205 /* If PF is in VFs releasing state reset VF is impossible, in i40e_vc_reset_vf()
208 if (test_bit(__I40E_VFS_RELEASING, pf->state)) in i40e_vc_reset_vf()
216 dev_warn(&vf->pf->pdev->dev, in i40e_vc_reset_vf()
220 dev_dbg(&vf->pf->pdev->dev, in i40e_vc_reset_vf()
234 struct i40e_pf *pf = vf->pf; in i40e_vc_isvalid_vsi_id() local
235 struct i40e_vsi *vsi = i40e_find_vsi_from_id(pf, vsi_id); in i40e_vc_isvalid_vsi_id()
251 struct i40e_pf *pf = vf->pf; in i40e_vc_isvalid_queue_id() local
252 struct i40e_vsi *vsi = i40e_find_vsi_from_id(pf, vsi_id); in i40e_vc_isvalid_queue_id()
266 struct i40e_pf *pf = vf->pf; in i40e_vc_isvalid_vector_id() local
268 return vector_id < pf->hw.func_caps.num_msix_vectors_vf; in i40e_vc_isvalid_vector_id()
279 * return PF relative queue id
284 struct i40e_pf *pf = vf->pf; in i40e_vc_get_pf_queue_id() local
285 struct i40e_vsi *vsi = i40e_find_vsi_from_id(pf, vsi_id); in i40e_vc_get_pf_queue_id()
346 struct i40e_pf *pf = vf->pf; in i40e_config_irq_link_list() local
347 struct i40e_hw *hw = &pf->hw; in i40e_config_irq_link_list()
360 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list()
450 struct i40e_pf *pf = vf->pf; in i40e_release_iwarp_qvlist() local
458 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_release_iwarp_qvlist()
462 struct i40e_hw *hw = &pf->hw; in i40e_release_iwarp_qvlist()
503 struct i40e_pf *pf = vf->pf; in i40e_config_iwarp_qvlist() local
504 struct i40e_hw *hw = &pf->hw; in i40e_config_iwarp_qvlist()
511 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_iwarp_qvlist()
514 dev_warn(&pf->pdev->dev, in i40e_config_iwarp_qvlist()
532 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_config_iwarp_qvlist()
606 struct i40e_pf *pf = vf->pf; in i40e_config_vsi_tx_queue() local
607 struct i40e_hw *hw = &pf->hw; in i40e_config_vsi_tx_queue()
619 vsi = i40e_find_vsi_from_id(pf, vsi_id); in i40e_config_vsi_tx_queue()
639 dev_err(&pf->pdev->dev, in i40e_config_vsi_tx_queue()
649 dev_err(&pf->pdev->dev, in i40e_config_vsi_tx_queue()
684 struct i40e_pf *pf = vf->pf; in i40e_config_vsi_rx_queue() local
685 struct i40e_vsi *vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_config_vsi_rx_queue()
686 struct i40e_hw *hw = &pf->hw; in i40e_config_vsi_rx_queue()
743 dev_err(&pf->pdev->dev, in i40e_config_vsi_rx_queue()
753 dev_err(&pf->pdev->dev, in i40e_config_vsi_rx_queue()
774 struct i40e_pf *pf = vf->pf; in i40e_alloc_vsi_res() local
779 vsi = i40e_vsi_setup(pf, I40E_VSI_SRIOV, pf->vsi[pf->lan_vsi]->seid, in i40e_alloc_vsi_res()
783 dev_err(&pf->pdev->dev, in i40e_alloc_vsi_res()
785 vf->vf_id, pf->hw.aq.asq_last_status); in i40e_alloc_vsi_res()
791 u64 hena = i40e_pf_get_default_rss_hena(pf); in i40e_alloc_vsi_res()
810 dev_info(&pf->pdev->dev, in i40e_alloc_vsi_res()
817 dev_info(&pf->pdev->dev, in i40e_alloc_vsi_res()
820 wr32(&pf->hw, I40E_VFQF_HENA1(0, vf->vf_id), (u32)hena); in i40e_alloc_vsi_res()
821 wr32(&pf->hw, I40E_VFQF_HENA1(1, vf->vf_id), (u32)(hena >> 32)); in i40e_alloc_vsi_res()
825 dev_err(&pf->pdev->dev, "Unable to program ucast filters\n"); in i40e_alloc_vsi_res()
843 ret = i40e_aq_config_vsi_bw_limit(&pf->hw, vsi->seid, in i40e_alloc_vsi_res()
846 dev_err(&pf->pdev->dev, "Unable to set tx rate, VF %d, error code %d.\n", in i40e_alloc_vsi_res()
858 * PF maps LQPs to a VF by programming VSILAN_QTABLE & VPLAN_QTABLE. This
859 * function takes care of first part VSILAN_QTABLE, mapping pf queues to VSI.
863 struct i40e_pf *pf = vf->pf; in i40e_map_pf_queues_to_vsi() local
864 struct i40e_hw *hw = &pf->hw; in i40e_map_pf_queues_to_vsi()
877 qps = pf->vsi[vf->lan_vsi_idx]->alloc_queue_pairs; in i40e_map_pf_queues_to_vsi()
905 * PF maps LQPs to a VF by programming VSILAN_QTABLE & VPLAN_QTABLE. This
910 struct i40e_pf *pf = vf->pf; in i40e_map_pf_to_vf_queues() local
911 struct i40e_hw *hw = &pf->hw; in i40e_map_pf_to_vf_queues()
925 qps = pf->vsi[vf->lan_vsi_idx]->alloc_queue_pairs; in i40e_map_pf_to_vf_queues()
948 struct i40e_pf *pf = vf->pf; in i40e_enable_vf_mappings() local
949 struct i40e_hw *hw = &pf->hw; in i40e_enable_vf_mappings()
977 struct i40e_pf *pf = vf->pf; in i40e_disable_vf_mappings() local
978 struct i40e_hw *hw = &pf->hw; in i40e_disable_vf_mappings()
997 struct i40e_pf *pf = vf->pf; in i40e_free_vf_res() local
998 struct i40e_hw *hw = &pf->hw; in i40e_free_vf_res()
1011 pf->queues_left += vf->num_queue_pairs - in i40e_free_vf_res()
1017 i40e_vsi_release(pf->vsi[vf->lan_vsi_idx]); in i40e_free_vf_res()
1030 i40e_vsi_release(pf->vsi[vf->ch[j].vsi_idx]); in i40e_free_vf_res()
1035 msix_vf = pf->hw.func_caps.num_msix_vectors_vf; in i40e_free_vf_res()
1078 struct i40e_pf *pf = vf->pf; in i40e_alloc_vf_res() local
1083 vf->num_req_queues <= pf->queues_left + I40E_DEFAULT_QUEUES_PER_VF) in i40e_alloc_vf_res()
1084 pf->num_vf_qps = vf->num_req_queues; in i40e_alloc_vf_res()
1086 pf->num_vf_qps = I40E_DEFAULT_QUEUES_PER_VF; in i40e_alloc_vf_res()
1092 total_queue_pairs += pf->vsi[vf->lan_vsi_idx]->alloc_queue_pairs; in i40e_alloc_vf_res()
1096 if (pf->queues_left >= in i40e_alloc_vf_res()
1107 dev_info(&pf->pdev->dev, "VF %d: Not enough queues to allocate, disabling ADq\n", in i40e_alloc_vf_res()
1119 pf->queues_left -= in i40e_alloc_vf_res()
1153 struct i40e_pf *pf = vf->pf; in i40e_quiesce_vf_pci() local
1154 struct i40e_hw *hw = &pf->hw; in i40e_quiesce_vf_pci()
1254 struct i40e_pf *pf = vf->pf; in i40e_set_vsi_promisc() local
1255 struct i40e_hw *hw = &pf->hw; in i40e_set_vsi_promisc()
1264 int aq_err = pf->hw.aq.asq_last_status; in i40e_set_vsi_promisc()
1266 dev_err(&pf->pdev->dev, in i40e_set_vsi_promisc()
1269 i40e_stat_str(&pf->hw, aq_ret), in i40e_set_vsi_promisc()
1270 i40e_aq_str(&pf->hw, aq_err)); in i40e_set_vsi_promisc()
1280 int aq_err = pf->hw.aq.asq_last_status; in i40e_set_vsi_promisc()
1282 dev_err(&pf->pdev->dev, in i40e_set_vsi_promisc()
1285 i40e_stat_str(&pf->hw, aq_ret), in i40e_set_vsi_promisc()
1286 i40e_aq_str(&pf->hw, aq_err)); in i40e_set_vsi_promisc()
1297 int aq_err = pf->hw.aq.asq_last_status; in i40e_set_vsi_promisc()
1299 dev_err(&pf->pdev->dev, in i40e_set_vsi_promisc()
1302 i40e_stat_str(&pf->hw, aq_ret), in i40e_set_vsi_promisc()
1303 i40e_aq_str(&pf->hw, aq_err)); in i40e_set_vsi_promisc()
1313 int aq_err = pf->hw.aq.asq_last_status; in i40e_set_vsi_promisc()
1315 dev_err(&pf->pdev->dev, in i40e_set_vsi_promisc()
1318 i40e_stat_str(&pf->hw, aq_ret), in i40e_set_vsi_promisc()
1319 i40e_aq_str(&pf->hw, aq_err)); in i40e_set_vsi_promisc()
1348 struct i40e_pf *pf = vf->pf; in i40e_config_vf_promiscuous_mode() local
1353 vsi = i40e_find_vsi_from_id(pf, vsi_id); in i40e_config_vf_promiscuous_mode()
1416 struct i40e_pf *pf = vf->pf; in i40e_trigger_vf_reset() local
1417 struct i40e_hw *hw = &pf->hw; in i40e_trigger_vf_reset()
1443 dev_info(&pf->pdev->dev, in i40e_trigger_vf_reset()
1462 dev_err(&pf->pdev->dev, "VF %d PCI transactions stuck\n", in i40e_trigger_vf_reset()
1476 struct i40e_pf *pf = vf->pf; in i40e_cleanup_reset_vf() local
1477 struct i40e_hw *hw = &pf->hw; in i40e_cleanup_reset_vf()
1509 i40e_notify_client_of_vf_reset(pf, abs_vf_id); in i40e_cleanup_reset_vf()
1530 struct i40e_pf *pf = vf->pf; in i40e_reset_vf() local
1531 struct i40e_hw *hw = &pf->hw; in i40e_reset_vf()
1536 if (test_bit(__I40E_VF_RESETS_DISABLED, pf->state)) in i40e_reset_vf()
1540 if (test_bit(__I40E_VF_DISABLE, pf->state)) in i40e_reset_vf()
1570 dev_err(&pf->pdev->dev, "VF reset check timeout on VF %d\n", in i40e_reset_vf()
1576 i40e_vsi_stop_rings(pf->vsi[vf->lan_vsi_idx]); in i40e_reset_vf()
1589 * @pf: pointer to the PF structure
1594 * VF after the wait. This is useful during PF routines which need to reset
1599 bool i40e_reset_all_vfs(struct i40e_pf *pf, bool flr) in i40e_reset_all_vfs() argument
1601 struct i40e_hw *hw = &pf->hw; in i40e_reset_all_vfs()
1607 if (!pf->num_alloc_vfs) in i40e_reset_all_vfs()
1611 if (test_and_set_bit(__I40E_VF_DISABLE, pf->state)) in i40e_reset_all_vfs()
1615 for (v = 0; v < pf->num_alloc_vfs; v++) { in i40e_reset_all_vfs()
1616 vf = &pf->vf[v]; in i40e_reset_all_vfs()
1619 i40e_trigger_vf_reset(&pf->vf[v], flr); in i40e_reset_all_vfs()
1628 for (i = 0, v = 0; i < 10 && v < pf->num_alloc_vfs; i++) { in i40e_reset_all_vfs()
1634 while (v < pf->num_alloc_vfs) { in i40e_reset_all_vfs()
1635 vf = &pf->vf[v]; in i40e_reset_all_vfs()
1655 if (v < pf->num_alloc_vfs) in i40e_reset_all_vfs()
1656 dev_err(&pf->pdev->dev, "VF reset check timeout on VF %d\n", in i40e_reset_all_vfs()
1657 pf->vf[v].vf_id); in i40e_reset_all_vfs()
1663 for (v = 0; v < pf->num_alloc_vfs; v++) { in i40e_reset_all_vfs()
1665 if (pf->vf[v].lan_vsi_idx == 0) in i40e_reset_all_vfs()
1672 i40e_vsi_stop_rings_no_wait(pf->vsi[pf->vf[v].lan_vsi_idx]); in i40e_reset_all_vfs()
1678 for (v = 0; v < pf->num_alloc_vfs; v++) { in i40e_reset_all_vfs()
1680 if (pf->vf[v].lan_vsi_idx == 0) in i40e_reset_all_vfs()
1687 i40e_vsi_wait_queues_disabled(pf->vsi[pf->vf[v].lan_vsi_idx]); in i40e_reset_all_vfs()
1696 for (v = 0; v < pf->num_alloc_vfs; v++) { in i40e_reset_all_vfs()
1701 i40e_cleanup_reset_vf(&pf->vf[v]); in i40e_reset_all_vfs()
1706 clear_bit(__I40E_VF_DISABLE, pf->state); in i40e_reset_all_vfs()
1713 * @pf: pointer to the PF structure
1717 void i40e_free_vfs(struct i40e_pf *pf) in i40e_free_vfs() argument
1719 struct i40e_hw *hw = &pf->hw; in i40e_free_vfs()
1723 if (!pf->vf) in i40e_free_vfs()
1726 set_bit(__I40E_VFS_RELEASING, pf->state); in i40e_free_vfs()
1727 while (test_and_set_bit(__I40E_VF_DISABLE, pf->state)) in i40e_free_vfs()
1730 i40e_notify_client_of_vf_enable(pf, 0); in i40e_free_vfs()
1736 if (!pci_vfs_assigned(pf->pdev)) in i40e_free_vfs()
1737 pci_disable_sriov(pf->pdev); in i40e_free_vfs()
1739 dev_warn(&pf->pdev->dev, "VFs are assigned - not disabling SR-IOV\n"); in i40e_free_vfs()
1742 for (i = 0; i < pf->num_alloc_vfs; i++) { in i40e_free_vfs()
1743 if (test_bit(I40E_VF_STATE_INIT, &pf->vf[i].vf_states)) in i40e_free_vfs()
1746 i40e_vsi_stop_rings_no_wait(pf->vsi[pf->vf[i].lan_vsi_idx]); in i40e_free_vfs()
1749 for (i = 0; i < pf->num_alloc_vfs; i++) { in i40e_free_vfs()
1750 if (test_bit(I40E_VF_STATE_INIT, &pf->vf[i].vf_states)) in i40e_free_vfs()
1753 i40e_vsi_wait_queues_disabled(pf->vsi[pf->vf[i].lan_vsi_idx]); in i40e_free_vfs()
1757 tmp = pf->num_alloc_vfs; in i40e_free_vfs()
1758 pf->num_alloc_vfs = 0; in i40e_free_vfs()
1760 if (test_bit(I40E_VF_STATE_INIT, &pf->vf[i].vf_states)) in i40e_free_vfs()
1761 i40e_free_vf_res(&pf->vf[i]); in i40e_free_vfs()
1763 i40e_disable_vf_mappings(&pf->vf[i]); in i40e_free_vfs()
1766 kfree(pf->vf); in i40e_free_vfs()
1767 pf->vf = NULL; in i40e_free_vfs()
1773 if (!pci_vfs_assigned(pf->pdev)) { in i40e_free_vfs()
1783 clear_bit(__I40E_VF_DISABLE, pf->state); in i40e_free_vfs()
1784 clear_bit(__I40E_VFS_RELEASING, pf->state); in i40e_free_vfs()
1790 * @pf: pointer to the PF structure
1795 int i40e_alloc_vfs(struct i40e_pf *pf, u16 num_alloc_vfs) in i40e_alloc_vfs() argument
1801 i40e_irq_dynamic_disable_icr0(pf); in i40e_alloc_vfs()
1804 if (pci_num_vf(pf->pdev) != num_alloc_vfs) { in i40e_alloc_vfs()
1805 ret = pci_enable_sriov(pf->pdev, num_alloc_vfs); in i40e_alloc_vfs()
1807 pf->flags &= ~I40E_FLAG_VEB_MODE_ENABLED; in i40e_alloc_vfs()
1808 pf->num_alloc_vfs = 0; in i40e_alloc_vfs()
1818 pf->vf = vfs; in i40e_alloc_vfs()
1822 vfs[i].pf = pf; in i40e_alloc_vfs()
1833 pf->num_alloc_vfs = num_alloc_vfs; in i40e_alloc_vfs()
1836 i40e_reset_all_vfs(pf, false); in i40e_alloc_vfs()
1838 i40e_notify_client_of_vf_enable(pf, num_alloc_vfs); in i40e_alloc_vfs()
1842 i40e_free_vfs(pf); in i40e_alloc_vfs()
1845 i40e_irq_dynamic_enable_icr0(pf); in i40e_alloc_vfs()
1860 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_sriov_enable() local
1864 if (test_bit(__I40E_TESTING, pf->state)) { in i40e_pci_sriov_enable()
1872 i40e_free_vfs(pf); in i40e_pci_sriov_enable()
1876 if (num_vfs > pf->num_req_vfs) { in i40e_pci_sriov_enable()
1878 num_vfs, pf->num_req_vfs); in i40e_pci_sriov_enable()
1884 err = i40e_alloc_vfs(pf, num_vfs); in i40e_pci_sriov_enable()
1909 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_sriov_configure() local
1912 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_pci_sriov_configure()
1918 if (!(pf->flags & I40E_FLAG_VEB_MODE_ENABLED)) { in i40e_pci_sriov_configure()
1919 pf->flags |= I40E_FLAG_VEB_MODE_ENABLED; in i40e_pci_sriov_configure()
1920 i40e_do_reset_safe(pf, I40E_PF_RESET_AND_REBUILD_FLAG); in i40e_pci_sriov_configure()
1926 if (!pci_vfs_assigned(pf->pdev)) { in i40e_pci_sriov_configure()
1927 i40e_free_vfs(pf); in i40e_pci_sriov_configure()
1928 pf->flags &= ~I40E_FLAG_VEB_MODE_ENABLED; in i40e_pci_sriov_configure()
1929 i40e_do_reset_safe(pf, I40E_PF_RESET_AND_REBUILD_FLAG); in i40e_pci_sriov_configure()
1936 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_pci_sriov_configure()
1955 struct i40e_pf *pf; in i40e_vc_send_msg_to_vf() local
1961 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_send_msg_to_vf()
1964 pf = vf->pf; in i40e_vc_send_msg_to_vf()
1965 hw = &pf->hw; in i40e_vc_send_msg_to_vf()
1971 dev_info(&pf->pdev->dev, in i40e_vc_send_msg_to_vf()
1973 vf->vf_id, pf->hw.aq.asq_last_status); in i40e_vc_send_msg_to_vf()
2026 * called from the VF to request the API version used by the PF
2049 struct i40e_pf *pf = vf->pf; in i40e_del_qch() local
2057 i40e_vsi_release(pf->vsi[vf->ch[i].vsi_idx]); in i40e_del_qch()
2070 * it's in a port VLAN so the PF needs to account for this in max frame size
2075 u16 max_frame_size = vf->pf->hw.phy.link_info.max_frame_size; in i40e_vc_get_max_frame_size()
2093 struct i40e_pf *pf = vf->pf; in i40e_vc_get_vf_resources_msg() local
2121 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_get_vf_resources_msg()
2125 if (i40e_vf_client_capable(pf, vf->vf_id) && in i40e_vc_get_vf_resources_msg()
2136 if ((pf->hw_features & I40E_HW_RSS_AQ_CAPABLE) && in i40e_vc_get_vf_resources_msg()
2143 if (pf->hw_features & I40E_HW_MULTIPLE_TCP_UDP_RSS_PCTYPE) { in i40e_vc_get_vf_resources_msg()
2152 if ((pf->hw_features & I40E_HW_OUTER_UDP_CSUM_CAPABLE) && in i40e_vc_get_vf_resources_msg()
2157 if (pf->flags & I40E_FLAG_MFP_ENABLED) { in i40e_vc_get_vf_resources_msg()
2158 dev_err(&pf->pdev->dev, in i40e_vc_get_vf_resources_msg()
2167 if (pf->hw_features & I40E_HW_WB_ON_ITR_CAPABLE) { in i40e_vc_get_vf_resources_msg()
2181 vfres->max_vectors = pf->hw.func_caps.num_msix_vectors_vf; in i40e_vc_get_vf_resources_msg()
2223 struct i40e_pf *pf = vf->pf; in i40e_vc_config_promiscuous_mode_msg() local
2233 dev_err(&pf->pdev->dev, in i40e_vc_config_promiscuous_mode_msg()
2268 dev_info(&pf->pdev->dev, in i40e_vc_config_promiscuous_mode_msg()
2273 dev_info(&pf->pdev->dev, in i40e_vc_config_promiscuous_mode_msg()
2280 dev_info(&pf->pdev->dev, in i40e_vc_config_promiscuous_mode_msg()
2285 dev_info(&pf->pdev->dev, in i40e_vc_config_promiscuous_mode_msg()
2310 struct i40e_pf *pf = vf->pf; in i40e_vc_config_queues_msg() local
2380 * it cares is about its own queues. PF configures these queues in i40e_vc_config_queues_msg()
2400 pf->vsi[vf->lan_vsi_idx]->num_queue_pairs = in i40e_vc_config_queues_msg()
2404 vsi = pf->vsi[vf->ch[i].vsi_idx]; in i40e_vc_config_queues_msg()
2471 vf->pf->hw.func_caps.num_msix_vectors_vf) { in i40e_vc_config_irq_map_msg()
2513 struct i40e_pf *pf = vsi->back; in i40e_ctrl_vf_tx_rings() local
2518 ret = i40e_control_wait_tx_q(vsi->seid, pf, in i40e_ctrl_vf_tx_rings()
2536 struct i40e_pf *pf = vsi->back; in i40e_ctrl_vf_rx_rings() local
2541 ret = i40e_control_wait_rx_q(pf, vsi->base_queue + q_id, in i40e_ctrl_vf_rx_rings()
2576 struct i40e_pf *pf = vf->pf; in i40e_vc_enable_queues_msg() local
2596 if (i40e_ctrl_vf_rx_rings(pf->vsi[vf->lan_vsi_idx], vqs->rx_queues, in i40e_vc_enable_queues_msg()
2601 if (i40e_ctrl_vf_tx_rings(pf->vsi[vf->lan_vsi_idx], vqs->tx_queues, in i40e_vc_enable_queues_msg()
2611 if (i40e_vsi_start_rings(pf->vsi[vf->ch[i].vsi_idx])) in i40e_vc_enable_queues_msg()
2634 struct i40e_pf *pf = vf->pf; in i40e_vc_disable_queues_msg() local
2653 if (i40e_ctrl_vf_tx_rings(pf->vsi[vf->lan_vsi_idx], vqs->tx_queues, in i40e_vc_disable_queues_msg()
2658 if (i40e_ctrl_vf_rx_rings(pf->vsi[vf->lan_vsi_idx], vqs->rx_queues, in i40e_vc_disable_queues_msg()
2680 struct i40e_pf *pf = vf->pf; in i40e_check_enough_queue() local
2683 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_check_enough_queue()
2690 pile = pf->qp_pile; in i40e_check_enough_queue()
2728 * different number. If the request is successful, PF will reset the VF and
2729 * return 0. If unsuccessful, PF will send message informing VF of number of
2738 struct i40e_pf *pf = vf->pf; in i40e_vc_request_queues_msg() local
2744 dev_err(&pf->pdev->dev, in i40e_vc_request_queues_msg()
2749 } else if (req_pairs - cur_pairs > pf->queues_left) { in i40e_vc_request_queues_msg()
2750 dev_warn(&pf->pdev->dev, in i40e_vc_request_queues_msg()
2754 pf->queues_left); in i40e_vc_request_queues_msg()
2755 vfres->num_queue_pairs = pf->queues_left + cur_pairs; in i40e_vc_request_queues_msg()
2757 dev_warn(&pf->pdev->dev, in i40e_vc_request_queues_msg()
2784 struct i40e_pf *pf = vf->pf; in i40e_vc_get_stats_msg() local
2801 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_get_stats_msg()
2850 struct i40e_pf *pf = vf->pf; in i40e_check_vf_permission() local
2851 struct i40e_vsi *vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_check_vf_permission()
2852 struct i40e_hw *hw = &pf->hw; in i40e_check_vf_permission()
2862 dev_err(&pf->pdev->dev, "invalid VF MAC addr %pM\n", in i40e_check_vf_permission()
2877 dev_err(&pf->pdev->dev, in i40e_check_vf_permission()
2895 dev_err(&pf->pdev->dev, in i40e_check_vf_permission()
2906 I40E_VC_MAX_MACVLAN_PER_TRUSTED_VF(pf->num_alloc_vfs, in i40e_check_vf_permission()
2908 dev_err(&pf->pdev->dev, in i40e_check_vf_permission()
2927 struct i40e_pf *pf = vf->pf; in i40e_vc_add_mac_addr_msg() local
2938 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_add_mac_addr_msg()
2960 dev_err(&pf->pdev->dev, in i40e_vc_add_mac_addr_msg()
2978 dev_err(&pf->pdev->dev, "Unable to program VF %d MAC filters, error %d\n", in i40e_vc_add_mac_addr_msg()
2999 struct i40e_pf *pf = vf->pf; in i40e_vc_del_mac_addr_msg() local
3013 dev_err(&pf->pdev->dev, "Invalid MAC addr %pM for VF %d\n", in i40e_vc_del_mac_addr_msg()
3021 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_del_mac_addr_msg()
3037 dev_err(&pf->pdev->dev, "Unable to program VF %d MAC filters, error %d\n", in i40e_vc_del_mac_addr_msg()
3072 struct i40e_pf *pf = vf->pf; in i40e_vc_add_vlan_msg() local
3079 dev_err(&pf->pdev->dev, in i40e_vc_add_vlan_msg()
3092 dev_err(&pf->pdev->dev, in i40e_vc_add_vlan_msg()
3097 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_add_vlan_msg()
3111 i40e_aq_set_vsi_uc_promisc_on_vlan(&pf->hw, vsi->seid, in i40e_vc_add_vlan_msg()
3116 i40e_aq_set_vsi_mc_promisc_on_vlan(&pf->hw, vsi->seid, in i40e_vc_add_vlan_msg()
3122 dev_err(&pf->pdev->dev, in i40e_vc_add_vlan_msg()
3143 struct i40e_pf *pf = vf->pf; in i40e_vc_remove_vlan_msg() local
3161 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_remove_vlan_msg()
3173 i40e_aq_set_vsi_uc_promisc_on_vlan(&pf->hw, vsi->seid, in i40e_vc_remove_vlan_msg()
3178 i40e_aq_set_vsi_mc_promisc_on_vlan(&pf->hw, vsi->seid, in i40e_vc_remove_vlan_msg()
3199 struct i40e_pf *pf = vf->pf; in i40e_vc_iwarp_msg() local
3200 int abs_vf_id = vf->vf_id + pf->hw.func_caps.vf_base_id; in i40e_vc_iwarp_msg()
3209 i40e_notify_client_of_vf_msg(pf->vsi[pf->lan_vsi], abs_vf_id, in i40e_vc_iwarp_msg()
3264 struct i40e_pf *pf = vf->pf; in i40e_vc_config_rss_key() local
3275 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_config_rss_key()
3294 struct i40e_pf *pf = vf->pf; in i40e_vc_config_rss_lut() local
3312 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_vc_config_rss_lut()
3330 struct i40e_pf *pf = vf->pf; in i40e_vc_get_rss_hena() local
3346 vrh->hena = i40e_pf_get_default_rss_hena(pf); in i40e_vc_get_rss_hena()
3366 struct i40e_pf *pf = vf->pf; in i40e_vc_set_rss_hena() local
3367 struct i40e_hw *hw = &pf->hw; in i40e_vc_set_rss_hena()
3400 vsi = vf->pf->vsi[vf->lan_vsi_idx]; in i40e_vc_enable_vlan_stripping()
3426 vsi = vf->pf->vsi[vf->lan_vsi_idx]; in i40e_vc_disable_vlan_stripping()
3447 struct i40e_pf *pf = vf->pf; in i40e_validate_cloud_filter() local
3455 dev_info(&pf->pdev->dev, in i40e_validate_cloud_filter()
3464 dev_info(&pf->pdev->dev, "VF %d: Invalid TC number %u\n", in i40e_validate_cloud_filter()
3479 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_validate_cloud_filter()
3483 dev_info(&pf->pdev->dev, in i40e_validate_cloud_filter()
3498 dev_info(&pf->pdev->dev, in i40e_validate_cloud_filter()
3507 dev_err(&pf->pdev->dev, in i40e_validate_cloud_filter()
3517 dev_info(&pf->pdev->dev, "VF %d: Invalid Dest MAC addr %pM\n", in i40e_validate_cloud_filter()
3526 dev_info(&pf->pdev->dev, "VF %d: Invalid Source MAC addr %pM\n", in i40e_validate_cloud_filter()
3534 dev_info(&pf->pdev->dev, "VF %d: Invalid Dest port\n", in i40e_validate_cloud_filter()
3542 dev_info(&pf->pdev->dev, "VF %d: Invalid Source port\n", in i40e_validate_cloud_filter()
3550 dev_info(&pf->pdev->dev, "VF %d: Invalid Flow type\n", in i40e_validate_cloud_filter()
3557 dev_info(&pf->pdev->dev, "VF %d: invalid VLAN ID\n", in i40e_validate_cloud_filter()
3575 struct i40e_pf *pf = vf->pf; in i40e_find_vsi_from_seid() local
3580 vsi = i40e_find_vsi_from_id(pf, vf->ch[i].vsi_id); in i40e_find_vsi_from_seid()
3596 struct i40e_pf *pf = vf->pf; in i40e_del_all_cloud_filters() local
3606 dev_err(&pf->pdev->dev, "VF %d: no VSI found for matching %u seid, can't delete cloud filter\n", in i40e_del_all_cloud_filters()
3617 dev_err(&pf->pdev->dev, in i40e_del_all_cloud_filters()
3619 vf->vf_id, i40e_stat_str(&pf->hw, ret), in i40e_del_all_cloud_filters()
3620 i40e_aq_str(&pf->hw, in i40e_del_all_cloud_filters()
3621 pf->hw.aq.asq_last_status)); in i40e_del_all_cloud_filters()
3642 struct i40e_pf *pf = vf->pf; in i40e_vc_del_cloud_filter() local
3654 dev_info(&pf->pdev->dev, in i40e_vc_del_cloud_filter()
3662 dev_info(&pf->pdev->dev, in i40e_vc_del_cloud_filter()
3705 dev_info(&pf->pdev->dev, "VF %d: Flow type not configured\n", in i40e_vc_del_cloud_filter()
3710 vsi = pf->vsi[vf->ch[vcf->action_meta].vsi_idx]; in i40e_vc_del_cloud_filter()
3720 dev_err(&pf->pdev->dev, in i40e_vc_del_cloud_filter()
3722 vf->vf_id, i40e_stat_str(&pf->hw, ret), in i40e_vc_del_cloud_filter()
3723 i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status)); in i40e_vc_del_cloud_filter()
3774 struct i40e_pf *pf = vf->pf; in i40e_vc_add_cloud_filter() local
3785 dev_info(&pf->pdev->dev, in i40e_vc_add_cloud_filter()
3793 dev_info(&pf->pdev->dev, in i40e_vc_add_cloud_filter()
3839 dev_info(&pf->pdev->dev, "VF %d: Flow type not configured\n", in i40e_vc_add_cloud_filter()
3844 vsi = pf->vsi[vf->ch[vcf->action_meta].vsi_idx]; in i40e_vc_add_cloud_filter()
3854 dev_err(&pf->pdev->dev, in i40e_vc_add_cloud_filter()
3856 vf->vf_id, i40e_stat_str(&pf->hw, ret), in i40e_vc_add_cloud_filter()
3857 i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status)); in i40e_vc_add_cloud_filter()
3882 struct i40e_pf *pf = vf->pf; in i40e_vc_add_qch_msg() local
3883 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_add_qch_msg()
3895 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3902 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3911 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3922 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3933 if (pf->queues_left < adq_request_qps) { in i40e_vc_add_qch_msg()
3934 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3950 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3961 dev_err(&pf->pdev->dev, in i40e_vc_add_qch_msg()
3996 struct i40e_pf *pf = vf->pf; in i40e_vc_del_qch_msg() local
4009 dev_info(&pf->pdev->dev, in i40e_vc_del_qch_msg()
4013 dev_info(&pf->pdev->dev, "VF %d trying to delete queue channels but ADq isn't enabled\n", in i40e_vc_del_qch_msg()
4030 * @pf: pointer to the PF structure
4040 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, in i40e_vc_process_vf_msg() argument
4043 struct i40e_hw *hw = &pf->hw; in i40e_vc_process_vf_msg()
4048 pf->vf_aq_requests++; in i40e_vc_process_vf_msg()
4049 if (local_vf_id < 0 || local_vf_id >= pf->num_alloc_vfs) in i40e_vc_process_vf_msg()
4051 vf = &(pf->vf[local_vf_id]); in i40e_vc_process_vf_msg()
4062 dev_err(&pf->pdev->dev, "Invalid message from VF %d, opcode %d, len %d\n", in i40e_vc_process_vf_msg()
4159 dev_err(&pf->pdev->dev, "Unsupported opcode %d from VF %d\n", in i40e_vc_process_vf_msg()
4171 * @pf: pointer to the PF structure
4176 int i40e_vc_process_vflr_event(struct i40e_pf *pf) in i40e_vc_process_vflr_event() argument
4178 struct i40e_hw *hw = &pf->hw; in i40e_vc_process_vflr_event()
4183 if (!test_bit(__I40E_VFLR_EVENT_PENDING, pf->state)) in i40e_vc_process_vflr_event()
4196 clear_bit(__I40E_VFLR_EVENT_PENDING, pf->state); in i40e_vc_process_vflr_event()
4197 for (vf_id = 0; vf_id < pf->num_alloc_vfs; vf_id++) { in i40e_vc_process_vflr_event()
4201 vf = &pf->vf[vf_id]; in i40e_vc_process_vflr_event()
4213 * @pf: the physical function
4220 static int i40e_validate_vf(struct i40e_pf *pf, int vf_id) in i40e_validate_vf() argument
4226 if (vf_id >= pf->num_alloc_vfs) { in i40e_validate_vf()
4227 dev_err(&pf->pdev->dev, in i40e_validate_vf()
4232 vf = &pf->vf[vf_id]; in i40e_validate_vf()
4233 vsi = i40e_find_vsi_from_id(pf, vf->lan_vsi_id); in i40e_validate_vf()
4252 struct i40e_pf *pf = vsi->back; in i40e_ndo_set_vf_mac() local
4260 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_mac()
4261 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_mac()
4266 ret = i40e_validate_vf(pf, vf_id); in i40e_ndo_set_vf_mac()
4270 vf = &pf->vf[vf_id]; in i40e_ndo_set_vf_mac()
4284 dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", in i40e_ndo_set_vf_mac()
4289 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_ndo_set_vf_mac()
4292 dev_err(&pf->pdev->dev, in i40e_ndo_set_vf_mac()
4317 dev_err(&pf->pdev->dev, "Unable to program ucast filters\n"); in i40e_ndo_set_vf_mac()
4325 dev_info(&pf->pdev->dev, "Removing MAC on VF %d\n", vf_id); in i40e_ndo_set_vf_mac()
4328 dev_info(&pf->pdev->dev, "Setting MAC %pM on VF %d\n", in i40e_ndo_set_vf_mac()
4336 dev_info(&pf->pdev->dev, "Bring down and up the VF interface to make this change effective.\n"); in i40e_ndo_set_vf_mac()
4339 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_mac()
4359 struct i40e_pf *pf = np->vsi->back; in i40e_ndo_set_vf_port_vlan() local
4364 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_port_vlan()
4365 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_port_vlan()
4370 ret = i40e_validate_vf(pf, vf_id); in i40e_ndo_set_vf_port_vlan()
4375 dev_err(&pf->pdev->dev, "Invalid VF Parameters\n"); in i40e_ndo_set_vf_port_vlan()
4381 dev_err(&pf->pdev->dev, "VF VLAN protocol is not supported\n"); in i40e_ndo_set_vf_port_vlan()
4386 vf = &pf->vf[vf_id]; in i40e_ndo_set_vf_port_vlan()
4387 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_ndo_set_vf_port_vlan()
4389 dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", in i40e_ndo_set_vf_port_vlan()
4402 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_ndo_set_vf_port_vlan()
4439 dev_err(&pf->pdev->dev, "Unable to config VF promiscuous mode\n"); in i40e_ndo_set_vf_port_vlan()
4450 dev_info(&pf->pdev->dev, "Setting VLAN %d, QOS 0x%x on VF %d\n", in i40e_ndo_set_vf_port_vlan()
4479 dev_err(&pf->pdev->dev, "Unable to update VF vsi context\n"); in i40e_ndo_set_vf_port_vlan()
4490 dev_err(&pf->pdev->dev, "Unable to config vf promiscuous mode\n"); in i40e_ndo_set_vf_port_vlan()
4497 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_port_vlan()
4514 struct i40e_pf *pf = np->vsi->back; in i40e_ndo_set_vf_bw() local
4519 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_bw()
4520 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_bw()
4525 ret = i40e_validate_vf(pf, vf_id); in i40e_ndo_set_vf_bw()
4530 dev_err(&pf->pdev->dev, "Invalid min tx rate (%d) (greater than 0) specified for VF %d.\n", in i40e_ndo_set_vf_bw()
4536 vf = &pf->vf[vf_id]; in i40e_ndo_set_vf_bw()
4537 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_ndo_set_vf_bw()
4539 dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", in i40e_ndo_set_vf_bw()
4551 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_bw()
4568 struct i40e_pf *pf = vsi->back; in i40e_ndo_get_vf_config() local
4572 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_get_vf_config()
4573 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_get_vf_config()
4578 ret = i40e_validate_vf(pf, vf_id); in i40e_ndo_get_vf_config()
4582 vf = &pf->vf[vf_id]; in i40e_ndo_get_vf_config()
4584 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_ndo_get_vf_config()
4610 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_get_vf_config()
4625 struct i40e_pf *pf = np->vsi->back; in i40e_ndo_set_vf_link_state() local
4626 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_ndo_set_vf_link_state()
4628 struct i40e_hw *hw = &pf->hw; in i40e_ndo_set_vf_link_state()
4633 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_link_state()
4634 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_link_state()
4639 if (vf_id >= pf->num_alloc_vfs) { in i40e_ndo_set_vf_link_state()
4640 dev_err(&pf->pdev->dev, "Invalid VF Identifier %d\n", vf_id); in i40e_ndo_set_vf_link_state()
4645 vf = &pf->vf[vf_id]; in i40e_ndo_set_vf_link_state()
4675 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_link_state()
4691 struct i40e_pf *pf = vsi->back; in i40e_ndo_set_vf_spoofchk() local
4693 struct i40e_hw *hw = &pf->hw; in i40e_ndo_set_vf_spoofchk()
4697 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_spoofchk()
4698 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_spoofchk()
4703 if (vf_id >= pf->num_alloc_vfs) { in i40e_ndo_set_vf_spoofchk()
4704 dev_err(&pf->pdev->dev, "Invalid VF Identifier %d\n", vf_id); in i40e_ndo_set_vf_spoofchk()
4709 vf = &(pf->vf[vf_id]); in i40e_ndo_set_vf_spoofchk()
4711 dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", in i40e_ndo_set_vf_spoofchk()
4722 ctxt.seid = pf->vsi[vf->lan_vsi_idx]->seid; in i40e_ndo_set_vf_spoofchk()
4723 ctxt.pf_num = pf->hw.pf_id; in i40e_ndo_set_vf_spoofchk()
4730 dev_err(&pf->pdev->dev, "Error %d updating VSI parameters\n", in i40e_ndo_set_vf_spoofchk()
4735 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_spoofchk()
4741 * @netdev: network interface device structure of the pf
4750 struct i40e_pf *pf = np->vsi->back; in i40e_ndo_set_vf_trust() local
4754 if (test_and_set_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state)) { in i40e_ndo_set_vf_trust()
4755 dev_warn(&pf->pdev->dev, "Unable to configure VFs, other operation is pending.\n"); in i40e_ndo_set_vf_trust()
4760 if (vf_id >= pf->num_alloc_vfs) { in i40e_ndo_set_vf_trust()
4761 dev_err(&pf->pdev->dev, "Invalid VF Identifier %d\n", vf_id); in i40e_ndo_set_vf_trust()
4766 if (pf->flags & I40E_FLAG_MFP_ENABLED) { in i40e_ndo_set_vf_trust()
4767 dev_err(&pf->pdev->dev, "Trusted VF not supported in MFP mode.\n"); in i40e_ndo_set_vf_trust()
4772 vf = &pf->vf[vf_id]; in i40e_ndo_set_vf_trust()
4779 /* request PF to sync mac/vlan filters for the VF */ in i40e_ndo_set_vf_trust()
4780 set_bit(__I40E_MACVLAN_SYNC_PENDING, pf->state); in i40e_ndo_set_vf_trust()
4781 pf->vsi[vf->lan_vsi_idx]->flags |= I40E_VSI_FLAG_FILTER_CHANGED; in i40e_ndo_set_vf_trust()
4784 dev_info(&pf->pdev->dev, "VF %u is now %strusted\n", in i40e_ndo_set_vf_trust()
4789 dev_info(&pf->pdev->dev, in i40e_ndo_set_vf_trust()
4797 clear_bit(__I40E_VIRTCHNL_OP_PENDING, pf->state); in i40e_ndo_set_vf_trust()
4803 * @netdev: the netdev of the PF
4811 struct i40e_pf *pf = np->vsi->back; in i40e_get_vf_stats() local
4817 if (i40e_validate_vf(pf, vf_id)) in i40e_get_vf_stats()
4820 vf = &pf->vf[vf_id]; in i40e_get_vf_stats()
4822 dev_err(&pf->pdev->dev, "VF %d in reset. Try again.\n", vf_id); in i40e_get_vf_stats()
4826 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_get_vf_stats()