]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: refactor FW version checking
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 14 Jul 2017 13:27:09 +0000 (09:27 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 Sep 2017 19:51:02 +0000 (12:51 -0700)
commit2116c70b7272110525d354a3a7e2d6527a0a25b5
tree20f66060ad1f59a2408f39efacc84df6fcb9000c
parent392a2a07da16a8e1ec598ed7c85eaba61ce8d9e6
i40e: refactor FW version checking

The i40e driver now supports two different devices with two different
firmware versions. So be smart about how we handle these. Move the FW
version macros to the appropriate header file, and add a convenience
macro that checks the version based on the device. Then use this macro
to check whether or not the driver can use the new link info API.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h