diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-10-13 19:11:36 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-28 22:27:18 -0400 |
commit | 412a15c0fe537c59c794d4e8134580b9cb984a0c (patch) | |
tree | 45a433be4b0d0566c2b0a3cd0754a124f2b953e8 /include/linux/sunrpc/svc_rdma.h | |
parent | 4143f34e01e9cdf1882f98c54d9073e4de8c28fb (diff) | |
download | blackbird-obmc-linux-412a15c0fe537c59c794d4e8134580b9cb984a0c.tar.gz blackbird-obmc-linux-412a15c0fe537c59c794d4e8134580b9cb984a0c.zip |
svcrdma: Port to new memory registration API
Instead of maintaining a fastreg page list, keep an sg table
and convert an array of pages to a sg list. Then call ib_map_mr_sg
and construct ib_reg_wr.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Tested-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/svc_rdma.h')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index 7ccc961f33e9..1e4438ea2380 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -105,11 +105,9 @@ struct svc_rdma_chunk_sge { }; struct svc_rdma_fastreg_mr { struct ib_mr *mr; - void *kva; - struct ib_fast_reg_page_list *page_list; - int page_list_len; + struct scatterlist *sg; + int sg_nents; unsigned long access_flags; - unsigned long map_len; enum dma_data_direction direction; struct list_head frmr_list; }; |