]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/be2iscsi/be_main.c
[SCSI] be2iscsi: Fix connection offload to support Dual Chute.
[karo-tx-linux.git] / drivers / scsi / be2iscsi / be_main.c
index b57e5bd6201885e2199381f927a189dfce81f108..d539b17e4a806ef48a2bd5d58e6e739052fc84e3 100644 (file)
@@ -4585,8 +4585,8 @@ beiscsi_offload_connection(struct beiscsi_conn *beiscsi_conn,
        doorbell |= (pwrb_handle->wrb_index & DB_DEF_PDU_WRB_INDEX_MASK)
                             << DB_DEF_PDU_WRB_INDEX_SHIFT;
        doorbell |= 1 << DB_DEF_PDU_NUM_POSTED_SHIFT;
-
-       iowrite32(doorbell, phba->db_va + DB_TXULP0_OFFSET);
+       iowrite32(doorbell, phba->db_va +
+                 beiscsi_conn->doorbell_offset);
 }
 
 static void beiscsi_parse_pdu(struct iscsi_conn *conn, itt_t itt,
@@ -4811,7 +4811,8 @@ int beiscsi_iotask_v2(struct iscsi_task *task, struct scatterlist *sg,
                     DB_DEF_PDU_WRB_INDEX_MASK) <<
                     DB_DEF_PDU_WRB_INDEX_SHIFT;
        doorbell |= 1 << DB_DEF_PDU_NUM_POSTED_SHIFT;
-       iowrite32(doorbell, phba->db_va + DB_TXULP0_OFFSET);
+       iowrite32(doorbell, phba->db_va +
+                 beiscsi_conn->doorbell_offset);
        return 0;
 }
 
@@ -4866,7 +4867,8 @@ static int beiscsi_iotask(struct iscsi_task *task, struct scatterlist *sg,
                     DB_DEF_PDU_WRB_INDEX_MASK) << DB_DEF_PDU_WRB_INDEX_SHIFT;
        doorbell |= 1 << DB_DEF_PDU_NUM_POSTED_SHIFT;
 
-       iowrite32(doorbell, phba->db_va + DB_TXULP0_OFFSET);
+       iowrite32(doorbell, phba->db_va +
+                 beiscsi_conn->doorbell_offset);
        return 0;
 }
 
@@ -4968,7 +4970,8 @@ static int beiscsi_mtask(struct iscsi_task *task)
        doorbell |= (io_task->pwrb_handle->wrb_index &
                     DB_DEF_PDU_WRB_INDEX_MASK) << DB_DEF_PDU_WRB_INDEX_SHIFT;
        doorbell |= 1 << DB_DEF_PDU_NUM_POSTED_SHIFT;
-       iowrite32(doorbell, phba->db_va + DB_TXULP0_OFFSET);
+       iowrite32(doorbell, phba->db_va +
+                 beiscsi_conn->doorbell_offset);
        return 0;
 }