]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit22b96551f213d7e7d743442c923c266a10306b9b
tree20f66060ad1f59a2408f39efacc84df6fcb9000c
parenta3f5aa907340b5d7b54223ddbaa90410f168864d
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