Patch "IB/cma: Allow XRC INI QPs to set their local ACK timeout" has been added to the 5.17-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    IB/cma: Allow XRC INI QPs to set their local ACK timeout

to the 5.17-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ib-cma-allow-xrc-ini-qps-to-set-their-local-ack-time.patch
and it can be found in the queue-5.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a472aff7e3f17583cdcb47934e1fe5c2f9877cda
Author: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
Date:   Wed Feb 9 16:39:35 2022 +0100

    IB/cma: Allow XRC INI QPs to set their local ACK timeout
    
    [ Upstream commit 748663c8ccf6b2e5a800de19127c2cc1c4423fd2 ]
    
    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@xxxxxxxxxx
    Signed-off-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
    Suggested-by: Avneesh Pant <avneesh.pant@xxxxxxxxxx>
    Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>
    Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 50c53409ceb6..fabca5e51e3d 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2642,7 +2642,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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux