提交 e392c964 编写于 作者: L Lijun Ou 提交者: Xie XiuQi

RDMA/hns: Delete some unnessary parameters

driver inclusion
category: cleanup
bugzilla: NA
CVE: NA

Because it doesn't configure the qp's current state and the
new state for issuing cmd of modifying qp. As a result, it
delete this unncessary parameters.

Feature or Bugfix:Bugfix
Signed-off-by: NLijun Ou <oulijun@huawei.com>
Reviewed-by: Nliweihang <liweihang@hisilicon.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 fa46710f
......@@ -3789,8 +3789,6 @@ static void hns_roce_v2_clear_hem(struct hns_roce_dev *hr_dev,
}
static int hns_roce_v2_qp_modify(struct hns_roce_dev *hr_dev,
enum ib_qp_state cur_state,
enum ib_qp_state new_state,
struct hns_roce_v2_qp_context *context,
struct hns_roce_qp *hr_qp)
{
......@@ -5250,10 +5248,7 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
V2_QPC_BYTE_60_QP_ST_S, 0);
/* SW pass context to HW */
ret = hns_roce_v2_qp_modify(hr_dev,
to_hns_roce_qp_st(cur_state),
to_hns_roce_qp_st(new_state),
context, hr_qp);
ret = hns_roce_v2_qp_modify(hr_dev, context, hr_qp);
if (ret) {
dev_err(dev, "modify qp(0x%x) from state %d to state %d failed, ret = %d\n",
ibqp->qp_num, to_hns_roce_qp_st(cur_state),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册