IB/iser: Handle unaligned SG in separate function
authorSagi Grimberg <sagig@mellanox.com>
Sun, 28 Jul 2013 09:35:40 +0000 (12:35 +0300)
committerRoland Dreier <roland@purestorage.com>
Sat, 10 Aug 2013 00:18:09 +0000 (17:18 -0700)
commit919fc274ef102841ad56a37d482720f332d459d1
tree32fa75e96876e2bfd28d71f38760b8c9597948fb
parentb4e155ffbbd65cba77207bc5522c7b734a5c8c9d
IB/iser: Handle unaligned SG in separate function

This routine will be shared with other rdma management schemes.  The
bounce buffer solution for unaligned SG-lists and the sg_to_page_vec
routine are likely to be used for other registration schemes and not
just FMR.

Move them out of the FMR specific code, and call them from there.
Later they will be called also from other reg methods code.

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