]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Add sd_group_size bits for SD management
authorShay Drory <shayd@nvidia.com>
Fri, 29 May 2026 05:23:59 +0000 (08:23 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 7 Jun 2026 10:10:07 +0000 (06:10 -0400)
commitddbddbf8aee54bee038149187270c93a45478473
tree9fe80ef538d813519beed038ac1faa2452e0b34d
parentcc71b7f32f0ba8bd95f57e519303ce79f01fd467
net/mlx5: Add sd_group_size bits for SD management

Currently, mlx5 is querying the MPIR register to get the number of PFs
that should comprise the SD group.
However, this register does not reflect the correct number in complex
deployments. Hence, add an sd_group_size field to nic_vport_context to
determine the correct number of PFs, and add an sd_group_size capability
bit to indicate whether FW supports it.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260529052359.389413-3-tariqt@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
include/linux/mlx5/mlx5_ifc.h