blob: e77123bcb43bc1fcda7d1c6567c65a428ca4697f [file] [log] [blame]
Thomas Gleixner2025cf92019-05-29 07:18:02 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Christoph Hellwigfffb0382016-05-03 18:01:07 +02002/*
3 * Copyright (c) 2016 HGST, a Western Digital Company.
Christoph Hellwigfffb0382016-05-03 18:01:07 +02004 */
5#ifndef _RDMA_MR_POOL_H
6#define _RDMA_MR_POOL_H 1
7
8#include <rdma/ib_verbs.h>
9
10struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list);
11void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr);
12
13int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr,
Israel Rukshin5a6781a2019-06-11 18:52:49 +030014 enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg);
Christoph Hellwigfffb0382016-05-03 18:01:07 +020015void ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list);
16
17#endif /* _RDMA_MR_POOL_H */