DPDK  2.0.0
Data Fields
rte_hash Struct Reference

#include <rte_hash.h>

Data Fields

char name [RTE_HASH_NAMESIZE]
uint32_t entries
uint32_t bucket_entries
uint32_t key_len
rte_hash_function hash_func
uint32_t hash_func_init_val
uint32_t num_buckets
uint32_t bucket_bitmask
hash_sig_t sig_msb
uint8_t * sig_tbl
uint32_t sig_tbl_bucket_size
uint8_t * key_tbl
uint32_t key_tbl_key_size

Detailed Description

A hash table structure.

Field Documentation

uint32_t bucket_bitmask

Bitmask for getting bucket index from hash signature.

uint32_t bucket_entries

Bucket entries.

uint32_t entries

Total table entries.

rte_hash_function hash_func

Function used to calculate hash.

uint32_t hash_func_init_val

Init value used by hash_func.

uint32_t key_len

Length of hash key.

uint8_t* key_tbl

Flat array of key value buckets.

uint32_t key_tbl_key_size

Keys may be padded for alignment reasons, and this is the key size used by key_tbl.

char name[RTE_HASH_NAMESIZE]

Name of the hash.

uint32_t num_buckets

Number of buckets in table.

hash_sig_t sig_msb

MSB is always set in valid signatures.

uint8_t* sig_tbl

Flat array of hash signature buckets.

uint32_t sig_tbl_bucket_size

Signature buckets may be padded for alignment reasons, and this is the bucket size used by sig_tbl.


The documentation for this struct was generated from the following file: