aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorQuinn Tran <quinn.tran@cavium.com>2018-11-06 03:51:21 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-06 21:09:59 -0500
commitf635e48e866ee1a47d2d42ce012fdcc07bf55853 (patch)
tree6c61d3be1c95e8ce037be034c211595ee50a3fe0 /drivers
parentaca49ee041cbdd329c55d4dbcd6b3d4b9af240e4 (diff)
scsi: qla2xxx: Initialize port speed to avoid setting lower speed
This patch initializes port speed so that firmware does not set lower operating speed. Setting lower speed in firmware impacts WRITE perfomance. Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery") Cc: <stable@vger.kernel.org> Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Tested-by: Laurence Oberman <loberman@redhat.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 6fe20c27acc1..eb59c796a795 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -4763,6 +4763,7 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags)
4763 fcport->loop_id = FC_NO_LOOP_ID; 4763 fcport->loop_id = FC_NO_LOOP_ID;
4764 qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED); 4764 qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED);
4765 fcport->supported_classes = FC_COS_UNSPECIFIED; 4765 fcport->supported_classes = FC_COS_UNSPECIFIED;
4766 fcport->fp_speed = PORT_SPEED_UNKNOWN;
4766 4767
4767 fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev, 4768 fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev,
4768 sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma, 4769 sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma,