Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: qla2xxx: Supported speed displayed incorrectly for VPorts

The fc_function_template for vports was missing the
.show_host_supported_speeds. The base port had the same.

Add .show_host_supported_speeds to the vport template as well.

Cc: stable@vger.kernel.org
Fixes: 2c3dfe3f6ad8 ("[SCSI] qla2xxx: add support for NPIV")
Signed-off-by: Anil Gurumurthy <agurumurthy@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20241115130313.46826-7-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Anil Gurumurthy and committed by
Martin K. Petersen
e4e268f8 4812b779

+1
+1
drivers/scsi/qla2xxx/qla_attr.c
··· 3304 3304 .show_host_node_name = 1, 3305 3305 .show_host_port_name = 1, 3306 3306 .show_host_supported_classes = 1, 3307 + .show_host_supported_speeds = 1, 3307 3308 3308 3309 .get_host_port_id = qla2x00_get_host_port_id, 3309 3310 .show_host_port_id = 1,