RDMA/mlx5: Set the HW IOVA of the child MRs to their place in the tree
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 9 Oct 2019 16:09:27 +0000 (13:09 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 19:41:13 +0000 (16:41 -0300)
commit9162420dde49c9a8f4819f28bf2d5c675fb12552
treecf8229e997cf12daf02c8e5bd9506c361b9e7dff
parentc2edcd69351f681594a30b17b7fbc5259a038fb0
RDMA/mlx5: Set the HW IOVA of the child MRs to their place in the tree

Instead of rewriting all the IOVA's to 0 as things progress down the tree
make the IOVA of the children equal to placement in the tree. This makes
things easier to understand by keeping mmkey.iova == HW configuration.

Link: https://lore.kernel.org/r/20191009160934.3143-8-jgg@ziepe.ca
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c