net/sfc/base: factor out upstream port vAdaptor allocation
authorGautam Dawar <gdawar@solarflare.com>
Mon, 10 Jun 2019 07:38:37 +0000 (08:38 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit4625c4f5277d16b0a9ad0a6a193f7f4818f110e8
tree5c388a97b53a4fd3f4cd805de8e8f204d6d160ea
parentd1708933bb48a3d86be336d6c9603300131ff70f
net/sfc/base: factor out upstream port vAdaptor allocation

Separate out vAdaptor allocation from ef10_nic_init() as it is not
required for SR-IOV use case. In case of SR-IOV, vAdaptor is allocated
early along with vSwitch creation and vPort configuration.

Signed-off-by: Gautam Dawar <gdawar@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_nic.c