IB/iser: Generalize fall_to_bounce_buf routine
authorSagi Grimberg <sagig@mellanox.com>
Wed, 5 Mar 2014 17:43:45 +0000 (19:43 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 18 Mar 2014 05:33:57 +0000 (22:33 -0700)
commit5f588e3d0c9483ef2fd35f7fe5e104f236b704f8
treee42327a90075dd51ae9d5932524186c93a014d52
parent9a8b08fad2efb3b6c8c5375dbaac5f4e1d19f206
IB/iser: Generalize fall_to_bounce_buf routine

Unaligned SG-lists may also happen for protection information.
Generalize bounce buffer routine to handle any iser_data_buf which may
be data and/or protection.

This patch does not change any functionality.

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