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:1
  • uint32_t hits_set:1
  • uint32_t bytes_set:1
  • uint32_t reserved:29
  • uint64_t hits
  • uint64_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: reserved is [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