David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2016 HGST, a Western Digital Company. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | */ |
| 5 | #ifndef _RDMA_MR_POOL_H |
| 6 | #define _RDMA_MR_POOL_H 1 |
| 7 | |
| 8 | #include <rdma/ib_verbs.h> |
| 9 | |
| 10 | struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list); |
| 11 | void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr); |
| 12 | |
| 13 | int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr, |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 14 | enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 15 | void ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list); |
| 16 | |
| 17 | #endif /* _RDMA_MR_POOL_H */ |