IB/mlx5: Enable subscription for device events over DEVX
authorYishai Hadas <yishaih@mellanox.com>
Sun, 30 Jun 2019 16:23:31 +0000 (19:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jul 2019 20:12:38 +0000 (17:12 -0300)
commit7597385371425febdaa8c6a1da3625d4ffff16f5
tree67feab51c0dd8f9374906142b34045ae2dda121a
parente337dd53ce4cc3db79e52704e554f648c46d5e91
IB/mlx5: Enable subscription for device events over DEVX

Enable subscription for device events over DEVX.

Each subscription is added to the two level xarray data structure
according to its event number and the DEVX object information in case was
given with the given target fd.

Those events will be reported over the given fd once will occur.
Downstream patches will mange the dispatching to any subscription.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
include/uapi/rdma/mlx5_user_ioctl_cmds.h