rte_flow_action_sample(3)

๐Ÿ“ฆ
version 26.03 ยท 2 versions
, in nixos 26.05, nixpkgs unstable

๐Ÿ’… 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 ratio
  • const 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