diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index b8e048a467d2..4aed0cffe92f 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -518,7 +518,7 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
518 | * alpa map would take too long otherwise. | 518 | * alpa map would take too long otherwise. |
519 | */ | 519 | */ |
520 | if (phba->alpa_map[0] == 0) { | 520 | if (phba->alpa_map[0] == 0) { |
521 | phba->cfg_discovery_threads = LPFC_MAX_DISC_THREADS; | 521 | vport->cfg_discovery_threads = LPFC_MAX_DISC_THREADS; |
522 | } | 522 | } |
523 | 523 | ||
524 | /* FLOGI failure */ | 524 | /* FLOGI failure */ |
@@ -2640,7 +2640,7 @@ lpfc_els_disc_adisc(struct lpfc_vport *vport) | |||
2640 | sentadisc++; | 2640 | sentadisc++; |
2641 | vport->num_disc_nodes++; | 2641 | vport->num_disc_nodes++; |
2642 | if (vport->num_disc_nodes >= | 2642 | if (vport->num_disc_nodes >= |
2643 | vport->phba->cfg_discovery_threads) { | 2643 | vport->cfg_discovery_threads) { |
2644 | spin_lock_irq(shost->host_lock); | 2644 | spin_lock_irq(shost->host_lock); |
2645 | vport->fc_flag |= FC_NLP_MORE; | 2645 | vport->fc_flag |= FC_NLP_MORE; |
2646 | spin_unlock_irq(shost->host_lock); | 2646 | spin_unlock_irq(shost->host_lock); |
@@ -2675,7 +2675,7 @@ lpfc_els_disc_plogi(struct lpfc_vport *vport) | |||
2675 | sentplogi++; | 2675 | sentplogi++; |
2676 | vport->num_disc_nodes++; | 2676 | vport->num_disc_nodes++; |
2677 | if (vport->num_disc_nodes >= | 2677 | if (vport->num_disc_nodes >= |
2678 | vport->phba->cfg_discovery_threads) { | 2678 | vport->cfg_discovery_threads) { |
2679 | spin_lock_irq(shost->host_lock); | 2679 | spin_lock_irq(shost->host_lock); |
2680 | vport->fc_flag |= FC_NLP_MORE; | 2680 | vport->fc_flag |= FC_NLP_MORE; |
2681 | spin_unlock_irq(shost->host_lock); | 2681 | spin_unlock_irq(shost->host_lock); |
@@ -2841,7 +2841,7 @@ lpfc_els_rcv_rscn(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb, | |||
2841 | * just ACC and ignore it. | 2841 | * just ACC and ignore it. |
2842 | */ | 2842 | */ |
2843 | if ((phba->sli3_options & LPFC_SLI3_NPIV_ENABLED) && | 2843 | if ((phba->sli3_options & LPFC_SLI3_NPIV_ENABLED) && |
2844 | !(phba->cfg_peer_port_login)) { | 2844 | !(vport->cfg_peer_port_login)) { |
2845 | i = payload_len; | 2845 | i = payload_len; |
2846 | datap = lp; | 2846 | datap = lp; |
2847 | while (i > 0) { | 2847 | while (i > 0) { |
@@ -4170,7 +4170,7 @@ lpfc_do_scr_ns_plogi(struct lpfc_hba *phba, struct lpfc_vport *vport) | |||
4170 | return; | 4170 | return; |
4171 | } | 4171 | } |
4172 | 4172 | ||
4173 | if (phba->cfg_fdmi_on) { | 4173 | if (vport->cfg_fdmi_on) { |
4174 | ndlp_fdmi = mempool_alloc(phba->nlp_mem_pool, | 4174 | ndlp_fdmi = mempool_alloc(phba->nlp_mem_pool, |
4175 | GFP_KERNEL); | 4175 | GFP_KERNEL); |
4176 | if (ndlp_fdmi) { | 4176 | if (ndlp_fdmi) { |