net/mlx5e: Fix lock order in mlx5e_tx_reporter_ptpsq_unhealthy_recover
authorCosmin Ratiu <cratiu@nvidia.com>
Wed, 23 Apr 2025 08:36:10 +0000 (11:36 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Apr 2025 01:19:56 +0000 (18:19 -0700)
commit1c2940ec0ddf51c689ee9ab85ead85c11b77809d
treef0e3cb688d0ea88ed77249fe9dddf49a1695bca5
parent172c034264c894518c012387f2de2f9d6443505d
net/mlx5e: Fix lock order in mlx5e_tx_reporter_ptpsq_unhealthy_recover

RTNL needs to be acquired before state_lock.

Fixes: fdce06bda7e5 ("net/mlx5e: Acquire RTNL lock before RQs/SQs activation/deactivation")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250423083611.324567-5-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c