---
name: "rte_pmd_cnxk_mempool.h"
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_pmd_cnxk_mempool.h"
---

# rte\_pmd\_cnxk\_mempool.h(3)

## NAME

rte\_pmd\_cnxk\_mempool.h

## SYNOPSIS

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

### Functions

\_\_rte\_experimental int **rte\_pmd\_cnxk\_mempool\_mbuf\_exchange** (struct **rte\_mbuf** \*m1, struct **rte\_mbuf** \*m2)\
 \_\_rte\_experimental int **rte\_pmd\_cnxk\_mempool\_is\_hwpool** (struct **rte\_mempool** \*mp)\
 \_\_rte\_experimental int **rte\_pmd\_cnxk\_mempool\_range\_check\_disable** (struct **rte\_mempool** \*mp)\

## Detailed Description

Marvell CNXK Mempool PMD specific functions.

Definition in file **rte\_pmd\_cnxk\_mempool.h**.

## Function Documentation

### \_\_rte\_experimental int rte\_pmd\_cnxk\_mempool\_mbuf\_exchange (struct rte\_mbuf \* m1, struct rte\_mbuf \* m2)

Exchange mbufs between two mempools.

**Parameters**

*m1* First mbuf \
 *m2* Second mbuf

**Returns**

0 on success, a negative errno value otherwise.

### \_\_rte\_experimental int rte\_pmd\_cnxk\_mempool\_is\_hwpool (struct rte\_mempool \* mp)

Check whether a mempool is a hwpool.

**Parameters**

*mp* Mempool to check.

**Returns**

1 if mp is a hwpool, 0 otherwise.

### \_\_rte\_experimental int rte\_pmd\_cnxk\_mempool\_range\_check\_disable (struct rte\_mempool \* mp)

Disable buffer address range check on a mempool.

**Parameters**

*mp* Mempool to disable range check on.

**Returns**

0 on success, a negative errno value otherwise.

## Author

Generated automatically by Doxygen for DPDK from the source code.
