]> 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)
commite9f718f568b79ea8034aa67f0bd8b66f8bcf62cb
treeeee07d6af5a1f127a902b7f14bbb4e5407105a4d
parent6e04d1315238ef9347bcffc85939229a39586778
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