net/dpaa: support FMCless mode
[dpdk.git] / drivers / net / mlx5 / mlx5_mr.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2018 6WIND S.A.
3  * Copyright 2018 Mellanox Technologies, Ltd
4  */
5
6 #ifndef RTE_PMD_MLX5_MR_H_
7 #define RTE_PMD_MLX5_MR_H_
8
9 #include <stddef.h>
10 #include <stdint.h>
11 #include <sys/queue.h>
12
13 #include <rte_ethdev.h>
14 #include <rte_rwlock.h>
15 #include <rte_bitmap.h>
16 #include <rte_memory.h>
17
18 #include <mlx5_common_mr.h>
19
20 /* First entry must be NULL for comparison. */
21 #define mlx5_mr_btree_len(bt) ((bt)->len - 1)
22
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);
27
28 #endif /* RTE_PMD_MLX5_MR_H_ */