[PATCH net-next 0/8] net/mlx5: Prepare eswitch infrastructure for satellite PF support

From: Tariq Toukan

Date: Sun May 10 2026 - 01:36:01 EST


Hi,

See detailed description by Moshe below.

Regards,
Tariq

This series prepares the mlx5 eswitch command interface and vport
infrastructure for satellite PF support.

The first two patches abstract host PF data parsing behind a helper and
switch to the v1 response layout for query_esw_functions when supported,
so callers are insulated from layout differences.

The IPsec VF checks are tightened to use mlx5_eswitch_is_vf_vport()
instead of comparing against a specific vport number.

The remaining patches refactor SET_HCA_CAP and enable/disable_hca
command helpers to support vhca_id-based addressing, which is required
for managing functions that are not directly addressable by function_id.

A follow-up series will introduce satellite PF discovery and management
using this infrastructure.

Moshe Shemesh (8):
net/mlx5: Use helper to parse host PF info
net/mlx5: Use v1 response layout for query_esw_functions
net/mlx5: Use mlx5_eswitch_is_vf_vport() for IPsec VF checks
net/mlx5: Switch vport HCA cap helpers to kvzalloc
net/mlx5: Add mlx5_vport_set_other_func_general_cap macro
net/mlx5: Refactor mlx5_set_msix_vec_count() SET_HCA_CAP
net/mlx5: Use vport helper for IPsec eswitch set caps
net/mlx5: Generalize enable/disable HCA for any PF vport

.../net/ethernet/mellanox/mlx5/core/ecpf.c | 24 ++-
.../net/ethernet/mellanox/mlx5/core/ecpf.h | 4 +-
.../ethernet/mellanox/mlx5/core/esw/ipsec.c | 83 +++------
.../net/ethernet/mellanox/mlx5/core/eswitch.c | 157 +++++++++++++++---
.../net/ethernet/mellanox/mlx5/core/eswitch.h | 16 ++
.../mellanox/mlx5/core/eswitch_offloads.c | 38 ++---
.../ethernet/mellanox/mlx5/core/mlx5_core.h | 6 +
.../net/ethernet/mellanox/mlx5/core/pci_irq.c | 27 +--
.../net/ethernet/mellanox/mlx5/core/sriov.c | 8 +-
.../net/ethernet/mellanox/mlx5/core/vport.c | 12 +-
10 files changed, 227 insertions(+), 148 deletions(-)


base-commit: 8b2feced65cd3aa0597d596ed5733a1abd4c4d78
--
2.44.0