IB/mlx5: Device resource control for privileged DEVX user
authorAriel Levkovich <lariel@mellanox.com>
Sun, 5 May 2019 14:07:14 +0000 (17:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 15:51:51 +0000 (12:51 -0300)
commit33cde96fb5d7ae36207541c8a832d7fae3cadbde
tree893945fa0e36aef67304e8b5a350c5d21b0b9434
parent25c13324d03d004f9e8071bf5bf5d5c6fdace71e
IB/mlx5: Device resource control for privileged DEVX user

For DEVX users who have SYS_RAWIO capability, we set the internal device
resources capability when creating the UCTX.  This will allow the device
to restrict the allocation of internal device resources such as SW ICM
memory to privileged DEVX users only.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c