Files
linux-stable-mirror/include/linux
Shay DroryandSasha Levin a4ff9e4f4a net/mlx5: Fix multiport device check over light SFs
[ Upstream commit 47bf2e8138 ]

Driver is using num_vhca_ports capability to distinguish between
multiport master device and multiport slave device. num_vhca_ports is a
capability the driver sets according to the MAX num_vhca_ports
capability reported by FW. On the other hand, light SFs doesn't set the
above capbility.

This leads to wrong results whenever light SFs is checking whether he is
a multiport master or slave.

Therefore, use the MAX capability to distinguish between master and
slave devices.

Fixes: e71383fb9c ("net/mlx5: Light probe local SFs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <Jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260218072904.1764634-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:23 -05:00
..
2026-03-04 07:19:34 -05:00
2026-03-04 07:20:03 -05:00
2025-05-09 09:43:58 +02:00
2024-10-04 16:29:59 +02:00
2025-11-02 22:14:42 +09:00
2025-09-11 17:20:27 +02:00
2024-12-14 19:59:58 +01:00
2026-01-11 15:22:07 +01:00
2025-07-06 11:00:16 +02:00
2025-02-08 09:52:02 +01:00
2025-01-09 13:31:41 +01:00
2026-01-11 15:21:37 +01:00
2025-08-15 12:08:42 +02:00
2025-01-23 17:21:12 +01:00
2026-01-11 15:21:52 +01:00
2025-01-09 13:31:41 +01:00
2025-02-01 18:37:51 +01:00
2026-03-04 07:19:32 -05:00
2025-08-01 09:47:30 +01:00
2026-01-11 15:22:20 +01:00
2024-11-08 16:28:26 +01:00