linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net V2 0/4] net/mlx5: SD LAG and devcom stability fixes
@ 2026-09-06  7:13 Tariq Toukan
  2026-09-06  7:13 ` [PATCH net V2 1/4] net/mlx5: SD, serialize SD LAG init/cleanup against LAG mode changes Tariq Toukan
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Tariq Toukan @ 2026-09-06  7:13 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	netdev, Paolo Abeni
  Cc: Akiva Goldberger, Edward Srouji, Gal Pressman, Kees Cook,
	Leon Romanovsky, linux-kernel, linux-rdma, Maher Sanalla,
	Mark Bloch, Or Har-Toov, Parav Pandit, Patrisious Haddad,
	Saeed Mahameed, Shay Drori, Simon Horman, Tariq Toukan

Hi,

This series by Shay fixes four bugs in the Socket Direct LAG and devcom
subsystems, all related to initialization/teardown ordering and
concurrent access to the LAG device.

Regards,
Tariq

Internal sashiko comment:
> @@ -342,7 +342,14 @@ static void sd_lag_init(struct mlx5_core_dev *dev)
>  		return;
>  	}
>
> +recheck:
>  	mutex_lock(&ldev->lock);
> +	if (ldev->mode_changes_in_progress) {
> +		mutex_unlock(&ldev->lock);
> +		msleep(100);
> +		goto recheck;
> +
}
> +
Does this open-coded retry loop reimplement a wait mechanism without
immediate
wakeups or fairness?
It looks like we are polling the mode_changes_in_progress flag using a
hard
coded msleep(100). Could this unnecessarily delay the initialization
path if
the condition clears much sooner than 100ms? Would it be better to use a
proper
synchronization primitive like a waitqueue here instead of an ad-hoc
flag loop?

[SD] This is the same check as in mlx5_lag_remove_mdev().
I agree we need to change it, but this is net-next material

V2:
- Fix git am apply error, and move pre-replies to cover letter.

V1:
https://lore.kernel.org/all/20260902163716.3656279-1-tariqt@nvidia.com/

Shay Drory (4):
  net/mlx5: SD, serialize SD LAG init/cleanup against LAG mode changes
  net/mlx5: devcom, Base component size on linked devices
  net/mlx5: SD, unload reps on shared FDB create error path
  net/mlx5: LAG, reload IB reps of LAG master before the rest

 .../net/ethernet/mellanox/mlx5/core/eswitch.c |  2 +-
 .../net/ethernet/mellanox/mlx5/core/lag/lag.c | 74 ++++++++++++-------
 .../mellanox/mlx5/core/lag/shared_fdb.c       |  1 +
 .../ethernet/mellanox/mlx5/core/lib/devcom.c  |  5 +-
 .../net/ethernet/mellanox/mlx5/core/lib/sd.c  | 13 ++++
 5 files changed, 65 insertions(+), 30 deletions(-)


base-commit: 2b4707a149a55e8fa75c9ef32b359d60f470a566
-- 
2.44.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-09-10 14:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06  7:13 [PATCH net V2 0/4] net/mlx5: SD LAG and devcom stability fixes Tariq Toukan
2026-09-06  7:13 ` [PATCH net V2 1/4] net/mlx5: SD, serialize SD LAG init/cleanup against LAG mode changes Tariq Toukan
2026-09-09 12:15   ` netdev-bot+sashiko
2026-09-10 14:26     ` Shay Drori
2026-09-10 11:08   ` Paolo Abeni
2026-09-06  7:13 ` [PATCH net V2 2/4] net/mlx5: devcom, Base component size on linked devices Tariq Toukan
2026-09-06  7:13 ` [PATCH net V2 3/4] net/mlx5: SD, unload reps on shared FDB create error path Tariq Toukan
2026-09-09 12:15   ` netdev-bot+sashiko
2026-09-10 14:27     ` Shay Drori
2026-09-06  7:13 ` [PATCH net V2 4/4] net/mlx5: LAG, reload IB reps of LAG master before the rest Tariq Toukan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).