DPDK 21.11.9
Data Fields
rte_eth_hairpin_conf Struct Reference

#include <rte_ethdev.h>

Data Fields

uint32_t peer_count:16
 
uint32_t tx_explicit:1
 
uint32_t manual_bind:1
 
uint32_t reserved:14
 

Detailed Description

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

A structure used to configure hairpin binding.

Definition at line 1296 of file rte_ethdev.h.

Field Documentation

◆ peer_count

uint32_t peer_count

The number of peers.

Definition at line 1297 of file rte_ethdev.h.

◆ tx_explicit

uint32_t tx_explicit

Explicit Tx flow rule mode. One hairpin pair of queues should have the same attribute.

  • When set, the user should be responsible for inserting the hairpin Tx part flows and removing them.
  • When clear, the PMD will try to handle the Tx part of the flows, e.g., by splitting one flow into two parts.

Definition at line 1308 of file rte_ethdev.h.

◆ manual_bind

uint32_t manual_bind

Manually bind hairpin queues. One hairpin pair of queues should have the same attribute.

  • When set, to enable hairpin, the user should call the hairpin bind function after all the queues are set up properly and the ports are started. Also, the hairpin unbind function should be called accordingly before stopping a port that with hairpin configured.
  • When clear, the PMD will try to enable the hairpin with the queues configured automatically during port start.

Definition at line 1321 of file rte_ethdev.h.

◆ reserved

uint32_t reserved

Reserved bits.

Definition at line 1322 of file rte_ethdev.h.


The documentation for this struct was generated from the following file: