]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4310f4294c8efffb7c8234ea0fcf1723190eb8ab
tree893945fa0e36aef67304e8b5a350c5d21b0b9434
parent8480c2a7bdd69e66f2ca8d58ac3d3db9ce08a86e
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