|
@@ -5067,7 +5067,7 @@ static int ixgbe_sw_init(struct ixgbe_adapter *adapter)
|
|
|
|
|
|
/* assign number of SR-IOV VFs */
|
|
|
if (hw->mac.type != ixgbe_mac_82598EB) {
|
|
|
- if (max_vfs > 63) {
|
|
|
+ if (max_vfs > IXGBE_MAX_VFS_DRV_LIMIT) {
|
|
|
adapter->num_vfs = 0;
|
|
|
e_dev_warn("max_vfs parameter out of range. Not assigning any SR-IOV VFs\n");
|
|
|
} else {
|
|
@@ -8020,7 +8020,7 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
ixgbe_init_mbx_params_pf(hw);
|
|
|
memcpy(&hw->mbx.ops, ii->mbx_ops, sizeof(hw->mbx.ops));
|
|
|
ixgbe_enable_sriov(adapter);
|
|
|
- pci_sriov_set_totalvfs(pdev, 63);
|
|
|
+ pci_sriov_set_totalvfs(pdev, IXGBE_MAX_VFS_DRV_LIMIT);
|
|
|
skip_sriov:
|
|
|
|
|
|
#endif
|