Pārlūkot izejas kodu

[SCSI] be2iscsi: fix chip cleanup

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>
Jayamohan Kallickal 14 gadi atpakaļ
vecāks
revīzija
069adc7b06
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      drivers/scsi/be2iscsi/be_mgmt.c

+ 2 - 2
drivers/scsi/be2iscsi/be_mgmt.c

@@ -202,8 +202,8 @@ int mgmt_epfw_cleanup(struct beiscsi_hba *phba, unsigned short chute)
 			   OPCODE_COMMON_ISCSI_CLEANUP, sizeof(*req));
 			   OPCODE_COMMON_ISCSI_CLEANUP, sizeof(*req));
 
 
 	req->chute = chute;
 	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);
 	status =  be_mcc_notify_wait(phba);
 	if (status)
 	if (status)