aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2010-03-15 11:25:44 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 10:23:51 -0400
commit4b40c59eced94eea7f4583ffb0dbc33a5fa92499 (patch)
tree1a60a3f4e931b5a7295b1f2eed2a8d84f5062695 /drivers/scsi/lpfc/lpfc_hbadisc.c
parente2af0d2ed86a2415b0562526601cf2d5cae5a96d (diff)
[SCSI] lpfc 8.3.11: NPIV changes
- Enable NPIV by default. - Added code to handle unsolicited LOGO on physical port. Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 7c4f389a2f67..d2b55f05aa02 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -3016,7 +3016,12 @@ lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
3016 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE); 3016 lpfc_nlp_set_state(vport, ndlp, NLP_STE_UNMAPPED_NODE);
3017 3017
3018 if (vport->port_state == LPFC_FABRIC_CFG_LINK) { 3018 if (vport->port_state == LPFC_FABRIC_CFG_LINK) {
3019 lpfc_start_fdiscs(phba); 3019 /* when physical port receive logo donot start
3020 * vport discovery */
3021 if (!(vport->fc_flag & FC_LOGO_RCVD_DID_CHNG))
3022 lpfc_start_fdiscs(phba);
3023 else
3024 vport->fc_flag &= ~FC_LOGO_RCVD_DID_CHNG ;
3020 lpfc_do_scr_ns_plogi(phba, vport); 3025 lpfc_do_scr_ns_plogi(phba, vport);
3021 } 3026 }
3022 3027