]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Allow posting multi packet send WQEs if hardware supports
authorBodong Wang <bodong@mellanox.com>
Thu, 17 Aug 2017 12:52:34 +0000 (15:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 21:47:35 +0000 (17:47 -0400)
commitaac447fd515702b01192666f956aa6381860800c
treeb7c0580ff6d1acf73e06182ea6a5a6fed3f8a60f
parentb0990c71ecde1a2935f9b474f05395a9fd00086c
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>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/mlx5_ifc.h
include/uapi/rdma/mlx5-abi.h