diff options
author | John Soni Jose <sony.john-n@emulex.com> | 2012-08-20 13:29:58 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-14 12:59:26 -0400 |
commit | afd96fa45bd251daea43d3645561d3806a070ee2 (patch) | |
tree | 5ac310599c05e6e27ceeb64c11da4c05948a2649 /drivers/scsi/be2iscsi | |
parent | c66c013ffa10bf0a1eb888a276ae2db6fd9dcc1c (diff) |
[SCSI] be2iscsi: Removing the iscsi_data_pdu setting.
The setting of iscsi_data_pdu is not required anymore,
as this was required for BE1 adapters only. The BE1 adapter
were not supported in any previous versions of the kernel.
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 0b1d99c99fd2..2cdae0833996 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -3981,15 +3981,6 @@ static int beiscsi_iotask(struct iscsi_task *task, struct scatterlist *sg, | |||
3981 | io_task->bhs_len = sizeof(struct be_cmd_bhs); | 3981 | io_task->bhs_len = sizeof(struct be_cmd_bhs); |
3982 | 3982 | ||
3983 | if (writedir) { | 3983 | if (writedir) { |
3984 | memset(&io_task->cmd_bhs->iscsi_data_pdu, 0, 48); | ||
3985 | AMAP_SET_BITS(struct amap_pdu_data_out, itt, | ||
3986 | &io_task->cmd_bhs->iscsi_data_pdu, | ||
3987 | (unsigned int)io_task->cmd_bhs->iscsi_hdr.itt); | ||
3988 | AMAP_SET_BITS(struct amap_pdu_data_out, opcode, | ||
3989 | &io_task->cmd_bhs->iscsi_data_pdu, | ||
3990 | ISCSI_OPCODE_SCSI_DATA_OUT); | ||
3991 | AMAP_SET_BITS(struct amap_pdu_data_out, final_bit, | ||
3992 | &io_task->cmd_bhs->iscsi_data_pdu, 1); | ||
3993 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, | 3984 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, |
3994 | INI_WR_CMD); | 3985 | INI_WR_CMD); |
3995 | AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1); | 3986 | AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1); |
@@ -3998,9 +3989,6 @@ static int beiscsi_iotask(struct iscsi_task *task, struct scatterlist *sg, | |||
3998 | INI_RD_CMD); | 3989 | INI_RD_CMD); |
3999 | AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); | 3990 | AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); |
4000 | } | 3991 | } |
4001 | memcpy(&io_task->cmd_bhs->iscsi_data_pdu. | ||
4002 | dw[offsetof(struct amap_pdu_data_out, lun) / 32], | ||
4003 | &io_task->cmd_bhs->iscsi_hdr.lun, sizeof(struct scsi_lun)); | ||
4004 | 3992 | ||
4005 | AMAP_SET_BITS(struct amap_iscsi_wrb, lun, pwrb, | 3993 | AMAP_SET_BITS(struct amap_iscsi_wrb, lun, pwrb, |
4006 | cpu_to_be16(*(unsigned short *) | 3994 | cpu_to_be16(*(unsigned short *) |