RDMA/mlx5: Add attr for max number page list length for PI operation
authorMax Gurtovoy <maxg@mellanox.com>
Tue, 11 Jun 2019 15:52:43 +0000 (18:52 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 24 Jun 2019 14:49:26 +0000 (11:49 -0300)
commit62e3c379d4d713dbcb70adc7c65443fd8722b33f
tree86a788bd7e52cd4ecb9120bd405b4f4856b8786a
parent6c984472bad12da18b88e9f4345f4970bbec0b3e
RDMA/mlx5: Add attr for max number page list length for PI operation

PI offload (protection information) is a feature that each RDMA provider
can implement differently. Thus, introduce new device attribute to define
the maximal length of the page list for PI fast registration operation. For
example, mlx5 driver uses a single internal MR to map both data and
protection SGL's, so it's equal to max_fast_reg_page_list_len / 2.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
include/rdma/ib_verbs.h