IB/mlx5: Expose multi-packet RQ capabilities
authorNoa Osherovich <noaos@mellanox.com>
Tue, 17 Oct 2017 15:01:12 +0000 (18:01 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 Oct 2017 18:03:44 +0000 (14:03 -0400)
commitb4f34597a5ce148b88a47da621037537c384d565
tree3a864e99cf31cdf01db976d334446e34621b4ff7
parentb156269d88e43a93da424a463e57eb5e9ee5f3cd
IB/mlx5: Expose multi-packet RQ capabilities

This patch reports the device's striding RQ capabilities to
the user-space:
- min/max_single_stride_log_num_of_bytes: Log of min/max number of
  bytes in a single stride.
- min/max_single_wqe_log_num_of_strides: Log of min/max number of
  strides in a single WQE.
- supported_qpts: A bit mask to know which QP types support multi-
  packet RQ, for now only Raw Packet QPs.

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/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/uapi/rdma/mlx5-abi.h