diff options
| author | Alexandre Cassen <acassen@corp.free.fr> | 2026-10-12 12:05:54 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-10-20 13:01:26 +0200 |
| commit | e4ab8ab27ab1c9f0cd1589bee471d93319e20c95 (patch) | |
| tree | bc82d9ad6567a40909cfd220bcefffca9274dc04 /tools/lib/python | |
| parent | d730ca15cf3e4806e38fa8fc6f2af8d7405ef2a4 (diff) | |
net/mlx5: HWS, fix modify header pool creation race
mlx5_cmd_hws_modify_header_alloc() creates a pool at the index after
the last one if no pool matches the pattern. TC and CT allocate modify
headers concurrently, meaning two callers can take the same index and
the second call fails with -EBUSY.
Its error path also destroys the pool it just created although another
caller may already use it. Keep such a pool since cleanup releases it.
Pools now live until cleanup so the lookup needs no lock. A miss looks
again under a mutex before creating the pool.
Tested for regressions on ConnectX-7 with firmware 28.48.1000.
Fixes: b36315ca69cb ("net/mlx5: fs, add HWS modify header API function")
Signed-off-by: Alexandre Cassen <acassen@corp.free.fr>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20261012100555.1317878-3-acassen@corp.free.fr
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
