IB/iser: Pass struct iser_mem_reg to iser_fast_reg_mr and iser_reg_sig_mr
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:25 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:13 +0000 (16:07 -0400)
commit6ef8bb837dd7e60f078084d4842a43fd163fb4a2
tree847d40d8468a0da508f941c78db04f4f73f93b1b
parent90a6684c30918786446fd062c7422a4098926891
IB/iser: Pass struct iser_mem_reg to iser_fast_reg_mr and iser_reg_sig_mr

Instead of passing ib_sge as output variable, we pass the mem_reg
pointer to have the routines fill the rkey as well. This reduces
code duplication and extra assignments. This is a preparation step
to unify some registration logics together. Also, pass iser_fast_reg_mr
the fastreg descriptor directly.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iser_memory.c