Message ID | 1415620410-4937-4-git-send-email-sathya.perla@emulex.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Mon, Nov 10, 2014 at 3:53 AM, Sathya Perla <sathya.perla@emulex.com> wrote: > From: Vasundhara Volam <vasundhara.volam@emulex.com> > > The pci_assigned_vfs() check (while disabling VFs) is being moved to the > pci-sysfs.c file and will be done before invoking sriov_configure(). > > Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com> > Signed-off-by: Sathya Perla <sathya.perla@emulex.com> > --- > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) Thanks I will add your patch to my queue. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index fff3c27..0028a9a 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -951,12 +951,7 @@ int i40e_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) if (num_vfs) return i40e_pci_sriov_enable(pdev, num_vfs); - if (!pci_vfs_assigned(pf->pdev)) { - i40e_free_vfs(pf); - } else { - dev_warn(&pdev->dev, "Unable to free VFs because some are assigned to VMs.\n"); - return -EINVAL; - } + i40e_free_vfs(pf); return 0; }