[PATCH net V2 0/4] net/mlx5e: Fix offload lifetime and exclusion bugs
From: Tariq Toukan
Date: Wed Sep 30 2026 - 08:17:54 EST
Hi,
This series by Cosmin fixes several mlx5e offload issues:
- Block eswitch mode changes before accessing the IPsec context during
policy and SA creation.
- Tie TC eswitch and IPsec-blocking references to flow destruction,
covering bulk cleanup and flows with outstanding references.
- Serialize TC/IPsec exclusion counters with a dedicated mutex.
Regards,
Tariq
V2:
- Use mlx5_esw_lock() in mlx5_eswitch_block_mode() (Sashiko)
- Clarified the fix split across first two patches (Sashiko)
- More careful dereferencing priv->mdev in mlx5e_xfrm_add_state() (Sashiko)
- Avoided spurious error message during IPsec SW fallback (Sashiko)
- Harmonized check_users arg for policy & state add (Sashiko)
- Clarified the scope of the "tc: tie..." fix (Sashiko)
- Moved macsec patches into a separate series.
V1:
https://lore.kernel.org/netdev/20260917175433.4090878-1-tariqt@xxxxxxxxxx/
Cosmin Ratiu (4):
net/mlx5e: ipsec: Block eswitch mode changes during policy creation
net/mlx5e: ipsec: Block eswitch mode changes before accessing
priv->ipsec
net/mlx5e: Serialize TC and IPsec offload exclusion counters
net/mlx5e: tc: Tie esw & accel blocking refs to the flow's lifetime
.../mellanox/mlx5/core/en_accel/ipsec.c | 65 +++++++++++++-----
.../mellanox/mlx5/core/en_accel/ipsec_fs.c | 47 ++++---------
.../net/ethernet/mellanox/mlx5/core/en_tc.c | 66 ++++++++++++-------
.../net/ethernet/mellanox/mlx5/core/eswitch.c | 11 ++--
.../net/ethernet/mellanox/mlx5/core/eswitch.h | 10 ++-
.../mellanox/mlx5/core/eswitch_offloads.c | 7 +-
.../net/ethernet/mellanox/mlx5/core/main.c | 3 +
include/linux/mlx5/driver.h | 7 +-
8 files changed, 128 insertions(+), 88 deletions(-)
base-commit: 99b43ede9e355ba35244cc9470bf1819774ce39d
--
2.44.0