Lines Matching refs:num_vfs
25 unsigned int num_vfs) in ixgbe_alloc_vf_macvlans() argument
32 (IXGBE_MAX_PF_MACVLANS + 1 + num_vfs); in ixgbe_alloc_vf_macvlans()
51 unsigned int num_vfs) in __ixgbe_enable_sriov() argument
66 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), in __ixgbe_enable_sriov()
71 adapter->num_vfs = num_vfs; in __ixgbe_enable_sriov()
73 ixgbe_alloc_vf_macvlans(adapter, num_vfs); in __ixgbe_enable_sriov()
74 adapter->ring_feature[RING_F_VMDQ].offset = num_vfs; in __ixgbe_enable_sriov()
81 if ((adapter->hw.mac.type == ixgbe_mac_82599EB) && (num_vfs < 16)) { in __ixgbe_enable_sriov()
84 } else if (num_vfs < 32) { in __ixgbe_enable_sriov()
96 for (i = 0; i < num_vfs; i++) { in __ixgbe_enable_sriov()
115 e_info(probe, "SR-IOV enabled with %d VFs\n", num_vfs); in __ixgbe_enable_sriov()
143 if (vf >= adapter->num_vfs) in ixgbe_get_vfs()
157 unsigned int num_vfs; in ixgbe_enable_sriov() local
170 num_vfs = pre_existing_vfs; in ixgbe_enable_sriov()
182 num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov()
184 err = pci_enable_sriov(adapter->pdev, num_vfs); in ixgbe_enable_sriov()
191 if (!__ixgbe_enable_sriov(adapter, num_vfs)) { in ixgbe_enable_sriov()
207 unsigned int num_vfs = adapter->num_vfs, vf; in ixgbe_disable_sriov() local
213 adapter->num_vfs = 0; in ixgbe_disable_sriov()
217 for (vf = 0; vf < num_vfs; ++vf) { in ixgbe_disable_sriov()
270 static int ixgbe_pci_sriov_enable(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_enable() argument
278 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in ixgbe_pci_sriov_enable()
280 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in ixgbe_pci_sriov_enable()
281 return num_vfs; in ixgbe_pci_sriov_enable()
304 if (num_vfs > (limit - num_rx_pools)) { in ixgbe_pci_sriov_enable()
310 err = __ixgbe_enable_sriov(adapter, num_vfs); in ixgbe_pci_sriov_enable()
314 for (i = 0; i < num_vfs; i++) in ixgbe_pci_sriov_enable()
320 err = pci_enable_sriov(dev, num_vfs); in ixgbe_pci_sriov_enable()
327 return num_vfs; in ixgbe_pci_sriov_enable()
354 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_configure() argument
356 if (num_vfs == 0) in ixgbe_pci_sriov_configure()
359 return ixgbe_pci_sriov_enable(dev, num_vfs); in ixgbe_pci_sriov_configure()
417 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_restore_vf_multicasts()
1365 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_msg_task()
1398 for (i = 0 ; i < adapter->num_vfs; i++) { in ixgbe_ping_all_vfs()
1416 for (i = 0 ; i < adapter->num_vfs; i++) in ixgbe_set_all_vfs()
1426 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_mac()
1533 if ((vf >= adapter->num_vfs) || (vlan > 4095) || (qos > 7)) in ixgbe_ndo_set_vf_vlan()
1638 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_check_vf_rate_limit()
1653 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_bw()
1687 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_spoofchk()
1765 if (vf < 0 || vf >= adapter->num_vfs) { in ixgbe_ndo_set_vf_link_state()
1808 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_rss_query_en()
1820 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_trust()
1842 if (vf >= adapter->num_vfs) in ixgbe_ndo_get_vf_config()