projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd4a70b
)
RDMA/hns: Remove redundant judgment of qp_type
author
Weihang Li
<liweihang@huawei.com>
Fri, 20 Mar 2020 03:23:42 +0000
(11:23 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Thu, 26 Mar 2020 19:52:29 +0000
(16:52 -0300)
Type of qp has been checked in check_send_valid(), so this judgment should
be removed.
Link:
https://lore.kernel.org/r/1584674622-52773-11-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 31b6146bf97509e371499911bd0fc16691417247..7eceeea9ccea811d413a61661e459a63f6e93ae8 100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@
-583,13
+583,6
@@
static int hns_roce_v2_post_send(struct ib_qp *ibqp,
ret = set_ud_wqe(qp, wr, wqe, &sge_idx, owner_bit);
else if (ibqp->qp_type == IB_QPT_RC)
ret = set_rc_wqe(qp, wr, wqe, &sge_idx, owner_bit);
- else {
- ibdev_err(ibdev, "Illegal qp_type(0x%x)\n",
- ibqp->qp_type);
- spin_unlock_irqrestore(&qp->sq.lock, flags);
- *bad_wr = wr;
- return -EOPNOTSUPP;
- }
if (ret) {
*bad_wr = wr;