rte_hash_parameters(3)
π rte_hash_parameters π
okay so bestie, we're digging into rte_hash_parameters β it's a page from the Library Functions Manual, and it's basically the β¨blueprintβ¨ for making a hash table in DPDK. no cap, this one's a struct, so it's giving "fill out the form before we let you in" energy.
β¨ SYNOPSIS β¨
plot twist: it's a struct, so you just include the header and start filling in fields. first tho:
#include <rte_hash.h>
π¦ Data Fields
const char * nameuint32_t entriesuint32_t reserveduint32_t key_lenrte_hash_function hash_funcuint32_t hash_func_init_valint socket_iduint8_t extra_flag
πΈ Detailed Description πΈ
these are the parameters used when creating the hash table. that's the whole vibe. that's the job. π§
Definition at line 82 of file rte_hash.h.
π Field Documentation π
const char* name
Name of the hash. label your baby, bestie β you're gonna want to know which one's which later. π·οΈ
Definition at line 83 of file rte_hash.h.
uint32_t entries
Total hash table entries. like, how many slots do you want in this thing. pick a number, any number (well, a uint32_t number). π’
Definition at line 84 of file rte_hash.h.
uint32_t reserved
Unused field. Should be set to 0. okay this one is literally just vibes β it does nothing, so set it to 0 and move on, don't be weird about it. π«
Definition at line 85 of file rte_hash.h.
uint32_t key_len
Length of hash key. how big is each key, in bytes. measure twice, hash once. π
Definition at line 86 of file rte_hash.h.
rte_hash_function hash_func
Primary Hash function used to calculate hash. the main character of this struct fr fr β this is the function doing the actual hashing. π
Definition at line 87 of file rte_hash.h.
uint32_t hash_func_init_val
Init value used by hash_func. the little starter value your hash function gets handed before it starts cooking. π
Definition at line 88 of file rte_hash.h.
int socket_id
NUMA Socket ID for memory. where in the NUMA party the memory lives. pick your socket wisely, iykyk. π
Definition at line 89 of file rte_hash.h.
uint8_t extra_flag
Indicate if additional parameters are present. literally just a "hey, is there more stuff coming?" flag. set it, and the extra params slide in. π
Definition at line 90 of file rte_hash.h.
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. so no human wrote this by hand β the docs machine did it and honestly it ate. π€β¨
aaaand that's the whole page, bestie! π this one came from DPDK, Version 25.11.3 β rte_hash_parameters(3), slay, that's a wrap, periodt. π
π
π¦ 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