diff options
author | Bodong Wang <bodong@mellanox.com> | 2017-08-17 15:52:34 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-24 17:47:35 -0400 |
commit | 795b609c8b59f8f20fa9d72bf8b4ae3b8aa5582c (patch) | |
tree | b7c0580ff6d1acf73e06182ea6a5a6fed3f8a60f /include/uapi/rdma | |
parent | a550ddfc543e250798048cf4eabe721cd85ac724 (diff) | |
download | op-kernel-dev-795b609c8b59f8f20fa9d72bf8b4ae3b8aa5582c.zip op-kernel-dev-795b609c8b59f8f20fa9d72bf8b4ae3b8aa5582c.tar.gz |
IB/mlx5: Allow posting multi packet send WQEs if hardware supports
Set the field to allow posting multi packet send WQEs if hardware
supports this feature. This doesn't mean the send WQEs will be for
multi packet unless the send WQE was prepared according to multi
packet send WQE format.
User space shall use flag MLX5_IB_ALLOW_MPW to check if hardware
supports MPW and allows MPW in SQ context.
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r-- | include/uapi/rdma/mlx5-abi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5-abi.h index 64d398e..a61a512 100644 --- a/include/uapi/rdma/mlx5-abi.h +++ b/include/uapi/rdma/mlx5-abi.h @@ -168,6 +168,11 @@ struct mlx5_packet_pacing_caps { __u32 reserved; }; +enum mlx5_ib_mpw_caps { + MPW_RESERVED = 1 << 0, + MLX5_IB_ALLOW_MPW = 1 << 1, +}; + enum mlx5_ib_sw_parsing_offloads { MLX5_IB_SW_PARSING = 1 << 0, MLX5_IB_SW_PARSING_CSUM = 1 << 1, |