]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
be2net: provision VF resources before enabling SR-IOV
authorSathya Perla <sathya.perla@emulex.com>
Wed, 8 May 2013 02:05:47 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2013 18:59:47 +0000 (11:59 -0700)
commitb4c1df9378bc6ce9f7fc4fd18afa3a98b676c5fa
treea28ca1072ed3e7280a954d01856c665e4b94c2f2
parentde9c9f86be0dc3495de98dc65c80abe6e7c7d643
be2net: provision VF resources before enabling SR-IOV

When the PF driver calls pci_enable_sriov(), the VFs may be probed
inline before the call returns. So, the resources required for all VFs
must be provisioned by the PF driver *before* calling pci_enable_sriov();
else, VF probe will fail.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c