RE: [PATCH 2/4] IB/mlx4: add Raw Packet QP support

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

 



> +enum {
> +	MLX4_RAW_QP_MTU		= 7,

Is there any special meaning for MTU 7 that should be standardized in ib_verbs.h?

In other places, the code uses IB_MTU_4096 (5):

> @@ -1042,6 +1054,8 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
> 
>  	if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI)
>  		context->mtu_msgmax = (IB_MTU_4096 << 5) | 11;
> +	else if (ibqp->qp_type == IB_QPT_RAW_PACKET)
> +		context->mtu_msgmax = (MLX4_RAW_QP_MTU << 5) | MLX4_RAW_QP_MSGMAX;
>  	else if (ibqp->qp_type == IB_QPT_UD) {
>  		if (qp->flags & MLX4_IB_QP_LSO)
>  			context->mtu_msgmax = (IB_MTU_4096 << 5) |
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux