]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Enable UAR to have DevX UID
authorMeir Lichtinger <meirl@nvidia.com>
Wed, 22 Sep 2021 08:28:51 +0000 (11:28 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 28 Sep 2021 15:31:21 +0000 (18:31 +0300)
commit21e0d071e5cc7643ab2ad9a1aa9072d125562331
tree606840f11348ca804b0da8e3e910a2bbe98e1047
parentdbb25318d3a9bfe5f9b0278023fa90381a6d6059
IB/mlx5: Enable UAR to have DevX UID

UID field was added to alloc_uar and dealloc_uar PRM command, to specify
DevX UID for UAR. This change enables firmware validating user access to
its own UAR resources.

For the kernel allocated UARs the UID will stay 0 as of today.

Signed-off-by: Meir Lichtinger <meirl@nvidia.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/uar.c
include/linux/mlx5/driver.h