DPDK  24.03.0
Data Fields
rte_eth_rxseg_split Struct Reference

#include <rte_ethdev.h>

Data Fields

struct rte_mempoolmp
uint16_t length
uint16_t offset
uint32_t proto_hdr

Detailed Description

EXPERIMENTAL: this structure may change without prior notice.

A structure used to configure an Rx packet segment to split.

If RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT flag is set in offloads field, the PMD will split the received packets into multiple segments according to the specification in the description array:

Definition at line 1078 of file rte_ethdev.h.

Field Documentation

◆ mp

struct rte_mempool* mp

Memory pool to allocate segment from.

Definition at line 1079 of file rte_ethdev.h.

◆ length

uint16_t length

Segment data length, configures split point.

Definition at line 1080 of file rte_ethdev.h.

◆ offset

uint16_t offset

Data offset from beginning of mbuf data buffer.

Definition at line 1081 of file rte_ethdev.h.

◆ proto_hdr

uint32_t proto_hdr

proto_hdr defines a bit mask of the protocol sequence as RTE_PTYPE_*. The last RTE_PTYPE* in the mask indicates the split position.

If one protocol header is defined to split packets into two segments, for non-tunneling packets, the complete protocol sequence should be defined. For tunneling packets, for simplicity, only the tunnel and inner part of complete protocol sequence is required. If several protocol headers are defined to split packets into multi-segments, the repeated parts of adjacent segments should be omitted.

Definition at line 1093 of file rte_ethdev.h.

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