Skip to content

Commit fe164fc

Browse files
Wenpeng Liangjgunthorpe
authored andcommitted
RDMA/hns: Remove dqpn filling when modify qp from Init to Init
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/[email protected] Signed-off-by: Wenpeng Liang <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent d2e0ccf commit fe164fc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4143,8 +4143,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp,
41434143
struct hns_roce_v2_qp_context *context,
41444144
struct hns_roce_v2_qp_context *qpc_mask)
41454145
{
4146-
struct hns_roce_qp *hr_qp = to_hr_qp(ibqp);
4147-
41484146
/*
41494147
* In v2 engine, software pass context and context mask to hardware
41504148
* when modifying qp. If software need modify some fields in context,
@@ -4169,11 +4167,6 @@ static void modify_qp_init_to_init(struct ib_qp *ibqp,
41694167
hr_reg_write(context, QPC_SRQN, to_hr_srq(ibqp->srq)->srqn);
41704168
hr_reg_clear(qpc_mask, QPC_SRQN);
41714169
}
4172-
4173-
if (attr_mask & IB_QP_DEST_QPN) {
4174-
hr_reg_write(context, QPC_DQPN, hr_qp->qpn);
4175-
hr_reg_clear(qpc_mask, QPC_DQPN);
4176-
}
41774170
}
41784171

41794172
static int config_qp_rq_buf(struct hns_roce_dev *hr_dev,

0 commit comments

Comments
 (0)