]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit795b609c8b59f8f20fa9d72bf8b4ae3b8aa5582c
treeb7c0580ff6d1acf73e06182ea6a5a6fed3f8a60f
parenta550ddfc543e250798048cf4eabe721cd85ac724
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