]> 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)
commitccbf734639cd027100b31af9a3b8579d19ccb0e2
tree44ec13339d559c31a94706f6394a108d004742c6
parenta9df69a9e10d498f801663c0f0c8e17349917af6
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: cd773f67345d ("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