diff options
author | Haggai Abramovsky <hagaya@mellanox.com> | 2016-01-14 19:12:58 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-01-21 12:01:08 -0500 |
commit | f72300c56c3bedac5fdb22cdc90f6633dc858c84 (patch) | |
tree | 19c88374ce5a680782969d8410c7fa54b2e57feb /drivers/infiniband/hw/mlx5/user.h | |
parent | IB/mlx5: Add CQE version 1 support to user QPs and SRQs (diff) | |
download | linux-dev-f72300c56c3bedac5fdb22cdc90f6633dc858c84.tar.xz linux-dev-f72300c56c3bedac5fdb22cdc90f6633dc858c84.zip |
IB/mlx5: Expose CQE version to user-space
Per user context, work with CQE version that both the user-space
and the kernel support. Report this CQE version via the response of
the alloc_ucontext command.
Signed-off-by: Haggai Abramovsky <hagaya@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/user.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/user.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/user.h b/drivers/infiniband/hw/mlx5/user.h index 5bf0935f0cb5..41f0525e825c 100644 --- a/drivers/infiniband/hw/mlx5/user.h +++ b/drivers/infiniband/hw/mlx5/user.h @@ -69,6 +69,10 @@ struct mlx5_ib_alloc_ucontext_req_v2 { __u32 num_low_latency_uuars; __u32 flags; __u32 comp_mask; + __u8 max_cqe_version; + __u8 reserved0; + __u16 reserved1; + __u32 reserved2; }; enum mlx5_ib_alloc_ucontext_resp_mask { @@ -89,7 +93,9 @@ struct mlx5_ib_alloc_ucontext_resp { __u16 reserved1; __u32 comp_mask; __u32 response_length; - __u32 reserved2; + __u8 cqe_version; + __u8 reserved2; + __u16 reserved3; __u64 hca_core_clock_offset; }; |