MTR(3)
π 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 inmtrβ - 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
- 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