FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
cnat_va_db.h File Reference
+ Include dependency graph for cnat_va_db.h:
+ This graph shows which files directly or indirectly include this file:

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_tva_db_lookup (u32 bucket_index, va_lookup_key *key)
 

Variables

va_bucket_t va_bucket []
 

Macro Definition Documentation

#define FRAG_DEBUG   1

Definition at line 25 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF1 (   a)
Value:
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
u32 frag_debug_flag

Definition at line 74 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF2 (   a,
 
)
Value:
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
u32 frag_debug_flag

Definition at line 79 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF3 (   a,
  b,
  c 
)
Value:
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
svmdb_client_t * c
u32 frag_debug_flag

Definition at line 84 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF4 (   a,
  b,
  c,
 
)
Value:
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
svmdb_client_t * c
u32 frag_debug_flag

Definition at line 89 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF5 (   a,
  b,
  c,
  d,
 
)
Value:
PLATFORM_DEBUG_PRINT(a, b, c, d, e); \
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
svmdb_client_t * c
u32 frag_debug_flag

Definition at line 94 of file cnat_va_db.h.

#define FRAG_DEBUG_PRINTF6 (   a,
  b,
  c,
  d,
  e,
 
)
Value:
PLATFORM_DEBUG_PRINT(a, b, c, d, e, f); \
}
a
Definition: bitmap.h:516
#define PLATFORM_DEBUG_PRINT(...)
svmdb_client_t * c
u32 frag_debug_flag

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 Documentation

typedef struct _va_bucket_t va_bucket_t
typedef struct _va_entry va_entry_t
typedef struct _va_keys va_keys

Function Documentation

void va_bucket_init ( )

Definition at line 41 of file cnat_va_db.c.

void va_db_add_new_entry ( u32  bucket_index,
va_lookup_key  
)
inline

Definition at line 55 of file cnat_va_db.c.

+ Here is the call graph for this function:

int va_db_delete_entry ( u32  bucket_index,
va_lookup_key  
)
inline

Definition at line 172 of file cnat_va_db.c.

va_entry_t* va_db_lookup ( u32  bucket_index,
va_lookup_key key 
)
inline

Definition at line 114 of file cnat_va_db.c.

+ Here is the caller graph for this function:

Variable Documentation

va_bucket_t va_bucket[]

Definition at line 39 of file cnat_va_db.c.