projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe164fc
)
RDMA/hns: Remove RST2RST error prints for hw v1
author
Weihang Li
<liweihang@huawei.com>
Thu, 26 Aug 2021 13:37:33 +0000
(21:37 +0800)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Thu, 26 Aug 2021 15:12:20 +0000
(12:12 -0300)
There is no need to prints error for hw_v1.
Link:
https://lore.kernel.org/r/1629985056-57004-5-git-send-email-liangwenpeng@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_qp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_qp.c
b/drivers/infiniband/hw/hns/hns_roce_qp.c
index bddc952a4047847c7e51d618b076dc29d8835a93..d45beeda1d81be440fa3f8e4b3a1fcac4790c934 100644
(file)
--- 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);