MTR(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… NAME πŸ’…

rte_table_action_mtr_params β€” ok so bestie, this is the meter action params struct, and it's a per table rule situation, no cap ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <rte_table_action.h>

🌸 Data Fields 🌸

struct rte_table_action_mtr_tc_params mtr[RTE_TABLE_ACTION_TC_MAX]
uint32_t tc_mask

πŸ¦‹ DESCRIPTION πŸ¦‹

So this whole thing is the meter action parameters, and the key tea is: it's per table rule πŸ‘‘ like every single rule gets its own little bag of meter settings.

And for the record, the definition lives at line 313 of the file rte_table_action.h β€” yes she's documented down to the line number, we love an organized icon πŸ’–


⭐ FIELD DOCUMENTATION ⭐

🌈 struct rte_table_action_mtr_tc_params mtr[RTE_TABLE_ACTION_TC_MAX]

This array is holding the traffic meter and policer parameters for each of the traffic classes that show up in tc_mask 🚦 like, one slot per traffic class, array sized RTE_TABLE_ACTION_TC_MAX, all very structured and cute.

Found at line 317 of rte_table_action.h, mwah πŸ’‹

🌸 uint32_t tc_mask

Okay so this is the important one, bestie, pay attention πŸ‘€ β€” tc_mask is a bit mask that defines which traffic class parameters are actually valid in mtr.

The whole vibe:

  • if bit N is set in tc_mask β†’ then the parameters for traffic class N are valid in mtr βœ…
  • bit not set β†’ that traffic class slot is lowkey not the moment, don't trust it πŸ™ˆ

Documented at line 323 of rte_table_action.h, periodt πŸ’…


🧚 AUTHOR 🧚

Generated automatically by Doxygen for DPDK from the source code β€” so nobody hand-wrote this one, the robot did it πŸ€–βœ¨ (and honestly? she ate)


And that's the whole page, bestie!! 🫢 This little gem is from DPDK, Version 26.03.0 β€” go build something iconic with it πŸ‘‘πŸ”₯

πŸ“¦ where this page comes from