]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8c05ed4959092795574165270b38db2e4ac7630
treeeee07d6af5a1f127a902b7f14bbb4e5407105a4d
parent2bb1cf6eb894a1f73e7335411b3373f286c09a09
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