diff options
author | James Smart <james.smart@emulex.com> | 2010-01-27 07:08:29 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-09 03:38:44 +0300 |
commit | 65467b6bdffd3efde111444663bc9de35b59b22a (patch) | |
tree | df2fe983e3b5a0c921709d72eef529e9ae68aeb6 /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | 695a814e18561c52456acf5051fac0ea4b8111da (diff) | |
download | linux-65467b6bdffd3efde111444663bc9de35b59b22a.tar.xz |
[SCSI] lpfc 8.3.8: Add code to display logical link speed
Display Logical Link Speed when supported and is non-zero.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index d5cc6b8d32f2..8f4b90a9d151 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -2701,6 +2701,13 @@ lpfc_info(struct Scsi_Host *host) " port %s", phba->Port); } + len = strlen(lpfcinfobuf); + if (phba->sli4_hba.link_state.logical_speed) { + snprintf(lpfcinfobuf + len, + 384-len, + " Logical Link Speed: %d Mbps", + phba->sli4_hba.link_state.logical_speed * 10); + } } return lpfcinfobuf; } |