On 24/12/2015 16:39, Christoph Hellwig wrote:
> This exposes the send WR flags supported by uverbs as part of the uapi
> headers.  It follows the same scheme as the WR opcodes.
> 
> Signed-off-by: Christoph Hellwig <h...@lst.de>
> ---
>  drivers/infiniband/hw/mlx5/mlx5_ib.h |  6 +++---
>  include/rdma/ib_verbs.h              | 14 ++++++--------
>  include/uapi/rdma/ib_verbs.h         |  9 +++++++++
>  3 files changed, 18 insertions(+), 11 deletions(-)
> 

> diff --git a/include/uapi/rdma/ib_verbs.h b/include/uapi/rdma/ib_verbs.h
> index 330175e..3be3152 100644
> --- a/include/uapi/rdma/ib_verbs.h
> +++ b/include/uapi/rdma/ib_verbs.h
> @@ -20,4 +20,13 @@ enum ib_uverbs_wr_opcode {
>       IB_UVERBS_WR_END                        = 9,
>  };
>  
> +enum ib_uverbs_send_flags {
> +     IB_UVERBS_SEND_FENCE                    = (1 << 0),
> +     IB_UVERBS_SEND_SIGNALED                 = (1 << 1),
> +     IB_UVERBS_SEND_SOLICITED                = (1 << 2),
> +     IB_UVERBS_SEND_INLINE                   = (1 << 3),
> +     IB_UVERBS_SEND_IP_CSUM                  = (1 << 4),
> +     IB_UVERBS_SEND_END                      = (1 << 5),

Do you think we need a check in ib_uverbs_post_send to see only 
user flags are passed? I think it would be safer.

Other than that,
Reviewed-by: Haggai Eran <hagg...@mellanox.com>


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to