This series fixes two pool creation races in fs_hws hit when two
callers create the first pool for a reformat size or a modify header
pattern at once:
- Reformat pools keep the pool inserted first.
- Modify header pools serialize the pool creation while keeping a new
pool on error.
v2:
- Keep the pattern lookup out of the mutex and look again under it on
a miss (Moshe).
- Add Moshe's Reviewed-by to patch 1.
v1: https://lore.kernel.org/netdev/20261008204230.3222198-1-acassen@corp.free.fr/ (local)
Alexandre Cassen (2):
net/mlx5: HWS, fix reformat pool creation race
net/mlx5: HWS, fix modify header pool creation race
.../mellanox/mlx5/core/steering/hws/fs_hws.c | 66 +++++++++++--------
.../mellanox/mlx5/core/steering/hws/fs_hws.h | 1 +
2 files changed, 40 insertions(+), 27 deletions(-)
--
2.43.0