rte_rcu_qs...parameters(3)
NAME π
okay so bestie, this is rte_rcu_qs...parameters(3) from the Library Functions Manual β and the main character here is rte_rcu_qsbr_dq_parameters. That's the name, periodt. It's the parameters used when creating the defer queue, and yes we're gonna go through every single field like the organized icon we are. π«Ά
SYNOPSIS β¨
#include <rte_rcu_qsbr.h>
π Data Fields π
const char * nameuint32_t flagsuint32_t sizeuint32_t esizeuint32_t trigger_reclaim_limituint32_t max_reclaim_sizerte_rcu_qsbr_free_resource_t free_fnvoid * pstruct rte_rcu_qsbr * v
Detailed Description π
Parameters used when creating the defer queue.
Definition at line 148 of file rte_rcu_qsbr.h.
Field Documentation π
const char* name
Name of the queue. That's it, that's the whole field, bestie.
Definition at line 149 of file rte_rcu_qsbr.h.
uint32_t flags
Flags to control API behaviors β literally what it says on the tin. β¨
Definition at line 151 of file rte_rcu_qsbr.h.
uint32_t size
Number of entries in queue. Typically, this will be the same as the maximum number of entries supported in the lock free data structure. Heads up though: data structures with unbounded number of entries is not supported currently. So don't come at it with an unbounded situation, okay? π
Definition at line 153 of file rte_rcu_qsbr.h.
uint32_t esize
Size (in bytes) of each element in the defer queue. This has to be multiple of 4B β no cap, that's the rule. π¦
Definition at line 160 of file rte_rcu_qsbr.h.
uint32_t trigger_reclaim_limit
Trigger automatic reclamation after the defer queue has at least these many resources waiting. This auto reclamation is triggered in rte_rcu_qsbr_dq_enqueue API call. If this is greater than 'size', auto reclamation is not triggered. If this is set to 0, auto reclamation is triggered in every call to rte_rcu_qsbr_dq_enqueue API. So yeah, this field is kind of the vibe check for when cleanup kicks in. π₯
Definition at line 164 of file rte_rcu_qsbr.h.
uint32_t max_reclaim_size
When automatic reclamation is enabled, reclaim at the max these many resources. This should contain a valid value, if auto reclamation is on. Setting this to 'size' or greater will reclaim all possible resources currently on the defer queue. Very "go big or go home" of it, honestly. π
Definition at line 174 of file rte_rcu_qsbr.h.
rte_rcu_qsbr_free_resource_t free_fn
Function to call to free the resource. Simple, iconic, necessary. π«Ά
Definition at line 180 of file rte_rcu_qsbr.h.
void* p
Pointer passed to the free function. Typically, this is the pointer to the data structure to which the resource to free belongs. This can be NULL. Lowkey important to know, bestie. πΈ
Definition at line 182 of file rte_rcu_qsbr.h.
struct rte_rcu_qsbr* v
RCU QSBR variable to use for this defer queue
Definition at line 187 of file rte_rcu_qsbr.h.
Author π
Generated automatically by Doxygen for DPDK from the source code. periodt. β¨
mwah π β this one's from DPDK, Version 26.03.0. That's the tea, bestie; now go slay those defer queues. π§β¨
π¦ 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