rte_hash_rcu_config(3)
π NAME π
rte_hash_rcu_config β bestie, this is the struct that holds all your RCU QSBR config for a hash table. It's from the DPDK Library Functions Manual, and no cap, it's basically the glow-up settings page for your hash table's RCU behavior. π¦
β¨ SYNOPSIS β¨
#include <rte_hash.h>
π Data Fields
struct rte_rcu_qsbr * venum rte_hash_qsbr_mode modeuint32_t dq_sizeuint32_t trigger_reclaim_limituint32_t max_reclaim_sizevoid * key_data_ptrrte_hash_free_key_data free_key_data_func
πΈ Detailed Description πΈ
It's giving "HASH RCU QSBR configuration structure." That's the whole vibe β you fill this baby in, hand it over, and the hash table knows how to do its RCU QSBR thing. π
Definition at line 102 of file rte_hash.h.
π Field Documentation π
π struct rte_rcu_qsbr* v
The RCU QSBR variable, queen. This is the actual one. β¨
Definition at line 103 of file rte_hash.h.
π¦ enum rte_hash_qsbr_mode mode
Mode of RCU QSBR. It's RTE_HASH_QSBR_MODE_xxx, and '0' is the default β which means create defer queue for reclaim. Slay. π
Definition at line 104 of file rte_hash.h.
π uint32_t dq_size
RCU defer queue size. Default is literally just the total hash table entries β it matches your table, periodt. π
Definition at line 108 of file rte_hash.h.
β uint32_t trigger_reclaim_limit
The threshold that triggers auto reclaim. Hit this number and the reclaiming just starts happening on its own. Main character energy fr. π₯
Definition at line 112 of file rte_hash.h.
π uint32_t max_reclaim_size
Max entries to reclaim in one go. Default is RTE_HASH_RCU_DQ_RECLAIM_MAX. Don't overthink it, just know it's a cap on the reclaim batch. π
Definition at line 113 of file rte_hash.h.
π§ void* key_data_ptr
Pointer passed to the free function. Typically, this is the pointer to the data structure to which the resource to free (key-data) belongs. And bestie, this one can be NULL β no pressure, she's flexible. π«Ά
Definition at line 117 of file rte_hash.h.
π rte_hash_free_key_data free_key_data_func
Function to call to free the resource (key-data). You bring the cleanup logic, she'll call it. Iykyk. π
Definition at line 122 of file rte_hash.h.
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. Not a human, just a lil robot doing its thing. π€β¨
okay that's the whole page, mwah π β this cutie came straight out of DPDK, Version 25.11.3, under rte_hash_rcu_config(3). Go set up your RCU config bestie, you got this π¦π
π¦ 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