IB/mlx5: Manage indirection mkey upon DEVX flow for ODP
authorYishai Hadas <yishaih@mellanox.com>
Sun, 13 Jan 2019 14:01:17 +0000 (16:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Jan 2019 03:06:49 +0000 (20:06 -0700)
commit534fd7aac56a7994d16032f32123def9923e339f
treeabf22f47cbefc6f322dab4627cccc106a0760b5a
parentfa31f14380bea60ccc9d7a314e0cb61f6984627f
IB/mlx5: Manage indirection mkey upon DEVX flow for ODP

Manage indirection mkey upon DEVX flow to support ODP.

To support a page fault event on the indirection mkey it needs to be part
of the device mkey radix tree.

Both the creation and the deletion flows for a DEVX object which is
indirection mkey were adapted to handle that.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/linux/mlx5/driver.h