IB/cma: Allow XRC INI QPs to set their local ACK timeout
[sfrench/cifs-2.6.git] / drivers / infiniband / core / cma.c
index 27a00ce2e10120be29a5081b9226d7747dba23a1..288ff0735875f4bf10751154e5dc7838cbb444ed 100644 (file)
@@ -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);