rte_swx_learner_stats(3)

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

✨ NAME ✨

rte_swx_learner_stats β€” bestie, this is the learner table stats situation, straight out of the DPDK Library Functions Manual (it's rte_swx_learner_stats(3) iykyk) πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_swx_ctl.h>

πŸŽ€ Data Fields

  • uint64_t n_pkts_hit
  • uint64_t n_pkts_miss
  • uint64_t n_pkts_learn_ok
  • uint64_t n_pkts_learn_err
  • uint64_t n_pkts_rearm
  • uint64_t n_pkts_forget
  • uint64_t * n_pkts_action

πŸ¦‹ Detailed Description πŸ¦‹

Okay so this struct is literally the learner table statistics. That's it, that's the vibe ✨

Fr fr it's defined at line 675 of file rte_swx_ctl.h β€” noted, no cap.

πŸ‘‘ Field Documentation πŸ‘‘

⭐ uint64_t n_pkts_hit

The number of packets where the lookup hit. Slay πŸ’…

Defined at line 677 of file rte_swx_ctl.h.

⭐ uint64_t n_pkts_miss

The number of packets where the lookup missed 😭

Defined at line 680 of file rte_swx_ctl.h.

⭐ uint64_t n_pkts_learn_ok

The number of packets that learned successfully β€” ate and left no crumbs πŸŽ€

Defined at line 683 of file rte_swx_ctl.h.

⭐ uint64_t n_pkts_learn_err

The number of packets that hit a learning error πŸ’€ (it happens, we don't judge)

Defined at line 686 of file rte_swx_ctl.h.

⭐ uint64_t n_pkts_rearm

The number of packets with a rearm event πŸ”₯

Defined at line 689 of file rte_swx_ctl.h.

⭐ uint64_t n_pkts_forget

The number of packets with a forget event πŸ™ˆ

Defined at line 692 of file rte_swx_ctl.h.

⭐ uint64_t* n_pkts_action

The number of packets β€” and yes, either lookup hit or lookup miss counts here β€” per pipeline action 🫢

It's an array of pipeline n_actions elements, indexed by the pipeline-level action_id. Which means, hear me out: this array has the same size for all the tables within the same pipeline. Iconic consistency, honestly 🌈

Defined at line 698 of file rte_swx_ctl.h.


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for DPDK from the source code. Not a human bestie, a robot bestie πŸ€–βœ¨


Just a lil reminder that all these fields are uint64_t counters except n_pkts_action, which is a uint64_t * pointer into that per-pipeline action array β€” keep the types exact, she's sensitive about that πŸ’…

That's the whole page, bestie β€” mwah! πŸ“ This lil gem came from DPDK, Version 26.03.0, under the rte_swx_learner_stats(3) name. Go forth and count your packets πŸ’–πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from