FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
sess_mgmt_node.c File Reference
+ Include dependency graph for sess_mgmt_node.c:

Go to the source code of this file.

Macros

#define foreach_acl_fa_cleaner_error
 

Enumerations

enum  acl_fa_cleaner_error_t { ACL_FA_CLEANER_N_ERROR }
 

Functions

static u64 fa_session_get_shortest_timeout (acl_main_t *am)
 
static u8format_ip6_session_bihash_kv (u8 *s, va_list *args)
 
static u8format_ip4_session_bihash_kv (u8 *s, va_list *args)
 
static void acl_fa_verify_init_sessions (acl_main_t *am)
 
static u64 fa_session_get_list_timeout (acl_main_t *am, fa_session_t *sess)
 
static u64 acl_fa_get_list_head_expiry_time (acl_main_t *am, acl_fa_per_worker_data_t *pw, u64 now, u16 thread_index, int timeout_type)
 
static int acl_fa_conn_time_to_check (acl_main_t *am, acl_fa_per_worker_data_t *pw, u64 now, u16 thread_index, u32 session_index)
 
static int acl_fa_check_idle_sessions (acl_main_t *am, u16 thread_index, u64 now)
 
static void send_one_worker_interrupt (vlib_main_t *vm, acl_main_t *am, int thread_index)
 
static int purgatory_has_connections (vlib_main_t *vm, acl_main_t *am, int thread_index)
 
static uword acl_fa_worker_conn_cleaner_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static void send_interrupts_to_workers (vlib_main_t *vm, acl_main_t *am)
 
static uword acl_fa_session_cleaner_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
void acl_fa_enable_disable (u32 sw_if_index, int is_input, int enable_disable)
 
void show_fa_sessions_hash (vlib_main_t *vm, u32 verbose)
 

Variables

static char * acl_fa_cleaner_error_strings []
 
static vlib_node_registration_t acl_fa_session_cleaner_process_node
 (constructor) VLIB_REGISTER_NODE (acl_fa_session_cleaner_process_node) More...
 
static vlib_node_registration_t acl_fa_worker_session_cleaner_process_node
 (constructor) VLIB_REGISTER_NODE (acl_fa_worker_session_cleaner_process_node) More...
 

Macro Definition Documentation

#define foreach_acl_fa_cleaner_error
Value:
_(UNKNOWN_EVENT, "unknown event received") \
/* end of errors */

Definition at line 322 of file sess_mgmt_node.c.

Enumeration Type Documentation

Enumerator
ACL_FA_CLEANER_N_ERROR 

Definition at line 326 of file sess_mgmt_node.c.

Function Documentation

static int acl_fa_check_idle_sessions ( acl_main_t am,
u16  thread_index,
u64  now 
)
static

Definition at line 179 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int acl_fa_conn_time_to_check ( acl_main_t am,
acl_fa_per_worker_data_t pw,
u64  now,
u16  thread_index,
u32  session_index 
)
static

Definition at line 161 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void acl_fa_enable_disable ( u32  sw_if_index,
int  is_input,
int  enable_disable 
)

Definition at line 808 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u64 acl_fa_get_list_head_expiry_time ( acl_main_t am,
acl_fa_per_worker_data_t pw,
u64  now,
u16  thread_index,
int  timeout_type 
)
static

Definition at line 153 of file sess_mgmt_node.c.

+ Here is the caller graph for this function:

static uword acl_fa_session_cleaner_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 526 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void acl_fa_verify_init_sessions ( acl_main_t am)
static

Definition at line 94 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword acl_fa_worker_conn_cleaner_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 381 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u64 fa_session_get_list_timeout ( acl_main_t am,
fa_session_t sess 
)
static

Definition at line 138 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u64 fa_session_get_shortest_timeout ( acl_main_t am)
static

Definition at line 37 of file sess_mgmt_node.c.

+ Here is the caller graph for this function:

static u8* format_ip4_session_bihash_kv ( u8 s,
va_list *  args 
)
static

Definition at line 73 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_ip6_session_bihash_kv ( u8 s,
va_list *  args 
)
static

Definition at line 53 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int purgatory_has_connections ( vlib_main_t vm,
acl_main_t am,
int  thread_index 
)
static

Definition at line 365 of file sess_mgmt_node.c.

+ Here is the caller graph for this function:

static void send_interrupts_to_workers ( vlib_main_t vm,
acl_main_t am 
)
static

Definition at line 513 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_one_worker_interrupt ( vlib_main_t vm,
acl_main_t am,
int  thread_index 
)
static

Definition at line 346 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void show_fa_sessions_hash ( vlib_main_t vm,
u32  verbose 
)

Definition at line 869 of file sess_mgmt_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* acl_fa_cleaner_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_acl_fa_cleaner_error

Definition at line 334 of file sess_mgmt_node.c.

static vlib_node_registration_t acl_fa_session_cleaner_process_node
static
Initial value:
= {
.name = "acl-plugin-fa-cleaner-process",
.error_strings = acl_fa_cleaner_error_strings,
.n_next_nodes = 0,
.next_nodes = {},
}
static char * acl_fa_cleaner_error_strings[]
#define ARRAY_LEN(x)
Definition: clib.h:59
static uword acl_fa_session_cleaner_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)

(constructor) VLIB_REGISTER_NODE (acl_fa_session_cleaner_process_node)

Definition at line 342 of file sess_mgmt_node.c.

static vlib_node_registration_t acl_fa_worker_session_cleaner_process_node
static
Initial value:
= {
.name = "acl-plugin-fa-worker-cleaner-process",
.state = VLIB_NODE_STATE_INTERRUPT,
}
static uword acl_fa_worker_conn_cleaner_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)

(constructor) VLIB_REGISTER_NODE (acl_fa_worker_session_cleaner_process_node)

Definition at line 343 of file sess_mgmt_node.c.