IB/iser: Push the decision what memory key to use into fast_reg_mr routine
authorSagi Grimberg <sagig@mellanox.com>
Wed, 5 Mar 2014 17:43:40 +0000 (19:43 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 18 Mar 2014 05:33:57 +0000 (22:33 -0700)
commitd11ec4ecf022f49df33a784f0cf445638573f577
treecddcf71139442be958ff177f7e5ed73cbcec20e7
parent7306b8fad467c4c3c1e3fc68b237427cac1533a7
IB/iser: Push the decision what memory key to use into fast_reg_mr routine

This is a preparation step for T10-PI offload support.  We prefer to
push the desicion of which mkey to use (global or fastreg) to
iser_fast_reg_mr.  We choose to do this since in T10-PI we may need to
register for protection buffers and in this case we wish to simplify
iser_fast_reg_mr instead of repeating the logic of which key to use.

This patch does not change any functionality.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_memory.c