---
name: "rte_eth_hairpin_cap"
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_eth_hairpin_cap"
---

# rte\_eth\_hairpin\_cap(3)

## NAME

rte\_eth\_hairpin\_cap

## SYNOPSIS

`#include <rte_ethdev.h>`

### Data Fields

uint16\_t **max\_nb\_queues**\
 uint16\_t **max\_rx\_2\_tx**\
 uint16\_t **max\_tx\_2\_rx**\
 uint16\_t **max\_nb\_desc**\
 struct **rte\_eth\_hairpin\_queue\_cap** **rx\_cap**\
 struct **rte\_eth\_hairpin\_queue\_cap** **tx\_cap**\

## Detailed Description

**Warning**

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

A structure used to return the hairpin capabilities that are supported.

Definition at line **1229** of file **rte\_ethdev.h**.

## Field Documentation

### uint16\_t max\_nb\_queues

The max number of hairpin queues (different bindings).

Definition at line **1231** of file **rte\_ethdev.h**.

### uint16\_t max\_rx\_2\_tx

Max number of Rx queues to be connected to one Tx queue.

Definition at line **1233** of file **rte\_ethdev.h**.

### uint16\_t max\_tx\_2\_rx

Max number of Tx queues to be connected to one Rx queue.

Definition at line **1235** of file **rte\_ethdev.h**.

### uint16\_t max\_nb\_desc

The max num of descriptors.

Definition at line **1236** of file **rte\_ethdev.h**.

### struct rte\_eth\_hairpin\_queue\_cap rx\_cap

Rx hairpin queue capabilities.

Definition at line **1237** of file **rte\_ethdev.h**.

### struct rte\_eth\_hairpin\_queue\_cap tx\_cap

Tx hairpin queue capabilities.

Definition at line **1238** of file **rte\_ethdev.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
