rte_hash_rcu_config(3)
β¨ rte_hash_rcu_config(3) β¨
okay so bestie, this page is from the Library Functions Manual and it's literally all about one struct π β the config for your HASH RCU QSBR setup. buckle up, it's giving "short but every field matters" energy π
πΈ NAME πΈ
rte_hash_rcu_config β the struct itself, main character of this whole page π
π¦ SYNOPSIS π¦
first things first, you gotta pull in the header:
#include <rte_hash.h>
then meet the data fields, aka the whole cast π«Ά
struct rte_rcu_qsbr * v
enum rte_hash_qsbr_mode mode
uint32_t dq_size
uint32_t trigger_reclaim_limit
uint32_t max_reclaim_size
void * key_data_ptr
rte_hash_free_key_data free_key_data_func
π DESCRIPTION π
so this is the HASH RCU QSBR configuration structure β that's it, that's the vibe β¨ it's the struct you hand over to configure how RCU QSBR behaves for your hash table.
fr fr, it's defined at line 102 of file rte_hash.h β go look, it's right there π§
π₯ FIELD DOCUMENTATION π₯
π struct rte_rcu_qsbr* v
your RCU QSBR variable. that's the whole thing, no notes π
defined at line 103 of file rte_hash.h.
π enum rte_hash_qsbr_mode mode
the mode of RCU QSBR. the RTE_HASH_QSBR_MODE_xxx value '0' is the default β and what it does is create a defer queue for reclaim π lowkey the important one.
defined at line 104 of file rte_hash.h.
π uint32_t dq_size
RCU defer queue size. default is literally total hash table entries β yes, the whole thing π
defined at line 108 of file rte_hash.h.
π uint32_t trigger_reclaim_limit
the threshold that triggers auto reclaim β like, when do we start cleaning up.
defined 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.
defined at line 113 of file rte_hash.h.
π void* key_data_ptr
pointer passed to the free function. typically it's the pointer to the data structure that the resource to free (the key-data) belongs to. and yes β this can be NULL π
defined at line 117 of file rte_hash.h.
π rte_hash_free_key_data free_key_data_func
the function to call to free the resource (key-data). your cleanup bestie π«Ά
defined at line 122 of file rte_hash.h.
π AUTHOR π
generated automatically by Doxygen for DPDK from the source code β not me, not you, the robot did it π€β¨
and that's the page!! no cap, every field accounted for ππ
sign-off szn π β this lovely little page is DPDK, Version 26.03.0, and it lives under the rte_hash_rcu_config(3) name forever. bye bestie, go configure some RCU π¦π
π¦ 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