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 ratio
  • const 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