[IPOIB, MLX4] Enabling the use of 4K MTU on ipoib.
[mirror/winof/.git] / hw / mlx4 / kernel / bus / ib / qp.c
index 7cb3244..6ab2e28 100644 (file)
@@ -769,7 +769,7 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
 
        if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI ||
            ibqp->qp_type == IB_QPT_UD)
-               context->mtu_msgmax = (IB_MTU_4096 << 5) | 11;
+               context->mtu_msgmax = (IB_MTU_4096 << 5) | 12;
        else if (attr_mask & IB_QP_PATH_MTU) {
                if (attr->path_mtu < IB_MTU_256 || attr->path_mtu > IB_MTU_4096) {
                        printk(KERN_ERR "path MTU (%u) is invalid\n",