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>
This commit is contained in:

committed by
Doug Ledford

parent
a550ddfc54
commit
795b609c8b
@@ -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,
|
||||
|
Reference in New Issue
Block a user