]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:22 +0000 (14:15 -0700)
commitefaf4492090cc5252859318596c6b71da7e36791
tree1108a2b59e3b09d66f440f8cd37e572102a874b7
parentc28b3f45f1bb47913c5fbc341ba3c9430d2f53ee
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>
Orabug: 26785018
(cherry picked from commit 004eb614c4d2fcc12a98714fd887a860582f203a)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c