Commit 38101b43 authored by wenglianfa's avatar wenglianfa Committed by Chengchang Tang
Browse files

RDMA/hns: Fix creating GSI QP in non-extended SGE QP bank

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB71IG



----------------------------------------------------------------------

According to the IB protocol, the qp_num of the GSI QP must
be set to 1. Therefore, the QP must be created in BANK 1.

Currently, only QPs in BANK 0 and 6 can use extended SGEs,
but the GSI QP in bank 1 also need to use extended SGEs.
To fix it, the restriction is changed to allow QPs in BANK
1 and BANK 6 to use extended SGEs.

Fixes: 209f4040 ("RDMA/hns: Fix RoCEE hang when multiple QP banks use EXT_SGE EXT_SGE")
Signed-off-by: default avatarwenglianfa <wenglianfa@huawei.com>
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent c949b128
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@
#define VALID_CQ_BANK_MASK_DEFAULT 0xF
#define VALID_CQ_BANK_MASK_LIMIT 0x9

#define VALID_EXT_SGE_QP_BANK_MASK_LIMIT 0x41
#define VALID_EXT_SGE_QP_BANK_MASK_LIMIT 0x42

#define HNS_ROCE_MAX_CQ_COUNT 0xFFFF
#define HNS_ROCE_MAX_CQ_PERIOD 0xFFFF