rte_swx_table_stats(3)
π rte_swx_table_stats β a manual page, but make it cute π
okay bestie, welcome to the rte_swx_table_stats(3) page from the Library Functions Manual π
she's a struct, she's iconic, and she's lowkey just a little bundle of counters, but we are going to give her the main character energy she deserves. no cap.
β¨ NAME β¨
rte_swx_table_stats β literally the name, that's it, that's the whole name π
β¨ SYNOPSIS β¨
so first things first, you gotta pull her in:
#include <rte_swx_ctl.h>
πΈ Data Fields πΈ
and inside her? these three fields. that's the whole squad:
uint64_t n_pkts_hituint64_t n_pkts_missuint64_t * n_pkts_action
β¨ Detailed Description β¨
okay so what IS she? she's Table statistics. that's it, that's her whole job description fr fr. she holds the numbers about what your table has been up to.
she's defined at line 377 of the file rte_swx_ctl.h, if you ever need to go say hi in person π«Ά
β¨ Field Documentation β¨
okay now let's meet the girls one by one, we're doing intros π¦
π uint64_t n_pkts_hit
the number of packets with a lookup hit. that's the count of packets where the lookup actually found something β the slay outcome π
she lives at line 379 of rte_swx_ctl.h.
π uint64_t n_pkts_miss
the number of packets with a lookup miss. yeah so these are the ones that didn't find anything. it's giving sad but we still count them, everyone gets a number π₯
she lives at line 382 of rte_swx_ctl.h.
π uint64_t* n_pkts_action
okay this one's the overachiever, pay attention π£
- the number of packets (with either lookup hit or miss) per pipeline action.
- it's described as an array of pipeline
n_actionselements, indexed by the pipeline-levelaction_id. - and because of that indexing, this array has the same size for all the tables within the same pipeline. like, every table in that pipeline is matching, periodt. no size drama.
she lives at line 389 of rte_swx_ctl.h.
β¨ Author β¨
Generated automatically by Doxygen for DPDK from the source code. so like, nobody hand-wrote this, the robot did it, and honestly? the robot ate πβ¨
okay bestie quick recap so you don't forget: three fields,n_pkts_hit,n_pkts_miss, andn_pkts_action, all about packets in your table, and the action one is per-pipeline-action indexed byaction_id. that's the whole vibe check. go forth and count packets π
and that's the page bestie!! brought to you by DPDK, Version 25.11.3 β that's the whole footer, mwah, bye, love you, drink water, check your lookup hits ππ π¦β¨
π¦ 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