mr_pool.h 568 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2016 HGST, a Western Digital Company.
  4. */
  5. #ifndef _RDMA_MR_POOL_H
  6. #define _RDMA_MR_POOL_H 1
  7. #include <rdma/ib_verbs.h>
  8. struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list);
  9. void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr);
  10. int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr,
  11. enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg);
  12. void ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list);
  13. #endif /* _RDMA_MR_POOL_H */