net/mlx5e: Acquire RTNL lock before RQs/SQs activation/deactivation
authorCarolina Jubran <cjubran@nvidia.com>
Thu, 11 Apr 2024 11:54:43 +0000 (14:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Apr 2024 02:13:53 +0000 (19:13 -0700)
commitfdce06bda7e56b2a34c53ea58bad7af2fae96da1
tree8a509c66f92296a0b129dc41825867533fe7a078
parent6c685bdb9e1af966ec0278dbd4068ec39ae88c2d
net/mlx5e: Acquire RTNL lock before RQs/SQs activation/deactivation

netif_queue_set_napi asserts whether RTNL lock is held if
the netdev is initialized.

Acquire the RTNL lock before activating or deactivating
RQs/SQs if the lock has not been held before in the flow.

Fixes: f25e7b82635f ("net/mlx5e: link NAPI instances to queues and IRQs")
Cc: Joe Damato <jdamato@fastly.com>
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240411115444.374475-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c