ixgbe: Limit number of reported VFs to device specific value
authorDonald Dutile <[email protected]>
Tue, 11 Dec 2012 08:26:48 +0000 (08:26 +0000)
committerJeff Kirsher <[email protected]>
Wed, 23 Jan 2013 22:34:10 +0000 (14:34 -0800)
ixgbe claims it supports 64 VFs in its SRIOV capability
structure, but the driver only supports 63.  Adjust it
so sysfs sriov configuration checking will check with
the proper totalvf value.

Signed-off-by: Donald Dutile <[email protected]>
Acked-by: Greg Rose <[email protected]>
Tested-by: Phil Schmitt <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index 5e3ed33215f796f7e3516902c247cd356b65d690..5989b3fa9fdc7432a8a00f4fa58e148935799e74 100644 (file)
@@ -7389,6 +7389,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);
 skip_sriov:
 
 #endif