rte_swx_learner_stats(3)
β¨ 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_hituint64_t n_pkts_missuint64_t n_pkts_learn_okuint64_t n_pkts_learn_erruint64_t n_pkts_rearmuint64_t n_pkts_forgetuint64_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 areuint64_tcounters exceptn_pkts_action, which is auint64_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
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms