rte_flow_action_sample(3)
๐ rte_flow_action_sample ๐
okay so bestie, this is the rte_flow_action_sample(3) page from the Library Functions Manual, and honestly? it's giving "small struct, big main character energy." let's get into it โจ
๐ธ NAME ๐ธ
rte_flow_action_sample โ the struct itself, the whole vibe, no notes ๐ซถ
โจ 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 likeโฆ don't get too attached, it might get a glow-up with zero warning ๐ญ
RTE_FLOW_ACTION_TYPE_SAMPLE
Adds a sample action to a matched flow. literally that's the whole point of it ๐
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. All the packets continue processing on the default flow path. so yeah โ the copies go do their own thing (queue or port, dealer's choice), and the originals keep living their best life on the default flow path ๐
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. one hundred percent, no cap ๐
Definition at line 4333 of file rte_flow.h.
๐ฆ Field Documentation ๐ฆ
๐ธ uint32_t ratio
packets sampled equals to '1/ratio'. that's the math, that's the vibe, that's the ratio ๐งฎโจ
Definition at line 4334 of file rte_flow.h.
๐ const struct rte_flow_action* actions
sub-action list specific for the sampling hit cases. like a little playlist of actions that only kicks in when the sample hits ๐ง
Definition at line 4336 of file rte_flow.h.
๐ Author ๐
Generated automatically by Doxygen for DPDK from the source code. not a human, just a very hardworking doc generator doing its thing ๐ค๐
aaaand that's the page, bestie! ๐ this whole thing came to you courtesy of DPDK, Version 26.03.0, on the rte_flow_action_sample(3) page โ mwah, slay, see u in the group chat ๐
โจ๐ฆ
๐ฆ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms