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