]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Refine TX timeout handling to skip non-timed-out SQ
authorShahar Shitrit <shshitrit@nvidia.com>
Mon, 12 Jan 2026 09:16:23 +0000 (11:16 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 Jan 2026 10:55:05 +0000 (11:55 +0100)
commitb0ba734516d201c217b23bf39782792b5404fb1c
treeed1615a88ed950c48bee6c64beb394b0f035a5e2
parent3ae02d659773f8f3aa0cebe04d42c88113a2dd0d
net/mlx5e: Refine TX timeout handling to skip non-timed-out SQ

mlx5e_tx_timeout_work() is invoked when the dev_watchdog reports a
timed-out TX queue. Currently, the recovery flow is triggered for all
stopped SQs, which is not always correct — some SQs may be temporarily
stopped without actually timing out. Attempting to recover such SQs
results in no EQE being polled (since no real timeout occurred), which
the driver misinterprets as a recovery failure, unnecessarily causing
channel reopening.

Improve the logic to initiate recovery only for SQs that are both
stopped and timed out. Utilize the helper introduced in the previous
patch to determine whether the netdevice watchdog timeout period has
elapsed since the SQ’s last transmit timestamp.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Yael Chemla <ychemla@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1768209383-1546791-4-git-send-email-tariqt@nvidia.com
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c