rdma core: Add rdma_rw_mr_payload()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 28 Aug 2017 19:06:14 +0000 (15:06 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 5 Sep 2017 19:15:30 +0000 (15:15 -0400)
commit0062818298662d0d05061949d12880146b5ebd65
tree50f9a9d6b223eba747b65857157a87bdb1356c2c
parent5a25bfd28c321e522dbe8083ad6219fa2a820610
rdma core: Add rdma_rw_mr_payload()

The amount of payload per MR depends on device capabilities and
the memory registration mode in use. The new rdma_rw API hides both,
making it difficult for ULPs to determine how large their transport
send queues need to be.

Expose the MR payload information via a new API.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
drivers/infiniband/core/rw.c
include/rdma/rw.h