Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Quinn Tran and committed by
Martin K. Petersen
f3f1938b 7f2a398d

+4 -4
+2
drivers/scsi/qla2xxx/qla_mbx.c
··· 3897 3897 fcport->dm_login_expire = jiffies + 2*HZ; 3898 3898 fcport->scan_state = QLA_FCPORT_FOUND; 3899 3899 fcport->n2n_flag = 1; 3900 + fcport->keep_nport_handle = 1; 3900 3901 if (vha->flags.nvme_enabled) 3901 3902 fcport->fc4f_nvme = 1; 3902 3903 ··· 4043 4042 fcport->login_retry = vha->hw->login_retry_count; 4044 4043 fcport->plogi_nack_done_deadline = jiffies + HZ; 4045 4044 fcport->scan_state = QLA_FCPORT_FOUND; 4045 + fcport->keep_nport_handle = 1; 4046 4046 fcport->n2n_flag = 1; 4047 4047 fcport->d_id.b.domain = 4048 4048 rptid_entry->u.f2.remote_nport_id[2];
+2 -4
drivers/scsi/qla2xxx/qla_os.c
··· 5135 5135 if (dfcp) 5136 5136 qlt_schedule_sess_for_deletion(tfcp); 5137 5137 5138 - 5139 - if (N2N_TOPO(vha->hw)) 5140 - fcport->flags &= ~FCF_FABRIC_DEVICE; 5141 - 5142 5138 if (N2N_TOPO(vha->hw)) { 5139 + fcport->flags &= ~FCF_FABRIC_DEVICE; 5140 + fcport->keep_nport_handle = 1; 5143 5141 if (vha->flags.nvme_enabled) { 5144 5142 fcport->fc4f_nvme = 1; 5145 5143 fcport->n2n_flag = 1;