]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
RDS: IB: Change the proxy qp's path_mtu to IB_MTU_256
authorAvinash Repaka <avinash.repaka@oracle.com>
Tue, 26 Sep 2017 21:20:17 +0000 (14:20 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 6 Oct 2017 03:20:59 +0000 (20:20 -0700)
The path_mtu of proxy qp of RDS is currently set to IB_MTU_4096, but it
doesn't have much relevance, since the proxy qp is used only for
registration and invalidation of MRs. For the proxy qp to work in most
environments, this patch changes the path_mtu to IB_MTU_256.

Orabug: 26864694

Suggested-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Reviewed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
net/rds/ib_cm.c

index f2d409496073776fdf3c7fe9b9c6a38cb4d61327..5e476d971bf23496adc7f8574e9bb82596d9a07f 100644 (file)
@@ -1537,7 +1537,7 @@ int rds_ib_setup_fastreg(struct rds_ib_device *rds_ibdev)
        /* Use modify_qp verb to change the state from INIT to RTR */
        memset(&qp_attr, 0, sizeof(qp_attr));
        qp_attr.qp_state        = IB_QPS_RTR;
-       qp_attr.path_mtu        = IB_MTU_4096;
+       qp_attr.path_mtu        = IB_MTU_256;
        qp_attr.dest_qp_num     = rds_ibdev->fastreg_qp->qp_num;
        qp_attr.rq_psn          = 1;
        qp_attr.ah_attr.ah_flags        = IB_AH_GRH;