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()
114 e_info(probe, "SR-IOV enabled with %d VFs\n", num_vfs); in __ixgbe_enable_sriov()
142 if (vf >= adapter->num_vfs) in ixgbe_get_vfs()
156 unsigned int num_vfs; in ixgbe_enable_sriov() local
169 num_vfs = pre_existing_vfs; in ixgbe_enable_sriov()
181 num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov()
183 err = pci_enable_sriov(adapter->pdev, num_vfs); in ixgbe_enable_sriov()
190 if (!__ixgbe_enable_sriov(adapter, num_vfs)) { in ixgbe_enable_sriov()
206 unsigned int num_vfs = adapter->num_vfs, vf; in ixgbe_disable_sriov() local
210 adapter->num_vfs = 0; in ixgbe_disable_sriov()
213 for (vf = 0; vf < num_vfs; ++vf) { in ixgbe_disable_sriov()
266 static int ixgbe_pci_sriov_enable(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_enable() argument
274 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in ixgbe_pci_sriov_enable()
276 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in ixgbe_pci_sriov_enable()
277 return num_vfs; in ixgbe_pci_sriov_enable()
300 if (num_vfs > (limit - num_rx_pools)) { in ixgbe_pci_sriov_enable()
306 err = __ixgbe_enable_sriov(adapter, num_vfs); in ixgbe_pci_sriov_enable()
310 for (i = 0; i < num_vfs; i++) in ixgbe_pci_sriov_enable()
316 err = pci_enable_sriov(dev, num_vfs); in ixgbe_pci_sriov_enable()
323 return num_vfs; in ixgbe_pci_sriov_enable()
350 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in ixgbe_pci_sriov_configure() argument
352 if (num_vfs == 0) in ixgbe_pci_sriov_configure()
355 return ixgbe_pci_sriov_enable(dev, num_vfs); in ixgbe_pci_sriov_configure()
413 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_restore_vf_multicasts()
1312 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_msg_task()
1356 for (i = 0 ; i < adapter->num_vfs; i++) { in ixgbe_ping_all_vfs()
1369 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_mac()
1476 if ((vf >= adapter->num_vfs) || (vlan > 4095) || (qos > 7)) in ixgbe_ndo_set_vf_vlan()
1581 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_check_vf_rate_limit()
1596 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_bw()
1630 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_spoofchk()
1673 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_rss_query_en()
1685 if (vf >= adapter->num_vfs) in ixgbe_ndo_set_vf_trust()
1707 if (vf >= adapter->num_vfs) in ixgbe_ndo_get_vf_config()