IB/mlx5: Refactor UMR to have its own context struct
authorShachar Raindel <raindel@mellanox.com>
Thu, 22 May 2014 11:50:12 +0000 (14:50 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 27 May 2014 18:53:09 +0000 (11:53 -0700)
commita74d24168d2df78e7a532567eb0e7538e6b09568
tree1748a31b03e4bb85e0e33edeb0400d0001bc7065
parent48fea837bb2709bda73cd4ae8bbd57cb277f7b90
IB/mlx5: Refactor UMR to have its own context struct

Instead of having the UMR context part of each memory region, allocate
a struct on the stack.  This allows queuing multiple UMRs that access
the same memory region.

Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c