CNDP  22.08.0
cne_fbk_hash_table Struct Reference

#include <cne_fbk_hash.h>

Data Fields

char name [CNE_FBK_HASH_NAMESIZE]
 
uint32_t entries
 
uint32_t entries_per_bucket
 
uint32_t used_entries
 
uint32_t bucket_mask
 
uint32_t bucket_shift
 
cne_fbk_hash_fn hash_func
 
uint32_t init_val
 
union cne_fbk_hash_entry t []
 

Detailed Description

The four-byte key hash table structure.

Definition at line 68 of file cne_fbk_hash.h.

Field Documentation

◆ name

Name of the hash.

Definition at line 69 of file cne_fbk_hash.h.

◆ entries

uint32_t entries

Total number of entries.

Definition at line 70 of file cne_fbk_hash.h.

◆ entries_per_bucket

uint32_t entries_per_bucket

Number of entries in a bucket.

Definition at line 71 of file cne_fbk_hash.h.

◆ used_entries

uint32_t used_entries

How many entries are used.

Definition at line 72 of file cne_fbk_hash.h.

◆ bucket_mask

uint32_t bucket_mask

To find which bucket the key is in.

Definition at line 73 of file cne_fbk_hash.h.

◆ bucket_shift

uint32_t bucket_shift

Convert bucket to table offset.

Definition at line 74 of file cne_fbk_hash.h.

◆ hash_func

cne_fbk_hash_fn hash_func

The hash function.

Definition at line 75 of file cne_fbk_hash.h.

◆ init_val

uint32_t init_val

For initialising hash function.

Definition at line 76 of file cne_fbk_hash.h.

◆ t

union cne_fbk_hash_entry t[]

A flat table of all buckets.

Definition at line 76 of file cne_fbk_hash.h.


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