IB/core: Add arbitrary sg_list support
authorSagi Grimberg <sagig@mellanox.com>
Mon, 29 Feb 2016 17:07:32 +0000 (19:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Mar 2016 16:59:34 +0000 (11:59 -0500)
commitf5aa9159a418726d74b67c8815ffd2739afb4c7a
tree2205e3e00c4200279cd467f787c7aaae0204a5fd
parent911f4331bc87f4589b9096f4fb24b335d4c2967d
IB/core: Add arbitrary sg_list support

Devices that are capable in registering SG lists
with gaps can now expose it in the core to ULPs
using a new device capability IB_DEVICE_SG_GAPS_REG
(in a new field device_cap_flags_ex in the device attributes
as we ran out of bits), and a new mr_type IB_MR_TYPE_SG_GAPS_REG
which allocates a memory region which is capable of handling
SG lists with gaps.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h