mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Doug Ledford <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
5a25bfd28c
commit
0062818298
2 changed files with 26 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ struct ib_send_wr *rdma_rw_ctx_wrs(struct rdma_rw_ctx *ctx, struct ib_qp *qp,
|
|||
int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u8 port_num,
|
||||
struct ib_cqe *cqe, struct ib_send_wr *chain_wr);
|
||||
|
||||
unsigned int rdma_rw_mr_factor(struct ib_device *device, u8 port_num,
|
||||
unsigned int maxpages);
|
||||
void rdma_rw_init_qp(struct ib_device *dev, struct ib_qp_init_attr *attr);
|
||||
int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr);
|
||||
void rdma_rw_cleanup_mrs(struct ib_qp *qp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue