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)
commit9ba481e2eb3b932ae5b6278342b256e4f92d2793
treeb83449d4df0050d18f06090480042c0c61d52779
parent5d773ff41a7cdf0ef6cc6647435d59f0cf53e7b1
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