aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2010-03-15 11:24:56 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 10:23:47 -0400
commit999d813f227435c35b44362ee82211a1458844fc (patch)
treeba5c1ab8169b8156a59b6484cd032ce3b873dfa8 /drivers/scsi/lpfc/lpfc_init.c
parent65c054f235fda2d545ecd2a7948906a3cf0c1f39 (diff)
[SCSI] lpfc 8.3.11: FCF failover improvements
FCF failover improvements - Add random FCF failover when there are multiple FCFs available. - Prevent FCF log messages from being displayed for FC adapters. - Separate the New FCF and Modified FCF log messages. 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_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 774663e8e1fe..25ee8cc6ab7a 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -3304,11 +3304,20 @@ lpfc_sli4_async_fcoe_evt(struct lpfc_hba *phba,
3304 switch (event_type) { 3304 switch (event_type) {
3305 case LPFC_FCOE_EVENT_TYPE_NEW_FCF: 3305 case LPFC_FCOE_EVENT_TYPE_NEW_FCF:
3306 case LPFC_FCOE_EVENT_TYPE_FCF_PARAM_MOD: 3306 case LPFC_FCOE_EVENT_TYPE_FCF_PARAM_MOD:
3307 lpfc_printf_log(phba, KERN_ERR, LOG_FIP | LOG_DISCOVERY, 3307 if (event_type == LPFC_FCOE_EVENT_TYPE_NEW_FCF)
3308 "2546 New FCF found/FCF parameter modified event: " 3308 lpfc_printf_log(phba, KERN_ERR, LOG_FIP |
3309 "evt_tag:x%x, fcf_index:x%x\n", 3309 LOG_DISCOVERY,
3310 acqe_fcoe->event_tag, acqe_fcoe->index); 3310 "2546 New FCF found event: "
3311 3311 "evt_tag:x%x, fcf_index:x%x\n",
3312 acqe_fcoe->event_tag,
3313 acqe_fcoe->index);
3314 else
3315 lpfc_printf_log(phba, KERN_WARNING, LOG_FIP |
3316 LOG_DISCOVERY,
3317 "2788 FCF parameter modified event: "
3318 "evt_tag:x%x, fcf_index:x%x\n",
3319 acqe_fcoe->event_tag,
3320 acqe_fcoe->index);
3312 spin_lock_irq(&phba->hbalock); 3321 spin_lock_irq(&phba->hbalock);
3313 if ((phba->fcf.fcf_flag & FCF_SCAN_DONE) || 3322 if ((phba->fcf.fcf_flag & FCF_SCAN_DONE) ||
3314 (phba->hba_flag & FCF_DISC_INPROGRESS)) { 3323 (phba->hba_flag & FCF_DISC_INPROGRESS)) {