RTE_FLOW_ACTION_RAW_ENCAP(3)
π rte_flow_action_raw_encap π
okay bestie, welcome to rte_flow_action_raw_encap(3) β it's a section 3 (Library Functions Manual) page from DPDK, and it's lowkey just a lil struct that tells your NIC how to wrap a packet up in a tunnel. not the whole function, not the whole action β the data definition. let's get into it π
β¨ NAME β¨
rte_flow_action_raw_encap β the struct that holds raw tunnel end-point encapsulation data, iykyk π¦
πΈ SYNOPSIS πΈ
#include <rte_flow.h>
π¦ Data Fields
uint8_t * datauint8_t * preservesize_t size
π Detailed Description π
β οΈ Warning β EXPERIMENTAL: this structure may change without prior notice π
This whole thing backs RTE_FLOW_ACTION_TYPE_RAW_ENCAP.
It's the raw tunnel end-point encapsulation data definition. Periodt. π
So here's the tea: data holds the header definitions that get applied onto the packet. And the way that it must work is that data starts with the ETH header and goes all the way up to the tunnel item header itself β no skipping, no cutting corners, it's giving very "start from the top or don't start at all" energy β¨
But wait, there's a lil twist π«Ά β when it's used right after RAW_DECAP (for example when you're decapsulating an L3 tunnel type like MPLSoGRE), then data will just hold the layer 2 header. that's it. just L2. iconic behaviour honestly.
Then we have preserve, the bodyguard field π β it holds which bits in the packet the PMD is not allowed to change. Protected. Untouchable. And ngl, this parameter can also be NULL, and in that case the PMD is allowed to update any field it wants. free rein. main character energy for the PMD, truly.
And size? simple queen π β it holds the number of bytes in data and preserve. both of them. count accordingly.
π Definition at line3760of filerte_flow.h.
π Field Documentation π
π uint8_t* data
Encapsulation data.
π Definition at line3761of filerte_flow.h.
π§ uint8_t* preserve
Bit-mask of data to preserve on output.
π Definition at line3762of filerte_flow.h.
π size_t size
Size of data and preserve.
π Definition at line3763of filerte_flow.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. yes bestie, no human wrote this one, the robot did it and honestly it ate π€β¨
and that's the whole page!! this lil guy lives in DPDK, version 25.11.3 β that's the version tag stamped on the page, and the footer keeps it company with the standard rte_flow_a...n_raw_encap(3) header situation (it's the truncated title, the man page tooling's doing, not mine π). no extra date was handed down to us, so the version is what we've got to go by. mwah, go encapsulate something responsibly πππ«Ά
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms