rte_swx_ctl_meter_stats(3)
β¨ rte_swx_ctl_meter_stats β¨
okay bestie, so this one lives in the Library Functions Manual section of the DPDK docs, and ngl it's a lil baby page β but it's a useful lil baby page, so let's go π
πΈ NAME πΈ
rte_swx_ctl_meter_stats β bestie it's literally the meter statistics counters, that's the whole vibe
π SYNOPSIS π
#include <rte_swx_ctl.h>
β¨ Data Fields β¨
uint64_t n_pkts [RTE_COLORS]uint64_t n_bytes [RTE_COLORS]
π¦ Detailed Description π¦
So this struct is the Meter statistics counters. That's it, that's the whole description, no notes π
fr fr, it's defined at line 1416 of the file rte_swx_ctl.h β write that down, iykyk.
π Field Documentation π
π uint64_t n_pkts[RTE_COLORS]
The number of packets that got tagged by the meter for each color. Yes bestie, each color β there are RTE_COLORS of them, and every single one gets its own count π
Defined at line 1418 of the file rte_swx_ctl.h.
π uint64_t n_bytes[RTE_COLORS]
The number of bytes that got tagged by the meter for each color. Same deal, one slot per color, RTE_COLORS of them π«Ά
Defined at line 1421 of the file rte_swx_ctl.h.
π Author π
Generated automatically by Doxygen for DPDK, straight from the source code. Not a human, not a group chat, just Doxygen doing its thing π
ok so the tea: both fields are indexed by RTE_COLORS, so whichever color the meter tags something as, that's the bucket that gets the +1 packet / +bytes. no cap.
and that's the whole page bestie, we ate π
β¨ this was served up by DPDK, Version 25.11.3, page rte_swx_ctl_meter_stats(3) β periodt ππ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms