[PATCH v1 11/15] net/ixgbe/base: remove FW API version check
Anatoly Burakov
anatoly.burakov at intel.com
Thu Aug 29 11:00:16 CEST 2024
From: Krzysztof Galazka <krzysztof.galazka at intel.com>
Only certain variants of drivers rely on FW API version check in shared
code. Other drivers implement their own logic due to differences in
requirements. DPDK does not require the FW API check.
Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
drivers/net/ixgbe/base/ixgbe_e610.c | 31 +----------------------------
1 file changed, 1 insertion(+), 30 deletions(-)
diff --git a/drivers/net/ixgbe/base/ixgbe_e610.c b/drivers/net/ixgbe/base/ixgbe_e610.c
index 6eaf377f4a..7ea495db97 100644
--- a/drivers/net/ixgbe/base/ixgbe_e610.c
+++ b/drivers/net/ixgbe/base/ixgbe_e610.c
@@ -3541,32 +3541,7 @@ s32 ixgbe_reset_hw_E610(struct ixgbe_hw *hw)
reset_hw_out:
return status;
}
-/**
- * ixgbe_fw_ver_check - Check the reported FW API version
- * @hw: pointer to the hardware structure
- *
- * Checks if the driver should load on a given FW API version.
- *
- * Return: 'true' if the driver should attempt to load. 'false' otherwise.
- */
-static bool ixgbe_fw_ver_check(struct ixgbe_hw *hw)
-{
- if (hw->api_maj_ver > IXGBE_FW_API_VER_MAJOR) {
- ERROR_REPORT1(IXGBE_ERROR_UNSUPPORTED, "The driver for the device stopped because the NVM image is newer than expected. You must install the most recent version of the network driver.\n");
- return false;
- } else if (hw->api_maj_ver == IXGBE_FW_API_VER_MAJOR) {
- if (hw->api_min_ver >
- (IXGBE_FW_API_VER_MINOR + IXGBE_FW_API_VER_DIFF_ALLOWED)) {
- ERROR_REPORT1(IXGBE_ERROR_CAUTION, "The driver for the device detected a newer version of the NVM image than expected. Please install the most recent version of the network driver.\n");
- } else if ((hw->api_min_ver + IXGBE_FW_API_VER_DIFF_ALLOWED) <
- IXGBE_FW_API_VER_MINOR) {
- ERROR_REPORT1(IXGBE_ERROR_CAUTION, "The driver for the device detected an older version of the NVM image than expected. Please update the NVM image.\n");
- }
- } else {
- ERROR_REPORT1(IXGBE_ERROR_CAUTION, "The driver for the device detected an older version of the NVM image than expected. Please update the NVM image.\n");
- }
- return true;
-}
+
/**
* ixgbe_start_hw_E610 - Prepare hardware for Tx/Rx
* @hw: pointer to hardware structure
@@ -3584,10 +3559,6 @@ s32 ixgbe_start_hw_E610(struct ixgbe_hw *hw)
if (ret_val)
goto out;
- if (!ixgbe_fw_ver_check(hw)) {
- ret_val = IXGBE_ERR_FW_API_VER;
- goto out;
- }
ret_val = ixgbe_start_hw_generic(hw);
if (ret_val != IXGBE_SUCCESS)
goto out;
--
2.43.5
More information about the dev
mailing list