[SCSI] be2iscsi: fix chip cleanup
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Fri, 29 Apr 2011 19:30:07 +0000 (14:30 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 21:34:41 +0000 (16:34 -0500)
This patch fixes a bug where proper queue id's were not passed to
chip for cleanup.

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_mgmt.c

index 65a402b..44762cf 100644 (file)
@@ -202,8 +202,8 @@ int mgmt_epfw_cleanup(struct beiscsi_hba *phba, unsigned short chute)
                           OPCODE_COMMON_ISCSI_CLEANUP, sizeof(*req));
 
        req->chute = chute;
-       req->hdr_ring_id = 0;
-       req->data_ring_id = 0;
+       req->hdr_ring_id = cpu_to_le16(HWI_GET_DEF_HDRQ_ID(phba));
+       req->data_ring_id = cpu_to_le16(HWI_GET_DEF_BUFQ_ID(phba));
 
        status =  be_mcc_notify_wait(phba);
        if (status)