diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 1b2771ac15f2..e8689cabe5f7 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -1699,9 +1699,8 @@ lpfc_init_vpi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) | |||
1699 | lpfc_initial_fdisc(vport); | 1699 | lpfc_initial_fdisc(vport); |
1700 | else { | 1700 | else { |
1701 | lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); | 1701 | lpfc_vport_set_state(vport, FC_VPORT_NO_FABRIC_SUPP); |
1702 | lpfc_printf_vlog(vport, KERN_ERR, | 1702 | lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS, |
1703 | LOG_ELS, | 1703 | "2606 No NPIV Fabric support\n"); |
1704 | "2606 No NPIV Fabric support\n"); | ||
1705 | } | 1704 | } |
1706 | return; | 1705 | return; |
1707 | } | 1706 | } |
@@ -1901,7 +1900,10 @@ lpfc_mbx_process_link_up(struct lpfc_hba *phba, READ_LA_VAR *la) | |||
1901 | if (phba->fc_topology == TOPOLOGY_LOOP) { | 1900 | if (phba->fc_topology == TOPOLOGY_LOOP) { |
1902 | phba->sli3_options &= ~LPFC_SLI3_NPIV_ENABLED; | 1901 | phba->sli3_options &= ~LPFC_SLI3_NPIV_ENABLED; |
1903 | 1902 | ||
1904 | if (phba->cfg_enable_npiv) | 1903 | /* if npiv is enabled and this adapter supports npiv log |
1904 | * a message that npiv is not supported in this topology | ||
1905 | */ | ||
1906 | if (phba->cfg_enable_npiv && phba->max_vpi) | ||
1905 | lpfc_printf_log(phba, KERN_ERR, LOG_LINK_EVENT, | 1907 | lpfc_printf_log(phba, KERN_ERR, LOG_LINK_EVENT, |
1906 | "1309 Link Up Event npiv not supported in loop " | 1908 | "1309 Link Up Event npiv not supported in loop " |
1907 | "topology\n"); | 1909 | "topology\n"); |
@@ -3118,7 +3120,7 @@ lpfc_no_rpi(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
3118 | struct lpfc_sli *psli; | 3120 | struct lpfc_sli *psli; |
3119 | struct lpfc_sli_ring *pring; | 3121 | struct lpfc_sli_ring *pring; |
3120 | struct lpfc_iocbq *iocb, *next_iocb; | 3122 | struct lpfc_iocbq *iocb, *next_iocb; |
3121 | uint32_t rpi, i; | 3123 | uint32_t i; |
3122 | 3124 | ||
3123 | lpfc_fabric_abort_nport(ndlp); | 3125 | lpfc_fabric_abort_nport(ndlp); |
3124 | 3126 | ||
@@ -3127,7 +3129,6 @@ lpfc_no_rpi(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
3127 | * by firmware with a no rpi error. | 3129 | * by firmware with a no rpi error. |
3128 | */ | 3130 | */ |
3129 | psli = &phba->sli; | 3131 | psli = &phba->sli; |
3130 | rpi = ndlp->nlp_rpi; | ||
3131 | if (ndlp->nlp_flag & NLP_RPI_VALID) { | 3132 | if (ndlp->nlp_flag & NLP_RPI_VALID) { |
3132 | /* Now process each ring */ | 3133 | /* Now process each ring */ |
3133 | for (i = 0; i < psli->num_rings; i++) { | 3134 | for (i = 0; i < psli->num_rings; i++) { |