1 /* SPDX-License-Identifier: BSD-3-Clause
5 #ifndef __RTE_DPAA2_MEMPOOL_H__
6 #define __RTE_DPAA2_MEMPOOL_H__
11 * NXP specific mempool related functions.
19 #include <rte_mempool.h>
22 * Get BPID corresponding to the packet pool
28 * BPID of the buffer pool
31 rte_dpaa2_mbuf_pool_bpid(struct rte_mempool *mp);
34 * Get MBUF from the corresponding 'buf_addr'
39 * The 'buf_addr' of the mbuf. This is the start buffer address
40 * of the packet buffer (mbuf).
43 * - MBUF pointer for success
44 * - NULL in case of error
47 rte_dpaa2_mbuf_from_buf_addr(struct rte_mempool *mp, void *buf_addr);
50 * Initialize the rte_dpaa2_bpid_info
51 * In generial, it is called in the secondary process and
52 * mp has been created in the primary process.
62 int rte_dpaa2_bpid_info_init(struct rte_mempool *mp);
68 #endif /* __RTE_DPAA2_MEMPOOL_H__ */