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 * 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

🌸 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