N_PACKETS_ENABLED(3)

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

πŸ’… 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