IB/mlx5: Allow XRC usage via verbs in DEVX context
authorYishai Hadas <yishaih@mellanox.com>
Mon, 26 Nov 2018 06:28:38 +0000 (08:28 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 4 Dec 2018 18:46:42 +0000 (13:46 -0500)
commit5aa3771ded54894ce34f4ec6bc2bb403e6771eb2
tree731712184382b8d4399e11f37464ba53c4675e55
parent719598c98d1961e78e2ad514a2cc15deb5e41db5
IB/mlx5: Allow XRC usage via verbs in DEVX context

Allows XRC usage from the verbs flow in a DEVX context.
As XRCD is some shared kernel resource between processes it should be
created with UID=0 to point on that.

As a result once XRC QP/SRQ are created they must be used as well with
UID=0 so that firmware will allow the XRCD usage.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/srq.c