FD.io VPP  v19.08.3-2-gbabecb413
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 479 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 230 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 470 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 342 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 411 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 348 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 438 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 563 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 315 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 332 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 579 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 505 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 444 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 492 of file application_local.c.

◆ format_ct_session()

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

Definition at line 525 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 544 of file application_local.c.