|
@@ -2858,6 +2858,13 @@ static void igb_probe_vfs(struct igb_adapter *adapter)
|
|
if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211))
|
|
if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211))
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ /* Of the below we really only want the effect of getting
|
|
|
|
+ * IGB_FLAG_HAS_MSIX set (if available), without which
|
|
|
|
+ * igb_enable_sriov() has no effect.
|
|
|
|
+ */
|
|
|
|
+ igb_set_interrupt_capability(adapter, true);
|
|
|
|
+ igb_reset_interrupt_capability(adapter);
|
|
|
|
+
|
|
pci_sriov_set_totalvfs(pdev, 7);
|
|
pci_sriov_set_totalvfs(pdev, 7);
|
|
igb_enable_sriov(pdev, max_vfs);
|
|
igb_enable_sriov(pdev, max_vfs);
|
|
|
|
|