Skip to content

Commit 43dc4e0

Browse files
ddutileJeff Kirsher
authored andcommitted
ixgbe: Limit number of reported VFs to device specific value
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]>
1 parent da36b64 commit 43dc4e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7389,6 +7389,7 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
73897389
ixgbe_init_mbx_params_pf(hw);
73907390
memcpy(&hw->mbx.ops, ii->mbx_ops, sizeof(hw->mbx.ops));
73917391
ixgbe_enable_sriov(adapter);
7392+
pci_sriov_set_totalvfs(pdev, 63);
73927393
skip_sriov:
73937394

73947395
#endif

0 commit comments

Comments
 (0)