提交 3109c8f6 编写于 作者: W Wenpeng Liang 提交者: Zheng Zengkai

RDMA/hns: Remove dqpn filling when modify qp from Init to Init

mainline inclusion
from mainline-v5.15-rc1
commit fe164fc8
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4QOTS
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=fe164fc8d7b246987c54841e0d4e929a72d837e8

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

According to the IB specification, the destination qpn is allowed to be
filled into the qpc only when the qp transitions from Init to RTR, so this
code is unused.

Link: https://lore.kernel.org/r/1629985056-57004-4-git-send-email-liangwenpeng@huawei.comSigned-off-by: NWenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
sigend-off-by: NGuofeng Yue <yueguofeng@hisilicon.com>
Reviewed-by: NYangyang Li <liyangyang20@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 84129c44
...@@ -4135,8 +4135,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp, ...@@ -4135,8 +4135,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp,
struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *context,
struct hns_roce_v2_qp_context *qpc_mask) struct hns_roce_v2_qp_context *qpc_mask)
{ {
struct hns_roce_qp *hr_qp = to_hr_qp(ibqp);
/* /*
* In v2 engine, software pass context and context mask to hardware * In v2 engine, software pass context and context mask to hardware
* when modifying qp. If software need modify some fields in context, * when modifying qp. If software need modify some fields in context,
...@@ -4161,11 +4159,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp, ...@@ -4161,11 +4159,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp,
hr_reg_write(context, QPC_SRQN, to_hr_srq(ibqp->srq)->srqn); hr_reg_write(context, QPC_SRQN, to_hr_srq(ibqp->srq)->srqn);
hr_reg_clear(qpc_mask, QPC_SRQN); hr_reg_clear(qpc_mask, QPC_SRQN);
} }
if (attr_mask & IB_QP_DEST_QPN) {
hr_reg_write(context, QPC_DQPN, hr_qp->qpn);
hr_reg_clear(qpc_mask, QPC_DQPN);
}
} }
static int config_qp_rq_buf(struct hns_roce_dev *hr_dev, static int config_qp_rq_buf(struct hns_roce_dev *hr_dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册