summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuinn Tran <qutran@marvell.com>2019-09-12 14:09:10 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-09-23 23:09:43 -0400
commitf3f1938bb673b1b5ad182c4608f5f8a24921eea3 (patch)
treea3576ca48f735262d1b3bcb2f93403d6b330514d
parent7f2a398d59d658818f3d219645164676fbbc88e8 (diff)
scsi: qla2xxx: Fix N2N link up fail
During link up/bounce, qla driver would do command flush as part of cleanup. In this case, the flush can intefere with FW state. This patch allows FW to be in control of link up. Link: https://lore.kernel.org/r/20190912180918.6436-7-hmadhani@marvell.com Signed-off-by: Quinn Tran <qutran@marvell.com> Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_mbx.c2
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 6d6e10812b42..1cc6913f76c4 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -3897,6 +3897,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
3897 fcport->dm_login_expire = jiffies + 2*HZ; 3897 fcport->dm_login_expire = jiffies + 2*HZ;
3898 fcport->scan_state = QLA_FCPORT_FOUND; 3898 fcport->scan_state = QLA_FCPORT_FOUND;
3899 fcport->n2n_flag = 1; 3899 fcport->n2n_flag = 1;
3900 fcport->keep_nport_handle = 1;
3900 if (vha->flags.nvme_enabled) 3901 if (vha->flags.nvme_enabled)
3901 fcport->fc4f_nvme = 1; 3902 fcport->fc4f_nvme = 1;
3902 3903
@@ -4042,6 +4043,7 @@ qla24xx_report_id_acquisition(scsi_qla_host_t *vha,
4042 fcport->login_retry = vha->hw->login_retry_count; 4043 fcport->login_retry = vha->hw->login_retry_count;
4043 fcport->plogi_nack_done_deadline = jiffies + HZ; 4044 fcport->plogi_nack_done_deadline = jiffies + HZ;
4044 fcport->scan_state = QLA_FCPORT_FOUND; 4045 fcport->scan_state = QLA_FCPORT_FOUND;
4046 fcport->keep_nport_handle = 1;
4045 fcport->n2n_flag = 1; 4047 fcport->n2n_flag = 1;
4046 fcport->d_id.b.domain = 4048 fcport->d_id.b.domain =
4047 rptid_entry->u.f2.remote_nport_id[2]; 4049 rptid_entry->u.f2.remote_nport_id[2];
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 8411dd5acd43..ee47de9fbc05 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -5135,11 +5135,9 @@ void qla24xx_create_new_sess(struct scsi_qla_host *vha, struct qla_work_evt *e)
5135 if (dfcp) 5135 if (dfcp)
5136 qlt_schedule_sess_for_deletion(tfcp); 5136 qlt_schedule_sess_for_deletion(tfcp);
5137 5137
5138
5139 if (N2N_TOPO(vha->hw))
5140 fcport->flags &= ~FCF_FABRIC_DEVICE;
5141
5142 if (N2N_TOPO(vha->hw)) { 5138 if (N2N_TOPO(vha->hw)) {
5139 fcport->flags &= ~FCF_FABRIC_DEVICE;
5140 fcport->keep_nport_handle = 1;
5143 if (vha->flags.nvme_enabled) { 5141 if (vha->flags.nvme_enabled) {
5144 fcport->fc4f_nvme = 1; 5142 fcport->fc4f_nvme = 1;
5145 fcport->n2n_flag = 1; 5143 fcport->n2n_flag = 1;