[SCSI] lpfc 8.1.10 : Add support to post events via new FC event interfaces
Add support to post events via new FC event interfaces Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:

committed by
James Bottomley

parent
f14e2e29cd
commit
d2873e4c1e
@@ -340,6 +340,9 @@ lpfc_linkdown(struct lpfc_hba * phba)
|
||||
spin_unlock_irq(phba->host->host_lock);
|
||||
}
|
||||
|
||||
fc_host_post_event(phba->host, fc_get_event_number(),
|
||||
FCH_EVT_LINKDOWN, 0);
|
||||
|
||||
/* Clean up any firmware default rpi's */
|
||||
if ((mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL))) {
|
||||
lpfc_unreg_did(phba, 0xffffffff, mb);
|
||||
@@ -427,6 +430,9 @@ lpfc_linkup(struct lpfc_hba * phba)
|
||||
struct list_head *listp, *node_list[7];
|
||||
int i;
|
||||
|
||||
fc_host_post_event(phba->host, fc_get_event_number(),
|
||||
FCH_EVT_LINKUP, 0);
|
||||
|
||||
spin_lock_irq(phba->host->host_lock);
|
||||
phba->hba_state = LPFC_LINK_UP;
|
||||
phba->fc_flag &= ~(FC_PT2PT | FC_PT2PT_PLOGI | FC_ABORT_DISCOVERY |
|
||||
|
Reference in New Issue
Block a user