aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_els.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_els.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 7afc757338de..8db2fb3b45ec 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -1526,7 +1526,6 @@ lpfc_plogi_confirm_nport(struct lpfc_hba *phba, uint32_t *prsp,
1526 memcpy(&ndlp->active_rrqs.xri_bitmap, 1526 memcpy(&ndlp->active_rrqs.xri_bitmap,
1527 &rrq.xri_bitmap, 1527 &rrq.xri_bitmap,
1528 sizeof(ndlp->active_rrqs.xri_bitmap)); 1528 sizeof(ndlp->active_rrqs.xri_bitmap));
1529 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
1530 /* Since we are swapping the ndlp passed in with the new one 1529 /* Since we are swapping the ndlp passed in with the new one
1531 * and the did has already been swapped, copy over the 1530 * and the did has already been swapped, copy over the
1532 * state and names. 1531 * state and names.
@@ -1536,6 +1535,7 @@ lpfc_plogi_confirm_nport(struct lpfc_hba *phba, uint32_t *prsp,
1536 memcpy(&new_ndlp->nlp_nodename, &ndlp->nlp_nodename, 1535 memcpy(&new_ndlp->nlp_nodename, &ndlp->nlp_nodename,
1537 sizeof(struct lpfc_name)); 1536 sizeof(struct lpfc_name));
1538 new_ndlp->nlp_state = ndlp->nlp_state; 1537 new_ndlp->nlp_state = ndlp->nlp_state;
1538 lpfc_nlp_set_state(vport, ndlp, NLP_STE_NPR_NODE);
1539 /* Fix up the rport accordingly */ 1539 /* Fix up the rport accordingly */
1540 rport = ndlp->rport; 1540 rport = ndlp->rport;
1541 if (rport) { 1541 if (rport) {
@@ -7172,7 +7172,7 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
7172 goto out; 7172 goto out;
7173 /* FDISC failed */ 7173 /* FDISC failed */
7174 lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, 7174 lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS,
7175 "0126 FDISC failed. (%d/%d)\n", 7175 "0126 FDISC failed. (x%x/x%x)\n",
7176 irsp->ulpStatus, irsp->un.ulpWord[4]); 7176 irsp->ulpStatus, irsp->un.ulpWord[4]);
7177 goto fdisc_failed; 7177 goto fdisc_failed;
7178 } 7178 }
@@ -7283,6 +7283,7 @@ lpfc_issue_els_fdisc(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
7283 int rc; 7283 int rc;
7284 7284
7285 vport->port_state = LPFC_FDISC; 7285 vport->port_state = LPFC_FDISC;
7286 vport->fc_myDID = 0;
7286 cmdsize = (sizeof(uint32_t) + sizeof(struct serv_parm)); 7287 cmdsize = (sizeof(uint32_t) + sizeof(struct serv_parm));
7287 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did, 7288 elsiocb = lpfc_prep_els_iocb(vport, 1, cmdsize, retry, ndlp, did,
7288 ELS_CMD_FDISC); 7289 ELS_CMD_FDISC);