]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8881ca8c828f4754d4458c169df2faf776d8ab93
tree67feab51c0dd8f9374906142b34045ae2dda121a
parenta0a1e222230fb58149921f5861c2aaa2d9ef619c
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