rte_flow_action_sample(3)
๐ rte_flow_action_sample ๐
okay bestie, so this is rte_flow_action_sample(3) โ a Library Functions Manual situation, and we're literally about to learn how to sample packets in DPDK. no cap, it's giving very "duplicate my traffic, but make it fashion" โจ
๐ธ NAME ๐ธ
rte_flow_action_sample โ the icon, the moment, the struct ๐ซถ
โจ SYNOPSIS โจ
#include <rte_flow.h>
๐ Data Fields
uint32_t ratioconst struct rte_flow_action * actions
๐ Detailed Description ๐
โ ๏ธ Warning โ EXPERIMENTAL: this structure may change without prior notice ๐ญ so don't get too attached, she's still in her glow-up era.
RTE_FLOW_ACTION_TYPE_SAMPLE
Adds a sample action to a matched flow. periodt ๐
The matching packets will be duplicated with specified ratio and applied with own set of actions with a fate action โ the sampled packet could be redirected to queue or port, iykyk. Meanwhile, all the packets continue processing on the default flow path. so the originals keep it moving, no drama ๐
When the sample ratio is set to 1 then the packets will be 100% mirrored. Additional action list be supported to add for sampled or mirrored packets. iconic behavior tbh โจ
Definition at line 4334 of file rte_flow.h.
๐ฆ Field Documentation ๐ฆ
๐ uint32_t ratio
packets sampled equals to '1/ratio'. literally just math, babe ๐งฎ
Definition at line 4335 of file rte_flow.h.
๐ const struct rte_flow_action* actions
sub-action list specific for the sampling hit cases. the lil squad that runs when the sample actually hits ๐ซ
Definition at line 4337 of file rte_flow.h.
๐ Author ๐
Generated automatically by Doxygen for DPDK from the source code. not a human wrote this, bestie, it's a machine's main character moment ๐ค๐
and that's the whole page, no skips, no shortcuts ๐ซถ slay responsibly.
โ DPDK, Version 25.11.3, and yes this was rte_flow_action_sample(3). mwah ๐
๐ฆ 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