mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
qla2x00t-32gbit: Add Speed in SFP print information
Print additional information about the speed while displaying SFP information. Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Reviewed-by: Himanshu Madhani <hmadhani2024@gmail.com> Link: https://patch.msgid.link/20251210101604.431868-2-njavali@marvell.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [ commit 7411f1875a60 upstream ]
This commit is contained in:
@@ -4077,6 +4077,20 @@ static void qla2xxx_print_sfp_info(struct scsi_qla_host *vha)
|
||||
u8 str[STR_LEN], *ptr, p;
|
||||
int leftover, len;
|
||||
|
||||
ql_dbg(ql_dbg_init, vha, 0x015a,
|
||||
"SFP: %.*s -> %.*s ->%s%s%s%s%s%s\n",
|
||||
(int)sizeof(a0->vendor_name), a0->vendor_name,
|
||||
(int)sizeof(a0->vendor_pn), a0->vendor_pn,
|
||||
a0->fc_sp_cc10 & FC_SP_32 ? " 32G" : "",
|
||||
a0->fc_sp_cc10 & FC_SP_16 ? " 16G" : "",
|
||||
a0->fc_sp_cc10 & FC_SP_8 ? " 8G" : "",
|
||||
a0->fc_sp_cc10 & FC_SP_4 ? " 4G" : "",
|
||||
a0->fc_sp_cc10 & FC_SP_2 ? " 2G" : "",
|
||||
a0->fc_sp_cc10 & FC_SP_1 ? " 1G" : "");
|
||||
|
||||
if (!(ql2xextended_error_logging & ql_dbg_verbose))
|
||||
return;
|
||||
|
||||
memset(str, 0, STR_LEN);
|
||||
snprintf(str, SFF_VEN_NAME_LEN+1, a0->vendor_name);
|
||||
ql_dbg(ql_dbg_init, vha, 0x015a,
|
||||
|
||||
Reference in New Issue
Block a user