]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
RDMA/hns: Update the range of raq_psn field of qp context
authorLijun Ou <oulijun@huawei.com>
Sat, 23 Feb 2019 12:01:23 +0000 (20:01 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Mar 2019 23:59:55 +0000 (20:59 -0300)
According to hip08 UM(User Manual), the raq_psn field size is [23:0].

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

index f1f1b75812f94c8f004ad1709b4553d7144fd0c6..1136763fa12f6fa02f1f7c6bde658d7cc9b4cc77 100644 (file)
@@ -719,8 +719,8 @@ struct hns_roce_v2_qp_context {
 #define        V2_QPC_BYTE_148_RAQ_SYNDROME_S 24
 #define V2_QPC_BYTE_148_RAQ_SYNDROME_M GENMASK(31, 24)
 
-#define        V2_QPC_BYTE_152_RAQ_PSN_S 8
-#define V2_QPC_BYTE_152_RAQ_PSN_M GENMASK(31, 8)
+#define        V2_QPC_BYTE_152_RAQ_PSN_S 0
+#define V2_QPC_BYTE_152_RAQ_PSN_M GENMASK(23, 0)
 
 #define        V2_QPC_BYTE_152_RAQ_TRRL_RTY_HEAD_S 24
 #define V2_QPC_BYTE_152_RAQ_TRRL_RTY_HEAD_M GENMASK(31, 24)