---
name: "rte_pmd_dpaa_set_tx_loopback"
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_dpaa.h"
---

# rte\_pmd\_dpaa\_set\_tx\_loopback(3)

Part of [rte\_pmd\_dpaa.h(3)](/rte_pmd_dpaa.h/3.md).

## NAME

rte\_pmd\_dpaa.h

## SYNOPSIS

### Functions

int **rte\_pmd\_dpaa\_set\_tx\_loopback** (uint16\_t port, uint8\_t on)\

## Detailed Description

NXP dpaa PMD specific functions.

**Warning**

**EXPERIMENTAL:** this API may change, or be removed, without prior notice

Definition in file **rte\_pmd\_dpaa.h**.

## Function Documentation

### int rte\_pmd\_dpaa\_set\_tx\_loopback (uint16\_t port, uint8\_t on)

Enable/Disable TX loopback

**Parameters**

*port* The port identifier of the Ethernet device. \
 *on* 1 - Enable TX loopback. 0 - Disable TX loopback.

**Returns**

- •

  (0) if successful.

- •

  (-ENODEV) if *port* invalid.

- •

  (-EINVAL) if bad parameter.

## Author

Generated automatically by Doxygen for DPDK from the source code.
