Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2016 HGST, a Western Digital Company.
0004  */
0005 #ifndef _RDMA_MR_POOL_H
0006 #define _RDMA_MR_POOL_H 1
0007 
0008 #include <rdma/ib_verbs.h>
0009 
0010 struct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list);
0011 void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr);
0012 
0013 int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr,
0014         enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg);
0015 void ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list);
0016 
0017 #endif /* _RDMA_MR_POOL_H */