ice: add helper function to check FW API version
authorPaul Greenwalt <paul.greenwalt@intel.com>
Wed, 24 Aug 2022 20:28:40 +0000 (13:28 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 6 Sep 2022 20:55:47 +0000 (13:55 -0700)
commit1bd50f2deb19c13834f9f6b2f3c3263e38a47e1a
treeda613a9832132cd7c020cefa52b556cac784edc4
parent0b57e0d44299113a59697fc66714d5b3f14615b7
ice: add helper function to check FW API version

Several functions in ice_common.c check the firmware API version to see if
the current API version meets some minimum requirement.

Improve the readability of these checks by introducing
ice_is_fw_api_min_ver, a helper function to perform that check.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c