]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Lag: refactor representor reload handling
authorMark Bloch <mbloch@nvidia.com>
Sun, 3 May 2026 20:27:20 +0000 (23:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 May 2026 02:03:36 +0000 (19:03 -0700)
commitb501400fa66d9b8045f282ae8de80ceb6e02fe85
tree34e2faa2f66af97885b42f734a22f4d7eb46eab7
parentc978803c5d4dc0501efcdb32df055b35bd81ba27
net/mlx5: Lag: refactor representor reload handling

Representor reload during LAG/MPESW transitions has to be repeated in
several flows, and each open-coded loop was easy to get out of sync
when adding new flags or tweaking error handling. Move the sequencing
into a single helper so that all call sites share the same ordering
and checks.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260503202726.266415-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c