]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c4b5b9000d22c100a18a3f701bd885fabc6ebfd
treeda613a9832132cd7c020cefa52b556cac784edc4
parent9533873ab90cdd2c54043acaefbb037621f1c049
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