summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@nvidia.com>2026-05-21 14:08:38 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-25 23:48:51 +0300
commit90a6aabb74a4451cd72243a28f322dc28f158294 (patch)
tree069b5c6fa0ff20b7ff0c6945eea1f16f5f92408f /include
parent0b43d2b76cc2001cc619a59024648e6c1fedcba8 (diff)
downloadlinux-90a6aabb74a4451cd72243a28f322dc28f158294.tar.xz
net/mlx5: Map SF controller to pfnum for satellite PFs
SF devlink port creation and registration used the ECPF's PCI function as pfnum. Extend this to support satellite PF controllers by introducing mlx5_esw_sf_controller_to_pfnum() that maps a controller number to the corresponding PF number, and use it in SF port attribute setup and SF creation validation. Reorder the checks in mlx5_devlink_sf_port_new() so that mlx5_sf_table_supported() runs before attribute validation, since the new helper requires the eswitch to be initialized. Signed-off-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260521110843.367329-8-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions