rte_table_hash_params(3)

✨ rte_table_hash_params ✨

okay bestie, so this is rte_table_hash_params from section 3 of the Library Functions Manual, and it's literally just the struct you hand over when you wanna build a hash table πŸ’–. no cap, it's a data-fields-only page, but we're gonna read it together like it's the group chat. 🫢


🌸 NAME 🌸

rte_table_hash_params β€” the parameter struct that tells DPDK how to build your hash table, bestie. it's giving "here's everything you need to know about my keys". πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <rte_table_hash.h>

πŸ¦‹ Data Fields πŸ¦‹

  • const char * name
  • uint32_t key_size
  • uint32_t key_offset
  • uint8_t * key_mask
  • uint32_t n_keys
  • uint32_t n_buckets
  • rte_table_hash_op_hash f_hash
  • uint64_t seed

πŸ’… Detailed Description πŸ’…

Hash table parameters. periodt. that's the whole vibe β€” this struct is the care package you pass in so the hash table knows what it's working with. πŸ’–

Definition at line 63 of file rte_table_hash.h.


πŸ‘‘ Field Documentation πŸ‘‘

okay now the main character energy: every single field, one by one, with receipts. πŸ’…

⭐ const char* name

Name.

Definition at line 65 of file rte_table_hash.h.

🌈 uint32_t key_size

Key size (number of bytes).

Definition at line 68 of file rte_table_hash.h.

πŸ“ uint32_t key_offset

Byte offset within packet meta-data where the key is located.

Definition at line 71 of file rte_table_hash.h.

🧚 uint8_t* key_mask

Key mask.

Definition at line 74 of file rte_table_hash.h.

πŸ’œ uint32_t n_keys

Number of keys.

Definition at line 77 of file rte_table_hash.h.

πŸ”₯ uint32_t n_buckets

Number of buckets.

Definition at line 80 of file rte_table_hash.h.

✨ rte_table_hash_op_hash f_hash

Hash function.

Definition at line 83 of file rte_table_hash.h.

πŸŽ€ uint64_t seed

Seed value for the hash function.

Definition at line 86 of file rte_table_hash.h.


πŸ’€ Author πŸ’€

Generated automatically by Doxygen for DPDK from the source code. not me getting my whole bio written by a doc generator, iconic honestly. πŸ™ˆ


and that's the whole page bestie, slay 🫢 this cutie came to you courtesy of DPDK, Version 25.11.3 β€” go build a hash table, you've got this πŸ’–βœ¨

πŸ“¦ where this page comes from