IB/srp: Split srp_map_sg
authorSagi Grimberg <sagig@mellanox.com>
Tue, 13 Oct 2015 16:11:38 +0000 (19:11 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 29 Oct 2015 02:27:18 +0000 (22:27 -0400)
commit26630e8a09b72e8783e8963781d39e7edb2a60b9
treedd7032942c6d2d68a23cb1af2a0be53a12ac3149
parent9ddc87374af90ee694bcc8d3412c6f2b51df1fea
IB/srp: Split srp_map_sg

This is a preparation patch for the new registration API
conversion. It splits srp_map_sg per registration strategy
(srp_map_sg[fmr|fr|dma]. On its own it adds some code duplication,
but it makes the API switch easier to comprehend.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Tested-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c