]> asedeno.scripts.mit.edu Git - linux.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)
commit81773ce5f07fd4c3acd4bb7e918ce03a4e652a5f
tree44ec13339d559c31a94706f6394a108d004742c6
parentc48d386b2bbb5b7546a409afb611346ba9520f73
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: 76dc5a8406bf ("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