]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Add inline-receive support
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 21 Jun 2017 06:26:28 +0000 (09:26 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:41:02 +0000 (10:41 -0400)
commitb2d3effbd3a4d24b9a22e37e53ef967356c86979
tree9d4b7943102cfffb4eae9d93d73b5f846e36858d
parent60fe4cc80b5e01ad8e0f5f1ad2072b146834630b
IB/mlx4: Add inline-receive support

When inline-receive is enabled, the HCA may write received
data into the receive WQE.

Inline-receive is enabled by setting its matching bit in
the QP context and each single-packet message with payload
not exceeding the receive WQE size will be delivered to
the WQE.

The completion report will indicate that the payload was placed to the WQE.

It includes:
1) Return maximum supported size of inline-receive by the hardware
in query_device vendor's data part.
2) Enable the feature when requested by the vendor data input.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c
include/uapi/rdma/mlx4-abi.h