[SCSI] be2iscsi: Fix Task Completion Event handling
The completion events returned by adapter differs based on the adapter. This fix checks for the adapter type and process the completion event. 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>
This commit is contained in:

committed by
James Bottomley

vanhempi
acb9693cb0
commit
7313326125
@@ -587,6 +587,20 @@ struct amap_i_t_dpdu_cqe {
|
||||
u8 valid;
|
||||
} __packed;
|
||||
|
||||
struct amap_i_t_dpdu_cqe_v2 {
|
||||
u8 db_addr_hi[32]; /* DWORD 0 */
|
||||
u8 db_addr_lo[32]; /* DWORD 1 */
|
||||
u8 code[6]; /* DWORD 2 */
|
||||
u8 num_cons; /* DWORD 2*/
|
||||
u8 rsvd0[8]; /* DWORD 2 */
|
||||
u8 dpl[17]; /* DWORD 2 */
|
||||
u8 index[16]; /* DWORD 3 */
|
||||
u8 cid[13]; /* DWORD 3 */
|
||||
u8 rsvd1; /* DWORD 3 */
|
||||
u8 final; /* DWORD 3 */
|
||||
u8 valid; /* DWORD 3 */
|
||||
} __packed;
|
||||
|
||||
#define CQE_VALID_MASK 0x80000000
|
||||
#define CQE_CODE_MASK 0x0000003F
|
||||
#define CQE_CID_MASK 0x0000FFC0
|
||||
|
Viittaa uudesa ongelmassa
Block a user