IB/mlx5: Refactoring register MR code
authorNoa Osherovich <noaos@mellanox.com>
Mon, 29 Feb 2016 14:46:50 +0000 (16:46 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 16:04:07 +0000 (11:04 -0500)
commit395a8e4c32ea2d032cf803f52f2e00983f91722d
tree57ccc0db3df0ae974455244fb2d1d90197e59768
parent84424a7fc793979da12992cfe5c2f5f73a3e8725
IB/mlx5: Refactoring register MR code

In order to add re-registration of memory region, some logic was
extracted to separate functions:
- ODP related logic.
- Some of the UMR WQE preparation code.
- DMA mapping.
- Umem creation.
- Creating MKey using FW interface.
- MR fields assignments after successful creation.

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/mr.c