FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
cnat_db_scanner.c File Reference
+ Include dependency graph for cnat_db_scanner.c:

Go to the source code of this file.

Data Structures

struct  cnat_db_scanner_main_t
 

Macros

#define CNAT_DB_SCANNER_TURN_ON   5 /* just an arbitary number for easier debugging */
 

Functions

static void check_session_for_expiry (cnat_session_entry_t *sdb, u8 timeout_dirty)
 
static u8 handle_db_scan_for_sessions (cnat_main_db_entry_t *db, int *dirty_index, uword db_index)
 
static void cnat_db_scanner (void)
 
static void walk_the_db (void)
 
static uword cnat_db_scanner_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tcnat_db_scanner_init (vlib_main_t *vm)
 
void cnat_scanner_db_process_turn_on (vlib_main_t *vm)
 

Variables

u32 translation_create_count
 
u32 translation_delete_count
 
u32 translation_create_rate
 
u32 translation_delete_rate
 
u32 in2out_forwarding_count
 
u32 out2in_forwarding_count
 
u32 in2out_forwarding_rate
 
u32 out2in_forwarding_rate
 
u32 nat44_active_translations
 
u32 num_entries
 
uword check_these_pool_indices [2 *MAX_DB_ENTRY_SELECTED_PER_SCAN]
 
cnat_db_scanner_main_t cnat_db_scanner_main
 
vlib_node_registration_t cnat_db_scanner_node
 (constructor) VLIB_REGISTER_NODE (cnat_db_scanner_node) More...
 

Macro Definition Documentation

#define CNAT_DB_SCANNER_TURN_ON   5 /* just an arbitary number for easier debugging */

Definition at line 47 of file cnat_db_scanner.c.

Function Documentation

static void check_session_for_expiry ( cnat_session_entry_t sdb,
u8  timeout_dirty 
)
inlinestatic

Definition at line 63 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void cnat_db_scanner ( void  )
static

Definition at line 179 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword cnat_db_scanner_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 418 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

clib_error_t* cnat_db_scanner_init ( vlib_main_t vm)

Definition at line 475 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_scanner_db_process_turn_on ( vlib_main_t vm)

Definition at line 485 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 handle_db_scan_for_sessions ( cnat_main_db_entry_t db,
int *  dirty_index,
uword  db_index 
)
static

Definition at line 125 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void walk_the_db ( void  )
static

Definition at line 327 of file cnat_db_scanner.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uword check_these_pool_indices[2 *MAX_DB_ENTRY_SELECTED_PER_SCAN]

Definition at line 45 of file cnat_db_scanner.c.

cnat_db_scanner_main_t cnat_db_scanner_main

Definition at line 60 of file cnat_db_scanner.c.

vlib_node_registration_t cnat_db_scanner_node
Initial value:
= {
.function = cnat_db_scanner_fn,
.name = "cnat-db-scanner",
.process_log2_n_stack_bytes = 18,
}
static uword cnat_db_scanner_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (cnat_db_scanner_node)

Definition at line 468 of file cnat_db_scanner.c.

u32 in2out_forwarding_count

Definition at line 40 of file cnat_db_scanner.c.

u32 in2out_forwarding_rate

Definition at line 41 of file cnat_db_scanner.c.

u32 nat44_active_translations

Definition at line 43 of file cnat_db_scanner.c.

u32 num_entries

Definition at line 44 of file cnat_db_scanner.c.

u32 out2in_forwarding_count

Definition at line 40 of file cnat_db_scanner.c.

u32 out2in_forwarding_rate

Definition at line 41 of file cnat_db_scanner.c.

u32 translation_create_count

Definition at line 37 of file cnat_db_scanner.c.

u32 translation_create_rate

Definition at line 38 of file cnat_db_scanner.c.

u32 translation_delete_count

Definition at line 37 of file cnat_db_scanner.c.

u32 translation_delete_rate

Definition at line 38 of file cnat_db_scanner.c.