aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
diff options
context:
space:
mode:
authorJedrzej Jagielski <[email protected]>2025-04-10 13:00:06 +0000
committerTony Nguyen <[email protected]>2025-04-15 14:36:33 +0000
commitb5aae90b6b369df01f424ee09205e287a11e085b (patch)
tree1a5f2ab97ba1bd088ec54051c0f61717a2b465d1 /drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
parentixgbe: add support for devlink reload (diff)
downloadkernel-b5aae90b6b369df01f424ee09205e287a11e085b.tar.gz
kernel-b5aae90b6b369df01f424ee09205e287a11e085b.zip
ixgbe: add FW API version check
Add E610 specific function checking whether the FW API version is compatible with the driver expectations. The major API version should be less than or equal to the expected API version. If not the driver won't be fully operational. Check the minor version, and if it is more than two versions lesser or greater than the expected version, print a message indicating that the NVM or driver should be updated respectively. Reviewed-by: Mateusz Polchlopek <[email protected]> Co-developed-by: Piotr Kwapulinski <[email protected]> Signed-off-by: Piotr Kwapulinski <[email protected]> Signed-off-by: Jedrzej Jagielski <[email protected]> Tested-by: Bharath R <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/devlink/devlink.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/devlink/devlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/devlink/devlink.c b/drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
index d0197991763c..3e79e446a944 100644
--- a/drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
+++ b/drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
@@ -471,6 +471,8 @@ static int ixgbe_devlink_reload_empr_finish(struct devlink *devlink,
*actions_performed = BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE);
+ adapter->flags2 &= ~IXGBE_FLAG2_API_MISMATCH;
+
return 0;
}