diff mbox series

[for-rc,v2] IB/cma: Allow XRG INI QPs to set their local ACK timeout

Message ID 1644421175-31943-1-git-send-email-haakon.bugge@oracle.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show
Series [for-rc,v2] IB/cma: Allow XRG INI QPs to set their local ACK timeout | expand

Commit Message

Haakon Bugge Feb. 9, 2022, 3:39 p.m. UTC
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")
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Suggested-by: Avneesh Pant <avneesh.pant@oracle.com>

---

v1 -> v2:
   * Removed WARN_ON as suggested by Leon
---
 drivers/infiniband/core/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Feb. 13, 2022, 11:56 a.m. UTC | #1
On Wed, Feb 09, 2022 at 04:39:35PM +0100, Håkon Bugge wrote:
> 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")
> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
> Suggested-by: Avneesh Pant <avneesh.pant@oracle.com>
> 
> ---
> 

Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Haakon Bugge Feb. 17, 2022, 11:29 a.m. UTC | #2
> On 13 Feb 2022, at 12:56, Leon Romanovsky <leon@kernel.org> wrote:
> 
> On Wed, Feb 09, 2022 at 04:39:35PM +0100, Håkon Bugge wrote:
>> 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")
>> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
>> Suggested-by: Avneesh Pant <avneesh.pant@oracle.com>
>> 
>> ---
>> 
> 
> Thanks,
> Reviewed-by: Leon Romanovsky <leonro@nvidia.com>

Thanks Leon. I just saw that we need a s/XRG/XRC/ in $Subject. Shall I send a v3?


Thxs, Håkon
Jason Gunthorpe Feb. 17, 2022, 3:36 p.m. UTC | #3
On Thu, Feb 17, 2022 at 11:29:41AM +0000, Haakon Bugge wrote:
> 
> 
> > On 13 Feb 2022, at 12:56, Leon Romanovsky <leon@kernel.org> wrote:
> > 
> > On Wed, Feb 09, 2022 at 04:39:35PM +0100, Håkon Bugge wrote:
> >> 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")
> >> Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
> >> Suggested-by: Avneesh Pant <avneesh.pant@oracle.com>
> >> 
> >> 
> > 
> > Thanks,
> > Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
> 
> Thanks Leon. I just saw that we need a s/XRG/XRC/ in $Subject. Shall I send a v3?

I will fix it

Jason
Jason Gunthorpe Feb. 17, 2022, 3:53 p.m. UTC | #4
On Wed, Feb 09, 2022 at 04:39:35PM +0100, Håkon Bugge wrote:
> 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")
> 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>
> ---
> 
> v1 -> v2:
>    * Removed WARN_ON as suggested by Leon
> ---
>  drivers/infiniband/core/cma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next, thanks

Jason
diff mbox series

Patch

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 0f5f0d7..7adacd1 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2811,7 +2811,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);