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:
3810c1a
)
IB/cma: Allow XRC INI QPs to set their local ACK timeout
author
Håkon Bugge
<haakon.bugge@oracle.com>
Wed, 9 Feb 2022 15:39:35 +0000
(16:39 +0100)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Thu, 17 Feb 2022 15:51:12 +0000
(11:51 -0400)
XRC INI QPs should be able to adjust their local ACK timeout.
Fixes:
2c1619edef61
("IB/cma: Define option to set ack timeout and pack tos_set")
Link:
https://lore.kernel.org/r/1644421175-31943-1-git-send-email-haakon.bugge@oracle.com
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Suggested-by: Avneesh Pant <avneesh.pant@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/core/cma.c
b/drivers/infiniband/core/cma.c
index 27a00ce2e10120be29a5081b9226d7747dba23a1..288ff0735875f4bf10751154e5dc7838cbb444ed 100644
(file)
--- a/
drivers/infiniband/core/cma.c
+++ b/
drivers/infiniband/core/cma.c
@@
-2640,7
+2640,7
@@
int rdma_set_ack_timeout(struct rdma_cm_id *id, u8 timeout)
{
struct rdma_id_private *id_priv;
- if (id->qp_type != IB_QPT_RC)
+ if (id->qp_type != IB_QPT_RC
&& id->qp_type != IB_QPT_XRC_INI
)
return -EINVAL;
id_priv = container_of(id, struct rdma_id_private, id);