1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2018 6WIND S.A.
3 * Copyright 2018 Mellanox Technologies, Ltd
6 #ifndef RTE_PMD_MLX5_MR_H_
7 #define RTE_PMD_MLX5_MR_H_
11 #include <sys/queue.h>
13 #include <rte_ethdev.h>
14 #include <rte_rwlock.h>
15 #include <rte_bitmap.h>
16 #include <rte_memory.h>
18 #include <mlx5_common_mr.h>
20 /* First entry must be NULL for comparison. */
21 #define mlx5_mr_btree_len(bt) ((bt)->len - 1)
23 void mlx5_mr_mem_event_cb(enum rte_mem_event event_type, const void *addr,
24 size_t len, void *arg);
25 int mlx5_mr_update_mp(struct rte_eth_dev *dev, struct mlx5_mr_ctrl *mr_ctrl,
26 struct rte_mempool *mp);
28 #endif /* RTE_PMD_MLX5_MR_H_ */