diff options
| author | Weihang Li <[email protected]> | 2021-08-26 21:37:33 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-08-26 12:12:20 -0300 |
| commit | ab5cbb9d287ce72bd4bd6efea112f87ca34caa44 (patch) | |
| tree | ea071c5c86d2309178fc78ef0ebbe2d0e6f4d9f9 | |
| parent | fe164fc8d7b246987c54841e0d4e929a72d837e8 (diff) | |
RDMA/hns: Remove RST2RST error prints for hw v1
There is no need to prints error for hw_v1.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Wenpeng Liang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
| -rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_qp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c index bddc952a4047..d45beeda1d81 100644 --- a/drivers/infiniband/hw/hns/hns_roce_qp.c +++ b/drivers/infiniband/hw/hns/hns_roce_qp.c @@ -1302,17 +1302,8 @@ int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, if (ret) goto out; - if (cur_state == new_state && cur_state == IB_QPS_RESET) { - if (hr_dev->hw_rev == HNS_ROCE_HW_VER1) { - ret = -EPERM; - ibdev_err(&hr_dev->ib_dev, - "RST2RST state is not supported\n"); - } else { - ret = 0; - } - + if (cur_state == new_state && cur_state == IB_QPS_RESET) goto out; - } ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, new_state); |