diff options
author | Jayamohan Kallickal <jayamohank@gmail.com> | 2013-04-05 23:38:22 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 11:07:55 -0400 |
commit | a8081e346ad3f8bc2449052908095c2675a9996f (patch) | |
tree | 25e8a2afa808c5ddc762ff7e2b6cd33dc83e8e2e /drivers/scsi/be2iscsi/be_cmds.h | |
parent | 0283fbb18c873993c606a6c9660d6ac78493b37a (diff) |
[SCSI] be2iscsi: Fix returning Failure when MBX fails with Insufficient buffer error
When MBX command fails with insufficent buffer, check for the
response lenght returned. Return success if response length
is non-zero value which indicates valid data.
Signed-off-by: Minh Tran <minhduc.tran@emulex.com>
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_cmds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h index 0f8c920b88c4..a338625868e5 100644 --- a/drivers/scsi/be2iscsi/be_cmds.h +++ b/drivers/scsi/be2iscsi/be_cmds.h | |||
@@ -52,6 +52,10 @@ struct be_mcc_wrb { | |||
52 | 52 | ||
53 | /* Completion Status */ | 53 | /* Completion Status */ |
54 | #define MCC_STATUS_SUCCESS 0x0 | 54 | #define MCC_STATUS_SUCCESS 0x0 |
55 | #define MCC_STATUS_FAILED 0x1 | ||
56 | #define MCC_STATUS_ILLEGAL_REQUEST 0x2 | ||
57 | #define MCC_STATUS_ILLEGAL_FIELD 0x3 | ||
58 | #define MCC_STATUS_INSUFFICIENT_BUFFER 0x4 | ||
55 | 59 | ||
56 | #define CQE_STATUS_COMPL_MASK 0xFFFF | 60 | #define CQE_STATUS_COMPL_MASK 0xFFFF |
57 | #define CQE_STATUS_COMPL_SHIFT 0 /* bits 0 - 15 */ | 61 | #define CQE_STATUS_COMPL_SHIFT 0 /* bits 0 - 15 */ |