On 2/12/2026 2:32 AM, Tariq Toukan wrote:
From: Shay Drory <redacted>
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.
So we were previously checking the number of VHCA ports, but since SFs
set this to 0, they would always be ported as mp_slave, even though they
should be mp_master.
Makes sense.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>