N_PACKETS_ENABLED(3)
π NAME π
okay bestie, gather round, because this is rte_table_action_mtr_config β and yes, it's living in the Library Functions Manual, so you know it's a real one π
(also the page header up top is doing a little rte_table_..._mtr_config(3) abbreviation moment, iykyk β the full name is the pretty one above β¨)
πΈ SYNOPSIS πΈ
#include <rte_table_action.h>
β¨ Data Fields β¨
enum rte_table_action_meter_algorithm alg
uint32_t n_tc
int n_packets_enabled
int n_bytes_enabled
π Detailed Description π
Meter action configuration (per table action profile). Lowkey the whole vibe of this struct is "how do we meter stuff for one table action profile" and it ate π
π Definition at line 287 of file rte_table_action.h.
π¦ Field Documentation π¦
π enum rte_table_action_meter_algorithm alg
Meter algorithm. That's it, that's the field β it picks which algorithm you're metering with π₯
π Definition at line 289 of file rte_table_action.h.
π uint32_t n_tc
Number of traffic classes. Each traffic class gets its very own traffic meter and policer instances, main character energy for every single one π
And this is the part where you gotta behave: it needs to be equal to either 1 or to RTE_TABLE_ACTION_TC_MAX. No in-between, no "close enough" β those are the only two options, periodt.
π Definition at line 295 of file rte_table_action.h.
π int n_packets_enabled
When non-zero, the n_packets meter stats counter is enabled β¨ otherwise it is disabled π
See also: struct rte_table_action_mtr_counters_tc
π Definition at line 302 of file rte_table_action.h.
π int n_bytes_enabled
When non-zero, the n_bytes meter stats counter is enabled β¨ otherwise it is disabled π
(and yes, queen, this is the one the page is literally named after β N_BYTES_ENABLED(3), we see you π«Ά)
See also: struct rte_table_action_mtr_counters_tc
π Definition at line 309 of file rte_table_action.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. Not a human, just a very diligent little robot doing its thing π€π
so yeah, that's the whole page bestie π this was DPDK, Version 26.03.0, and it's signing off β rte_table_..._mtr_config(3), no cap, catch you in the next one π¦π
π¦ 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