net/mlx5: Update mlx5_ifc with DEVX UID bits
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 20 Sep 2018 18:35:26 +0000 (21:35 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 25 Sep 2018 07:10:58 +0000 (10:10 +0300)
commitbd37197554eb28a7fc38e44e005e303c77f788ed
treee7f57aa6f5486f5fda1c06e52c25374d3a35c705
parent774ea6eea29025218f75bc94c764df9a641db471
net/mlx5: Update mlx5_ifc with DEVX UID bits

Add DEVX information to WQ, SRQ, CQ, TIR, TIS, QP,
RQ, XRCD, PD, MKEY and MCG.

Each object that is created/destroyed/modified via verbs will
be stamped with a UID based on its user context. This is already
done for DEVX objects commands.

This will enable the firmware to enforce the usage of kernel objects
from the DEVX flow by validating that the same UID is used and the
resources are really related to the same user.

The addition of *_valid fields are needed to distinguish
how various addresses are passed.

For non-DEVX callers, all those fields will be zero.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/mlx5_ifc.h