]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Move async ICOSQ lock into ICOSQ struct
authorWilliam Tu <witu@nvidia.com>
Wed, 14 Jan 2026 07:46:37 +0000 (09:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 19 Jan 2026 20:26:42 +0000 (12:26 -0800)
commitea945f4f399130658a358103b57f37c2d2150458
treeb3c99bcab1243703df69befa786c25e168571be7
parent3b85d5f8562cd7341d71f3f3c58120681f518ed3
net/mlx5e: Move async ICOSQ lock into ICOSQ struct

Move the async_icosq spinlock from the mlx5e_channel structure into
the mlx5e_icosq structure itself for better encapsulation and for
later patch to also use it for other icosq use cases.

Changes:
- Add spinlock_t lock field to struct mlx5e_icosq
- Remove async_icosq_lock field from struct mlx5e_channel
- Initialize the new lock in mlx5e_open_icosq()
- Update all lock usage in ktls_rx.c and en_main.c to use sq->lock
  instead of c->async_icosq_lock

Signed-off-by: William Tu <witu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1768376800-1607672-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c