提交 ee15bd2d 编写于 作者: E Eddie Wai 提交者: James Bottomley

[SCSI] bnx2i: Fixed the 32-bit swapping of the LUN field for nopouts for 5771X

Fixed a bug where the 64-bit LUN field for nopouts were 32-bit swapped.
This only pertains to 5771X devices.
Signed-off-by: NEddie Wai <eddie.wai@broadcom.com>
Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 ec8933b4
...@@ -498,10 +498,10 @@ int bnx2i_send_iscsi_nopout(struct bnx2i_conn *bnx2i_conn, ...@@ -498,10 +498,10 @@ int bnx2i_send_iscsi_nopout(struct bnx2i_conn *bnx2i_conn,
memcpy(nopout_wqe->lun, nopout_hdr->lun, 8); memcpy(nopout_wqe->lun, nopout_hdr->lun, 8);
if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) {
u32 tmp = nopout_hdr->lun[0]; u32 tmp = nopout_wqe->lun[0];
/* 57710 requires LUN field to be swapped */ /* 57710 requires LUN field to be swapped */
nopout_hdr->lun[0] = nopout_hdr->lun[1]; nopout_wqe->lun[0] = nopout_wqe->lun[1];
nopout_hdr->lun[1] = tmp; nopout_wqe->lun[1] = tmp;
} }
nopout_wqe->itt = ((u16)task->itt | nopout_wqe->itt = ((u16)task->itt |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册