IB/mlx5: Allow creation of a multi-packet RQ
authorNoa Osherovich <noaos@mellanox.com>
Tue, 17 Oct 2017 15:01:13 +0000 (18:01 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 Oct 2017 18:03:44 +0000 (14:03 -0400)
commitccc8708790273811db24676223b040710793cba7
tree8f3802224ad7a562cec701700750f6b037549496
parentb4f34597a5ce148b88a47da621037537c384d565
IB/mlx5: Allow creation of a multi-packet RQ

Allow creation of a multi-packet receive queue.

In order to create a multi-packet RQ, the following fields in
the mlx5_ib_rwq should be set:
- log_num_strides: Log of number of strides per WQE
- single_stride_log_num_of_bytes: Log of a single stride size
- two_byte_shift_en: When enabled, hardware pads 2 bytes of zeros
  before writing the message to memory (e.g. for the IP alignment).

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/mlx5_ifc.h
include/uapi/rdma/mlx5-abi.h