IB/mlx5: Extend QP creation to get uar page index from user space
authorYishai Hadas <yishaih@mellanox.com>
Tue, 24 Mar 2020 06:01:41 +0000 (08:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 15:59:04 +0000 (12:59 -0300)
commitac42a5ee922503f99e8a71d41b0067fa19f23ca6
tree889898e3d3981d78cd4464618d5c9c11f49c47c7
parent64d99f6a62b98532886ede9913a026b2e2bc0419
IB/mlx5: Extend QP creation to get uar page index from user space

Extend QP creation to get uar page index from user space, this mode can be
used with the UAR dynamic mode APIs to allocate/destroy a UAR object.

As part of enabling this option blocked the weird/un-supported cross
channel option which uses index 0 hard-coded.

This QP flag wasn't exposed to user space as part of any formal upstream
release, the dynamic option can allow having valid UAR page index instead.

Link: https://lore.kernel.org/r/20200324060143.1569116-4-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h