]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Set uid as part of CQ commands
authorYishai Hadas <yishaih@mellanox.com>
Thu, 20 Sep 2018 18:35:20 +0000 (21:35 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 25 Sep 2018 06:52:35 +0000 (09:52 +0300)
commit5e1f62e1a686ff009726042b43a7e9c8ce7208ca
treeb83449d4df0050d18f06090480042c0c61d52779
parentbaad9bdfe8905c47011e22d0595ea261147433c3
net/mlx5: Set uid as part of CQ commands

Set uid as part of CQ commands so that the firmware can manage the CQ
object in a secured way.

The firmware should mark this CQ with the given uid so that it can
be used later on only by objects with the same uid.

Upon DEVX flows that use this CQ (e.g. create QP command), the
pointed CQ must have the same uid as of the issuer uid command.

When a command is issued with uid=0 it means that the issuer of the
command is trusted (i.e. kernel), in that case any pointed object
can be used regardless of its uid.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cq.c
include/linux/mlx5/cq.h
include/linux/mlx5/mlx5_ifc.h