FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
application_local.c File Reference
+ Include dependency graph for application_local.c:

Go to the source code of this file.

Functions

static void ct_enable_disable_main_pre_input_node (u8 is_add)
 
static ct_connection_tct_connection_alloc (void)
 
static ct_connection_tct_connection_get (u32 ct_index)
 
static void ct_connection_free (ct_connection_t *ct)
 
session_tct_session_get_peer (session_t *s)
 
void ct_session_endpoint (session_t *ll, session_endpoint_t *sep)
 
int ct_session_connect_notify (session_t *ss)
 
static int ct_init_local_session (app_worker_t *client_wrk, app_worker_t *server_wrk, ct_connection_t *ct, session_t *ls, session_t *ll)
 
static int ct_connect (app_worker_t *client_wrk, session_t *ll, session_endpoint_cfg_t *sep)
 
static u32 ct_start_listen (u32 app_listener_index, transport_endpoint_t *tep)
 
static u32 ct_stop_listen (u32 ct_index)
 
static transport_connection_tct_listener_get (u32 ct_index)
 
static int ct_session_connect (transport_endpoint_cfg_t *tep)
 
static void ct_session_close (u32 ct_index, u32 thread_index)
 
static transport_connection_tct_session_get (u32 ct_index, u32 thread_index)
 
static u8format_ct_connection_id (u8 *s, va_list *args)
 
static int ct_custom_tx (void *session, u32 max_burst_size)
 
static int ct_app_rx_evt (transport_connection_t *tc)
 
static u8format_ct_listener (u8 *s, va_list *args)
 
static u8format_ct_connection (u8 *s, va_list *args)
 
static u8format_ct_session (u8 *s, va_list *args)
 
int ct_session_tx (session_t *s)
 
static clib_error_tct_transport_init (vlib_main_t *vm)
 

Variables

static ct_connection_tconnections
 
static const transport_proto_vft_t cut_thru_proto
 

Function Documentation

◆ ct_app_rx_evt()

static int ct_app_rx_evt ( transport_connection_t tc)
static

Definition at line 480 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_connect()

static int ct_connect ( app_worker_t client_wrk,
session_t ll,
session_endpoint_cfg_t sep 
)
static

Definition at line 231 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_connection_alloc()

static ct_connection_t* ct_connection_alloc ( void  )
static

Definition at line 44 of file application_local.c.

+ Here is the caller graph for this function:

◆ ct_connection_free()

static void ct_connection_free ( ct_connection_t ct)
static

Definition at line 65 of file application_local.c.

+ Here is the caller graph for this function:

◆ ct_connection_get()

static ct_connection_t* ct_connection_get ( u32  ct_index)
static

Definition at line 57 of file application_local.c.

+ Here is the caller graph for this function:

◆ ct_custom_tx()

static int ct_custom_tx ( void *  session,
u32  max_burst_size 
)
static

Definition at line 471 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_enable_disable_main_pre_input_node()

static void ct_enable_disable_main_pre_input_node ( u8  is_add)
static

Definition at line 22 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_init_local_session()

static int ct_init_local_session ( app_worker_t client_wrk,
app_worker_t server_wrk,
ct_connection_t ct,
session_t ls,
session_t ll 
)
static

Definition at line 166 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_listener_get()

static transport_connection_t* ct_listener_get ( u32  ct_index)
static

Definition at line 343 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_session_close()

static void ct_session_close ( u32  ct_index,
u32  thread_index 
)
static

Definition at line 412 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_session_connect()

static int ct_session_connect ( transport_endpoint_cfg_t tep)
static

Definition at line 349 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_session_connect_notify()

int ct_session_connect_notify ( session_t ss)

Definition at line 92 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_session_endpoint()

void ct_session_endpoint ( session_t ll,
session_endpoint_t sep 
)

Definition at line 82 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_session_get()

static transport_connection_t* ct_session_get ( u32  ct_index,
u32  thread_index 
)
static

Definition at line 439 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_session_get_peer()

session_t* ct_session_get_peer ( session_t s)

Definition at line 73 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_session_tx()

int ct_session_tx ( session_t s)

Definition at line 564 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ct_start_listen()

static u32 ct_start_listen ( u32  app_listener_index,
transport_endpoint_t tep 
)
static

Definition at line 316 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_stop_listen()

static u32 ct_stop_listen ( u32  ct_index)
static

Definition at line 333 of file application_local.c.

+ Here is the call graph for this function:

◆ ct_transport_init()

static clib_error_t* ct_transport_init ( vlib_main_t vm)
static

Definition at line 580 of file application_local.c.

+ Here is the call graph for this function:

◆ format_ct_connection()

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

Definition at line 506 of file application_local.c.

+ Here is the call graph for this function:

◆ format_ct_connection_id()

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

Definition at line 445 of file application_local.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_ct_listener()

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

Definition at line 493 of file application_local.c.

◆ format_ct_session()

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

Definition at line 526 of file application_local.c.

Variable Documentation

◆ connections

ct_connection_t* connections
static

Definition at line 19 of file application_local.c.

◆ cut_thru_proto

const transport_proto_vft_t cut_thru_proto
static
Initial value:
= {
.start_listen = ct_start_listen,
.stop_listen = ct_stop_listen,
.get_listener = ct_listener_get,
.connect = ct_session_connect,
.close = ct_session_close,
.get_connection = ct_session_get,
.custom_tx = ct_custom_tx,
.app_rx_evt = ct_app_rx_evt,
.format_listener = format_ct_listener,
.format_connection = format_ct_session,
.transport_options = {
.service_type = TRANSPORT_SERVICE_APP,
},
}
static u32 ct_stop_listen(u32 ct_index)
static void ct_session_close(u32 ct_index, u32 thread_index)
static int ct_app_rx_evt(transport_connection_t *tc)
static u8 * format_ct_session(u8 *s, va_list *args)
static int ct_session_connect(transport_endpoint_cfg_t *tep)
static transport_connection_t * ct_session_get(u32 ct_index, u32 thread_index)
app transport service
static transport_connection_t * ct_listener_get(u32 ct_index)
static u8 * format_ct_listener(u8 *s, va_list *args)
apps acting as transports
static int ct_custom_tx(void *session, u32 max_burst_size)
static u32 ct_start_listen(u32 app_listener_index, transport_endpoint_t *tep)

Definition at line 545 of file application_local.c.