diff options
author | James Smart <James.Smart@Emulex.Com> | 2009-05-22 14:52:52 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 12:24:50 -0400 |
commit | 04c684968487eb4f98728363a97b8da48f3bb958 (patch) | |
tree | 33f59839ca26a1904c4e2d2895598f543266feb0 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 4f774513f7b3fe96648b8936f60f835e6ceaa88e (diff) |
[SCSI] lpfc 8.3.2 : Addition of SLI4 Interface - Mailbox handling
The mailbox commands themselves are the same, or very similar to
their SLI3 counterparts. This patch genericizes mailbox command
handling and adds support for the new SLI4 mailbox queue.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 9fe36bf6fd14..2c034a554c88 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -4277,7 +4277,7 @@ lpfc_els_rcv_flogi(struct lpfc_vport *vport, struct lpfc_iocbq *cmdiocb, | |||
4277 | lpfc_init_link(phba, mbox, | 4277 | lpfc_init_link(phba, mbox, |
4278 | phba->cfg_topology, | 4278 | phba->cfg_topology, |
4279 | phba->cfg_link_speed); | 4279 | phba->cfg_link_speed); |
4280 | mbox->mb.un.varInitLnk.lipsr_AL_PA = 0; | 4280 | mbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; |
4281 | mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; | 4281 | mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; |
4282 | mbox->vport = vport; | 4282 | mbox->vport = vport; |
4283 | rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); | 4283 | rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); |
@@ -4426,7 +4426,7 @@ lpfc_els_rsp_rps_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
4426 | uint16_t xri, status; | 4426 | uint16_t xri, status; |
4427 | uint32_t cmdsize; | 4427 | uint32_t cmdsize; |
4428 | 4428 | ||
4429 | mb = &pmb->mb; | 4429 | mb = &pmb->u.mb; |
4430 | 4430 | ||
4431 | ndlp = (struct lpfc_nodelist *) pmb->context2; | 4431 | ndlp = (struct lpfc_nodelist *) pmb->context2; |
4432 | xri = (uint16_t) ((unsigned long)(pmb->context1)); | 4432 | xri = (uint16_t) ((unsigned long)(pmb->context1)); |
@@ -5755,7 +5755,7 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
5755 | struct lpfc_vport *vport = pmb->vport; | 5755 | struct lpfc_vport *vport = pmb->vport; |
5756 | struct Scsi_Host *shost = lpfc_shost_from_vport(vport); | 5756 | struct Scsi_Host *shost = lpfc_shost_from_vport(vport); |
5757 | struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) pmb->context2; | 5757 | struct lpfc_nodelist *ndlp = (struct lpfc_nodelist *) pmb->context2; |
5758 | MAILBOX_t *mb = &pmb->mb; | 5758 | MAILBOX_t *mb = &pmb->u.mb; |
5759 | 5759 | ||
5760 | spin_lock_irq(shost->host_lock); | 5760 | spin_lock_irq(shost->host_lock); |
5761 | vport->fc_flag &= ~FC_VPORT_NEEDS_REG_VPI; | 5761 | vport->fc_flag &= ~FC_VPORT_NEEDS_REG_VPI; |