[31/42] lpfc: Fix reported physical link speed on a disabled trunked link
diff mbox series

Message ID 20190814235712.4487-32-jsmart2021@gmail.com
State Accepted
Headers show
  • lpfc: Update lpfc to revision
Related show

Commit Message

James Smart Aug. 14, 2019, 11:57 p.m. UTC
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

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
 drivers/scsi/lpfc/lpfc_hbadisc.c | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 44e779e4c885..95db23adc96d 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -905,6 +905,8 @@  lpfc_linkdown(struct lpfc_hba *phba)
 			phba->trunk_link.link1.state = 0;
 			phba->trunk_link.link2.state = 0;
 			phba->trunk_link.link3.state = 0;
+			phba->sli4_hba.link_state.logical_speed =
 		phba->pport->fc_flag &= ~FC_LBIT;