i40e: only register client on iWarp-capable devices
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 4 Apr 2017 19:40:16 +0000 (12:40 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 8 Apr 2017 09:53:48 +0000 (02:53 -0700)
commit004eb614c4d2fcc12a98714fd887a860582f203a
treea506ad220fa565bec0c7f6774c9242aeb4d95647
parent3a9024f52c2e92a143195db43d2abbd5d0792c06
i40e: only register client on iWarp-capable devices

The client interface is only intended for use on devices that support
iWarp. Only register with the client if this is the case.

This fixes a panic when loading i40iw on X710 devices.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Reported-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c