OSDN Git Service

scsi: lpfc: Fix Max Frame Size value shown in fdmishow output
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:57:00 +0000 (16:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:11 +0000 (22:41 -0400)
commitf98b2fd796d0f3dfa472e1ff977d38180301c982
tree640cad1c0f8f16b24164a3846684bc2246456d12
parent6db51abb8dc3919b85c5d2afd35b3871399e8a81
scsi: lpfc: Fix Max Frame Size value shown in fdmishow output

Max Frame Size value is shown as 34816 in fdmishow from Switch.

The driver uses bbRcvSize in common service param which is obtained from
the READ_SPARM mailbox command. The bbRcvSize field which is displayed is a
three nibble field but the driver is printing a full four nibbles.

Fix by masking off the upper nibble.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c