diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-10-13 19:11:24 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-28 22:27:17 -0400 |
commit | 4c67e2bfc8b7121d51434362fa7c2d012f8bcf1b (patch) | |
tree | d262b24e2c9fe18611816437acc9a7e3526eb64d /drivers/infiniband/ulp | |
parent | 63e8790d39a2d7c9a0ebeab987a6033d184bc6ba (diff) | |
download | op-kernel-dev-4c67e2bfc8b7121d51434362fa7c2d012f8bcf1b.zip op-kernel-dev-4c67e2bfc8b7121d51434362fa7c2d012f8bcf1b.tar.gz |
IB/core: Introduce new fast registration API
The new fast registration verb ib_map_mr_sg receives a scatterlist
and converts it to a page list under the verbs API thus hiding
the specific HW mapping details away from the consumer.
The provider drivers are provided with a generic helper ib_sg_to_pages
that converts a scatterlist into a vector of page addresses. The
drivers can still perform any HW specific page address setting
by passing a set_page function pointer which will be invoked for
each page address. This allows drivers to avoid keeping a shadow
page vectors and convert them to HW specific translations by doing
extra copies.
This API will allow ULPs to remove the duplicated code of constructing
a page vector from a given sg list.
The send work request ib_reg_wr also shrinks as it will contain only
mr, key and access flags in addition.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Tested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp')
0 files changed, 0 insertions, 0 deletions