rte_mtr_stats(3)

πŸ’– rte_mtr_stats πŸ’–

okay bestie, welcome to the rte_mtr_stats(3) page β€” it's a Library Functions Manual situation, and it's genuinely one of the shortest glow-ups in the DPDK cinematic universe. sit down, hydrate, let's go 🫢


✨ NAME ✨

rte_mtr_stats β€” the stats counter struct, no cap πŸ’…


✨ SYNOPSIS ✨

#include <rte_mtr.h>

πŸŽ€ Data Fields πŸŽ€

  • uint64_t n_pkts [RTE_COLORS]
  • uint64_t n_bytes [RTE_COLORS]
  • uint64_t n_pkts_dropped
  • uint64_t n_bytes_dropped

✨ Detailed Description ✨

It's giving statistics counters. that's the whole vibe, that's the whole description πŸ¦‹

Definition at line 90 of file rte_mtr.h.


✨ Field Documentation ✨

🌸 uint64_t n_pkts[RTE_COLORS] 🌸

Number of packets passed by the policer (per color). yes girly, per color β€” you get one of these for each of the RTE_COLORS, so it's an array, not a single lonely number ✨

Definition at line 92 of file rte_mtr.h.

🌸 uint64_t n_bytes[RTE_COLORS] 🌸

Number of bytes passed by the policer (per color). same energy as n_pkts, just counted in bytes this time, and again, one per color πŸ’œ

Definition at line 95 of file rte_mtr.h.

🌸 uint64_t n_pkts_dropped 🌸

Number of packets dropped by the policer. the sad counter 😭 one plain counter, no per-color array, just receipts.

Definition at line 98 of file rte_mtr.h.

🌸 uint64_t n_bytes_dropped 🌸

Number of bytes passed by the policer.

okay bestie, real talk: that is exactly what the doc says for this field. we are simply the messenger here πŸ’€ Definition at line 101 of file rte_mtr.h.

✨ Author ✨

Generated automatically by Doxygen for DPDK from the source code. not a human, not a group chat, a whole documentation generator 🧚


and that's the page, bestie!! four fields, four line numbers, zero plot twists (except that one description, and we've made our peace with it πŸ•ŠοΈ). go forth and read your counters πŸ’–βœ¨

πŸ’… this lil rewrite covers DPDK, Version 25.11.3 β€” rte_mtr_stats(3), signing off, mwah 😘🌈

πŸ“¦ where this page comes from