]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Implement queue mgmt ops and single channel swap
authorSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Jun 2025 14:14:39 +0000 (17:14 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:34:13 +0000 (18:34 -0700)
commitb2588ea40ec9472688289c1a644627c0f4a1f33f
tree9a2608e31977cb2204de113cf0a2c408ad9f56d0
parentdb3010bb5a0134644c45dc0df89e76e02553478c
net/mlx5e: Implement queue mgmt ops and single channel swap

The bulk of the work is done in mlx5e_queue_mem_alloc, where we allocate
and create the new channel resources, similar to
mlx5e_safe_switch_params, but here we do it for a single channel using
existing params, sort of a clone channel.
To swap the old channel with the new one, we deactivate and close the
old channel then replace it with the new one, since the swap procedure
doesn't fail in mlx5, we do it all in one place (mlx5e_queue_start).

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Acked-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250616141441.1243044-11-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c