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:07 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 10:23:48 -0400
commitcb5172eafd9ffdab6bb7b1eec628ea706d5817c8 (patch)
tree9e87cd6a91ade79cf24bed529bc2702157391580 /drivers/scsi/lpfc/lpfc_hbadisc.c
parent999d813f227435c35b44362ee82211a1458844fc (diff)
[SCSI] lpfc 8.3.11: SLI4 Improvements
- Correct all SLI4 code to work on big endian systems. - Move read of sli4 params earlier so returned values are used correctly. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 362730b6dd85..7c4f389a2f67 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -1622,7 +1622,9 @@ lpfc_sli4_fcf_rec_mbox_parse(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq,
1622 new_fcf_record = (struct fcf_record *)(virt_addr + 1622 new_fcf_record = (struct fcf_record *)(virt_addr +
1623 sizeof(struct lpfc_mbx_read_fcf_tbl)); 1623 sizeof(struct lpfc_mbx_read_fcf_tbl));
1624 lpfc_sli_pcimem_bcopy(new_fcf_record, new_fcf_record, 1624 lpfc_sli_pcimem_bcopy(new_fcf_record, new_fcf_record,
1625 sizeof(struct fcf_record)); 1625 offsetof(struct fcf_record, vlan_bitmap));
1626 new_fcf_record->word137 = le32_to_cpu(new_fcf_record->word137);
1627 new_fcf_record->word138 = le32_to_cpu(new_fcf_record->word138);
1626 1628
1627 return new_fcf_record; 1629 return new_fcf_record;
1628} 1630}