rte_flow_query_count(3)
β¨ rte_flow_query_count β¨
okay bestie, so like β this is a page from the DPDK library manual (that's the rte_flow_query_count(3) one, section 3, library functions, iykyk π
). It's giving "struct documentation" energy and honestly? kinda iconic.
πΈ NAME πΈ
rte_flow_query_count β the little query struct that goes with RTE_FLOW_ACTION_TYPE_COUNT π
π¦ SYNOPSIS π¦
First things first, you gotta pull in the header, no cap:
#include <rte_flow.h>
π Data Fields π
Here's the whole squad, in the exact order they show up:
uint32_t reset:1uint32_t hits_set:1uint32_t bytes_set:1uint32_t reserved:29uint64_t hitsuint64_t bytes
π Detailed Description π
This one pairs with RTE_FLOW_ACTION_TYPE_COUNT (the query flavor, specifically). It's the query structure you use to retrieve and reset your flow rule counters. Bestie it literally does both, so productive of it.
fr fr, it lives at definition at line 3459 of file rte_flow.h. π
π§ Field Documentation π§
π uint32_t reset
Reset counters after query [in].
Definition at line 3460 of file rte_flow.h.
π uint32_t hits_set
hits field is set [out].
Definition at line 3461 of file rte_flow.h.
π uint32_t bytes_set
bytes field is set [out].
Definition at line 3462 of file rte_flow.h.
π uint32_t reserved
Reserved β must be zero [in, out]. Not me stressing this enough: zero. zap it. nada. π
Definition at line 3463 of file rte_flow.h.
π uint64_t hits
Number of hits for this rule [out].
Definition at line 3464 of file rte_flow.h.
π uint64_t bytes
Number of bytes through this rule [out].
Definition at line 3465 of file rte_flow.h.
π Author π
Not a human, bestie β this was Generated automatically by Doxygen for DPDK from the source code. The robots ate. π€β¨
lowkey reminder:reservedis[in, out]and must be zero, so don't be out here setting vibes that aren't zero or you're gonna have a bad time. π
okay that's the whole page, no notes π«Ά this was DPDK, Version 25.11.3, the rte_flow_query_count(3) page β mwah, slay, periodt. ππΈπ
π¦ 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