提交 efe6f114 编写于 作者: Z ZhouJuan

Revert "RDMA/hns: Modify the value of long message loopback slice"

driver inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I7RKQ1

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

This reverts commit 62df4e45.
Signed-off-by: NJuan Zhou <zhoujuan51@h-partners.com>
上级 a1c988d0
...@@ -4849,9 +4849,11 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp, ...@@ -4849,9 +4849,11 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp,
mtu = ib_mtu_enum_to_int(ib_mtu); mtu = ib_mtu_enum_to_int(ib_mtu);
if (WARN_ON(mtu <= 0)) if (WARN_ON(mtu <= 0))
return -EINVAL; return -EINVAL;
#define MIN_LP_MSG_LEN 1024 #define MAX_LP_MSG_LEN 16384
/* mtu * (2 ^ lp_pktn_ini) should be in the range of 1024 to mtu */ /* MTU * (2 ^ LP_PKTN_INI) shouldn't be bigger than 16KB */
lp_pktn_ini = ilog2(max(mtu, MIN_LP_MSG_LEN) / mtu); lp_pktn_ini = ilog2(MAX_LP_MSG_LEN / mtu);
if (WARN_ON(lp_pktn_ini >= 0xF))
return -EINVAL;
if (attr_mask & IB_QP_PATH_MTU) { if (attr_mask & IB_QP_PATH_MTU) {
hr_reg_write(context, QPC_MTU, ib_mtu); hr_reg_write(context, QPC_MTU, ib_mtu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册