net/sfc: choose datapaths after probe and before attach
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 29 Mar 2017 16:59:18 +0000 (17:59 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:59 +0000 (19:02 +0200)
commit329472d44475f4240f89a899173fdf63df75afe9
tree6a35639de2b1c9196d1c0598eef302f76f78ab53
parent9137da46e9c9f5feb01b934fac22b3742d102883
net/sfc: choose datapaths after probe and before attach

Datapath choice requires NIC capabilities knowledge and, therefore,
should be done after probe. Whereas NIC resources estimation needs
to know chosen datapath (e.g. if Tx datapath is going to use TSO).

Fixes: df1bfde4ff0d ("net/sfc: factor out libefx-based Rx datapath")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc.c
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_ethdev.c