Re: [PATCH rdma-next v1 4/6] IB/mlx5: Handle type IB_QPT_DRIVER when creating a QP

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

 



On Thu, Dec 28, 2017 at 12:02 AM, Jason Gunthorpe <jgg@xxxxxxxxxxxx> wrote:
> On Wed, Dec 27, 2017 at 11:16:09PM +0200, Or Gerlitz wrote:

>> you added these two flags in the ABI file, but you never use them in downstream
>> MLX5_QP_FLAG_TYPE_DCT
>> MLX5_QP_FLAG_TYPE_DCI
>> patches, something must be wrong here even according to your design

> Hm? they are used here:
>
> +       if (ucmd->flags & MLX5_QP_FLAG_TYPE_DCI)
> +               init_attr->qp_type = MLX5_IB_QPT_DCI;
> +       else
> +               init_attr->qp_type = MLX5_IB_QPT_DCT;
>
> Which is a bad ABI design, check flags explicitly never use else.

Maybe, but when I said that in downstream it is assumed
user-space knows that for mlx5 DCI/DCT equals
IB_QPT_RESERVED3/4 I was wrong, it is derived from the flags.
--
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