Lines Matching refs:num_vfs
56 e_info(probe, "SR-IOV enabled with %d VFs\n", adapter->num_vfs); in __ixgbe_enable_sriov()
62 adapter->ring_feature[RING_F_VMDQ].offset = adapter->num_vfs; in __ixgbe_enable_sriov()
65 (IXGBE_MAX_PF_MACVLANS + 1 + adapter->num_vfs); in __ixgbe_enable_sriov()
89 kcalloc(adapter->num_vfs, in __ixgbe_enable_sriov()
94 (adapter->num_vfs < 16)) { in __ixgbe_enable_sriov()
97 } else if (adapter->num_vfs < 32) { in __ixgbe_enable_sriov()
109 for (i = 0; i < adapter->num_vfs; i++) { in __ixgbe_enable_sriov()
141 if (!pre_existing_vfs && !adapter->num_vfs) in ixgbe_enable_sriov()
151 adapter->num_vfs = pre_existing_vfs; in ixgbe_enable_sriov()
163 adapter->num_vfs = min_t(unsigned int, adapter->num_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov()
165 err = pci_enable_sriov(adapter->pdev, adapter->num_vfs); in ixgbe_enable_sriov()
168 adapter->num_vfs = 0; in ixgbe_enable_sriov()
193 adapter->num_vfs = 0; in ixgbe_disable_sriov()
251 static int ixgbe_pci_sriov_enable(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_enable() argument
259 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in ixgbe_pci_sriov_enable()
261 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in ixgbe_pci_sriov_enable()
262 return num_vfs; in ixgbe_pci_sriov_enable()
275 if ((num_vfs + adapter->num_rx_pools) > IXGBE_MAX_VF_FUNCTIONS) in ixgbe_pci_sriov_enable()
278 adapter->num_vfs = num_vfs; in ixgbe_pci_sriov_enable()
284 for (i = 0; i < adapter->num_vfs; i++) in ixgbe_pci_sriov_enable()
287 err = pci_enable_sriov(dev, num_vfs); in ixgbe_pci_sriov_enable()
294 return num_vfs; in ixgbe_pci_sriov_enable()
319 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_configure() argument
321 if (num_vfs == 0) in ixgbe_pci_sriov_configure()
324 return ixgbe_pci_sriov_enable(dev, num_vfs); in ixgbe_pci_sriov_configure()
382 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_restore_vf_multicasts()
1162 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_msg_task()
1206 for (i = 0 ; i < adapter->num_vfs; i++) { in ixgbe_ping_all_vfs()
1217 if (!is_valid_ether_addr(mac) || (vf >= adapter->num_vfs)) in ixgbe_ndo_set_vf_mac()
1296 if ((vf >= adapter->num_vfs) || (vlan > 4095) || (qos > 7)) in ixgbe_ndo_set_vf_vlan()
1399 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_check_vf_rate_limit()
1414 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_bw()
1451 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_spoofchk()
1484 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_rss_query_en()
1496 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_trust()
1518 if (vf >= adapter->num_vfs) in ixgbe_ndo_get_vf_config()