]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Support SPF SFs in SF hardware table
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 21 May 2026 11:08:36 +0000 (14:08 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 May 2026 20:48:51 +0000 (13:48 -0700)
commitbeca1cd919e0d602b16d2ced91255e41de2dc0b8
treece7970e6f389fcf724f8ccb6d5443c3690af1350
parent7aed78522df2231cf7ad7c6ed4488479570c42e8
net/mlx5: Support SPF SFs in SF hardware table

Convert the SF hardware table from a fixed-size hwc array to a
dynamically allocated one, supporting satellite PF (SPF) SFs alongside
local and external host SFs. Initialize hwc entries for each SPF using
its host_number as controller. Rename MLX5_SF_HWC_EXTERNAL to
MLX5_SF_HWC_EXT_HOST and add MLX5_SF_HWC_FIRST_SPF for clarity.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260521110843.367329-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c