From e392c96487a487bfaaef85a58cbb6ea04b2078d5 Mon Sep 17 00:00:00 2001 From: Lijun Ou Date: Thu, 12 Sep 2019 17:15:17 +0800 Subject: [PATCH] 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: Lijun Ou Reviewed-by: liweihang Reviewed-by: liuyixian Reviewed-by: Yang Yingliang Signed-off-by: Yang Yingliang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index f84a9cc85d2a..7616d677f288 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -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), -- GitLab