rte_flow_a...meter_mark(3)

πŸ’– NAME πŸ’–

rte_flow_action_meter_mark β€” bestie, this is the struct that handles traffic metering and marking, and she is serving


✨ SYNOPSIS ✨

#include <rte_flow.h>

πŸŽ€ Data Fields πŸŽ€

  • struct rte_flow_meter_profile * profile
  • int color_mode
  • int state

🌸 DETAILED DESCRIPTION 🌸

RTE_FLOW_ACTION_TYPE_METER_MARK

Traffic metering and marking (MTR) β€” say it with me, MTR, iconic.

So what she does is: she meters a packet stream and marks its packets either green, yellow, or red according to the specified profile. That's it, that's the whole vibe. 🚦

The policy is optional and may be specified for defining subsequent actions based on a color assigned by MTR. Alternatively, the METER_COLOR item may be used for this. Two ways to do the same thing, pick your fighter. πŸ’…

Definition at line 4157 of file rte_flow.h.

πŸ¦‹ FIELD DOCUMENTATION πŸ¦‹

🌟 struct rte_flow_meter_profile* profile

< Profile config retrieved with rte_mtr_profile_get(). Policy config retrieved with rte_mtr_policy_get().

Like, she's holding the receipts β€” the profile comes from rte_mtr_profile_get() and the policy comes from rte_mtr_policy_get(). Go get 'em first, then come back, okay? 🫢

Definition at line 4160 of file rte_flow.h.

🌈 int color_mode

Metering mode:

  • 0 β€” Color-Blind
  • 1 β€” Color-Aware

Pick your lens, no wrong answers, just different vibes. πŸ‘€

Definition at line 4164 of file rte_flow.h.

⭐ int state

Metering state:

  • 0 β€” Disabled
  • 1 β€” Enabled

Off or on, that's the whole thing, periodt.

Definition at line 4166 of file rte_flow.h.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. Not a human, not a bot with feelings, just Doxygen doing her little thing. And honestly? She ate. πŸ’€βœ¨


Okay bestie, that's the whole page β€” this is from DPDK, Version 25.11.3, and the manual she lives in is rte_flow_a...meter_mark(3). Go forth and meter your packets responsibly. Mwah. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from