---
name: "rte_dpaa2_bpid_info_init"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_dpaa2_mempool.h"
---

# rte\_dpaa2\_bpid\_info\_init(3)

Part of [rte\_dpaa2\_mempool.h(3)](/rte_dpaa2_mempool.h/3.md).

## NAME

rte\_dpaa2\_mempool.h

## SYNOPSIS

`#include <rte_compat.h>`\
 `#include <rte_mempool.h>`\

### Functions

uint16\_t **rte\_dpaa2\_mbuf\_pool\_bpid** (struct **rte\_mempool** \*mp)\
 struct **rte\_mbuf** \* **rte\_dpaa2\_mbuf\_from\_buf\_addr** (struct **rte\_mempool** \*mp, void \*buf\_addr)\
 \_\_rte\_internal int **rte\_dpaa2\_bpid\_info\_init** (struct **rte\_mempool** \*mp)\

## Detailed Description

NXP specific mempool related functions.

Definition in file **rte\_dpaa2\_mempool.h**.

## Function Documentation

### uint16\_t rte\_dpaa2\_mbuf\_pool\_bpid (struct rte\_mempool \* mp)

Get BPID corresponding to the packet pool

**Parameters**

*mp* memory pool

**Returns**

BPID of the buffer pool

### struct rte\_mbuf \* rte\_dpaa2\_mbuf\_from\_buf\_addr (struct rte\_mempool \* mp, void \* buf\_addr)

Get MBUF from the corresponding 'buf\_addr'

**Parameters**

*mp* memory pool \
 *buf\_addr* The 'buf\_addr' of the mbuf. This is the start buffer address of the packet buffer (mbuf).

**Returns**

- •

  MBUF pointer for success

- •

  NULL in case of error

### \_\_rte\_internal int rte\_dpaa2\_bpid\_info\_init (struct rte\_mempool \* mp)

Initialize the rte\_dpaa2\_bpid\_info In generial, it is called in the secondary process and mp has been created in the primary process.

**Parameters**

*mp* memory pool

**Returns**

- •

  0 on success.

- •

  (\<0) on failure.

## Author

Generated automatically by Doxygen for DPDK from the source code.
