]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Use stages for callback to setup and release DEVX
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 28 Nov 2018 18:53:39 +0000 (20:53 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 4 Dec 2018 07:23:53 +0000 (09:23 +0200)
commitd306032bd779887ad4b7b4142474dd22f665d1df
tree44ec13339d559c31a94706f6394a108d004742c6
parent65f6b4813835119014cd88841096548c083cd60b
RDMA/mlx5: Use stages for callback to setup and release DEVX

Reuse existing infrastructure to initialize and release DEVX uid.
The DevX interface is intended for user space access, so it is supposed
to be initialized before ib_register_device(). Also it isn't supported
in switchdev mode and don't need to initialize it in that mode.

Fixes: e6904116d7a1 ("IB/mlx5: Manage device uid for DEVX white list commands")
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h