]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: lpfc: Fix reported physical link speed on a disabled trunked link
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:57:01 +0000 (16:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:11 +0000 (22:41 -0400)
commit845d0327bf0885e7d2fb6cb18e800491be793250
tree9c98f73eabda2b919f0d05da1c955b1b2c4d7546
parentf98b2fd796d0f3dfa472e1ff977d38180301c982
scsi: lpfc: Fix reported physical link speed on a disabled trunked link

GetTrunkInfo is displaying an incorrect link speed when the link is a trunk
and the link has gone down.  The driver is not clearing the logical speed
as part of the link down transition.

Fix by setting the logical speed to UNKNOWN SPEED when the link goes down.

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_hbadisc.c