diff options
author | Jayamohan Kallickal <jayamohan.kallickal@emulex.com> | 2011-03-25 17:24:01 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-04-15 17:46:17 -0400 |
commit | 1390b01b26300d42662e436d8f1d307c4e0903c7 (patch) | |
tree | 2cbee45bd5f4b9371aec75a5309d845720e36aec | |
parent | 0b1d3cbf51f75eaaabdb904f02362368487e2aa7 (diff) |
[SCSI] be2iscsi: Fix for proper setting of FW
There was a bug in setting up type and dmsg for FW
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 91b354daf94b..d83413658a9d 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -4020,12 +4020,17 @@ static int beiscsi_mtask(struct iscsi_task *task) | |||
4020 | hwi_write_buffer(pwrb, task); | 4020 | hwi_write_buffer(pwrb, task); |
4021 | break; | 4021 | break; |
4022 | case ISCSI_OP_NOOP_OUT: | 4022 | case ISCSI_OP_NOOP_OUT: |
4023 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, | 4023 | if (task->hdr->ttt != ISCSI_RESERVED_TAG) { |
4024 | INI_RD_CMD); | 4024 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, |
4025 | if (task->hdr->ttt == ISCSI_RESERVED_TAG) | 4025 | TGT_DM_CMD); |
4026 | AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, | ||
4027 | pwrb, 0); | ||
4026 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); | 4028 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); |
4027 | else | 4029 | } else { |
4030 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, | ||
4031 | INI_RD_CMD); | ||
4028 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1); | 4032 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1); |
4033 | } | ||
4029 | hwi_write_buffer(pwrb, task); | 4034 | hwi_write_buffer(pwrb, task); |
4030 | break; | 4035 | break; |
4031 | case ISCSI_OP_TEXT: | 4036 | case ISCSI_OP_TEXT: |