]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/hns: Rename the idx field of db
authoroulijun <oulijun@huawei.com>
Tue, 22 May 2018 12:47:16 +0000 (20:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
The lower 15 bit of paramter of db structure means different
meanings when db type is sq, rq and srq.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h

index e0ab672e1c0a6b9c8377b7f98ddaf259fb0821de..a25c3daaff209714ebf880182fd9e4c3a5ee002d 100644 (file)
@@ -480,8 +480,8 @@ static int hns_roce_v2_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
                               V2_DB_BYTE_4_TAG_S, qp->doorbell_qpn);
                roce_set_field(sq_db.byte_4, V2_DB_BYTE_4_CMD_M,
                               V2_DB_BYTE_4_CMD_S, HNS_ROCE_V2_SQ_DB);
-               roce_set_field(sq_db.parameter, V2_DB_PARAMETER_CONS_IDX_M,
-                              V2_DB_PARAMETER_CONS_IDX_S,
+               roce_set_field(sq_db.parameter, V2_DB_PARAMETER_IDX_M,
+                              V2_DB_PARAMETER_IDX_S,
                               qp->sq.head & ((qp->sq.wqe_cnt << 1) - 1));
                roce_set_field(sq_db.parameter, V2_DB_PARAMETER_SL_M,
                               V2_DB_PARAMETER_SL_S, qp->sl);
index 182b6726f7838fc83d407eee7d4444fbddf6699d..983c0be2afd0c97de090ffc2e6af879cad97c459 100644 (file)
@@ -897,8 +897,8 @@ struct hns_roce_v2_mpt_entry {
 #define        V2_DB_BYTE_4_CMD_S 24
 #define V2_DB_BYTE_4_CMD_M GENMASK(27, 24)
 
-#define V2_DB_PARAMETER_CONS_IDX_S 0
-#define V2_DB_PARAMETER_CONS_IDX_M GENMASK(15, 0)
+#define V2_DB_PARAMETER_IDX_S 0
+#define V2_DB_PARAMETER_IDX_M GENMASK(15, 0)
 
 #define V2_DB_PARAMETER_SL_S 16
 #define V2_DB_PARAMETER_SL_M GENMASK(18, 16)