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)
commitd2c8a1554c10d5e0443b1f97f480d7dacd55cf55
tree606840f11348ca804b0da8e3e910a2bbe98e1047
parent8de1e9b01b03d2805f58aa490ea5bf0df003bc80
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