IB/mlx5: Added support for re-registration of MRs
authorNoa Osherovich <noaos@mellanox.com>
Mon, 29 Feb 2016 14:46:51 +0000 (16:46 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 16:04:31 +0000 (11:04 -0500)
commit56e11d628c5d0553d9fc2ca1855144970e6b9eb6
treeeee07d6af5a1f127a902b7f14bbb4e5407105a4d
parent395a8e4c32ea2d032cf803f52f2e00983f91722d
IB/mlx5: Added support for re-registration of MRs

This patch adds support for re-registration of memory regions in MLX5.
The functionality is basically the same as deregister followed by
register, but attempts to reuse the existing resources as much as
possible.
Original memory keys are kept if possible, saving the need to
communicate new ones to remote peers.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/qp.c