RDMA/hns: Modify the mask of QP number for CQE of hip08
authorLang Cheng <chenglang@huawei.com>
Thu, 26 Mar 2020 03:40:18 +0000 (11:40 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 29 Mar 2020 14:04:21 +0000 (11:04 -0300)
The hip08 supports up to 1M QPs, so the qpn mask of cqe should be
modified.

Link: https://lore.kernel.org/r/1585194018-4381-4-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.h

index c74bf3cdc9b166e50ed5a3ac3da6d12b51eb0bf2..82dd9f6f4845afd252042aae77240717c907ee3b 100644 (file)
@@ -162,7 +162,7 @@ enum {
 
 #define        GID_LEN_V2                              16
 
-#define HNS_ROCE_V2_CQE_QPN_MASK               0x3ffff
+#define HNS_ROCE_V2_CQE_QPN_MASK               0xfffff
 
 enum {
        HNS_ROCE_V2_WQE_OP_SEND                         = 0x0,