umber-kernel/include/linux/mlx5
Shay Drory b13e896fc4 net/mlx5: Fix multiport device check over light SFs
[ Upstream commit 47bf2e813817159f4d195be83a9b5a640ee6baec ]

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-02-26 14:59:40 -08:00
..
cq.h mlx5: Fix default values in create CQ 2025-11-11 15:12:18 +01:00
device.h
doorbell.h
driver.h net/mlx5: Fix multiport device check over light SFs 2026-02-26 14:59:40 -08:00
eq.h
eswitch.h
fs.h net/mlx5: fs, fix UAF in flow counter release 2025-09-23 17:17:30 -07:00
fs_helpers.h
macsec.h
mlx5_ifc.h net/mlx5: Add PPHCR to PCAM supported registers mask 2025-10-23 07:14:32 -07:00
mlx5_ifc_fpga.h
mlx5_ifc_vdpa.h
mpfs.h
port.h
qp.h
rsc_dump.h
transobj.h
vport.h