]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Add vhca_id_type support to IPsec alias creation
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 30 Apr 2026 06:19:58 +0000 (09:19 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 2 May 2026 17:19:08 +0000 (10:19 -0700)
commitc8300af614b2c48a67e13f6f481f42ee668d5526
treec3e71965e1373fbdb5d3da6ca12ffab4527fdc6a
parent34d67417c8cfee90cd5b54b2c977a768895e0469
net/mlx5: Add vhca_id_type support to IPsec alias creation

When creating an alias FT for MPV IPsec, if alias creation with
sw_vhca_id is supported use it instead of using the hw_vhca_id.

This in turn allows IPsec to work properly after live migration,
in case a VF was live migrated and his hw_vhca_id changed due to
migration which can happen if you migrate to a VF with a different index
than yours, IPsec would fail to start post migration, this patch
resolves the issue by using sw_vhca_id instead which doesn't change post
migration.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260430061958.225245-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h