FD.io VPP
v16.06
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
union | va_lookup_key |
Macros | |
#define | FRAG_DEBUG 1 |
#define | VA_TOTAL_ENTRIES (64*1024) |
#define | VA_ENTRY_PER_BUCKET (8) /* make sure size is power of 2 for circular FIFO */ |
#define | VA_BUCKET_MASK (VA_ENTRY_PER_BUCKET -1) |
#define | VA_BUCKETS (VA_TOTAL_ENTRIES / VA_ENTRY_PER_BUCKET) |
#define | VA_KEY_SIZE 12 |
#define | FRAG_DEBUG_PRINTF1(a) |
#define | FRAG_DEBUG_PRINTF2(a, b) |
#define | FRAG_DEBUG_PRINTF3(a, b, c) |
#define | FRAG_DEBUG_PRINTF4(a, b, c, d) |
#define | FRAG_DEBUG_PRINTF5(a, b, c, d, e) |
#define | FRAG_DEBUG_PRINTF6(a, b, c, d, e, f) |
Typedefs | |
typedef struct _va_entry | va_entry_t |
typedef struct _va_keys | va_keys |
typedef struct _va_bucket_t | va_bucket_t |
Functions | |
void | va_bucket_init () |
void | va_db_add_new_entry (u32 bucket_index, va_lookup_key *) |
int | va_db_delete_entry (u32 bucket_index, va_lookup_key *) |
va_entry_t * | va_db_lookup (u32 bucket_index, va_lookup_key *key) |
Variables | |
va_bucket_t | va_bucket [] |
#define FRAG_DEBUG 1 |
Definition at line 25 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF1 | ( | a | ) |
Definition at line 74 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF2 | ( | a, | |
b | |||
) |
Definition at line 79 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF3 | ( | a, | |
b, | |||
c | |||
) |
Definition at line 84 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF4 | ( | a, | |
b, | |||
c, | |||
d | |||
) |
Definition at line 89 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) |
Definition at line 94 of file cnat_va_db.h.
#define FRAG_DEBUG_PRINTF6 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
Definition at line 99 of file cnat_va_db.h.
#define VA_BUCKET_MASK (VA_ENTRY_PER_BUCKET -1) |
Definition at line 31 of file cnat_va_db.h.
#define VA_BUCKETS (VA_TOTAL_ENTRIES / VA_ENTRY_PER_BUCKET) |
Definition at line 32 of file cnat_va_db.h.
#define VA_ENTRY_PER_BUCKET (8) /* make sure size is power of 2 for circular FIFO */ |
Definition at line 30 of file cnat_va_db.h.
#define VA_KEY_SIZE 12 |
Definition at line 33 of file cnat_va_db.h.
#define VA_TOTAL_ENTRIES (64*1024) |
Definition at line 29 of file cnat_va_db.h.
typedef struct _va_bucket_t va_bucket_t |
typedef struct _va_entry va_entry_t |
typedef struct _va_keys va_keys |
void va_bucket_init | ( | ) |
Definition at line 41 of file cnat_va_db.c.
|
inline |
|
inline |
Definition at line 172 of file cnat_va_db.c.
|
inline |
va_bucket_t va_bucket[] |
Definition at line 39 of file cnat_va_db.c.