![]() |
FD.io VPP
v18.10-32-g1161dda
Vector Packet Processing
|
Include dependency graph for application.c:Go to the source code of this file.
Typedefs | |
| typedef int( | app_send_evt_handler_fn) (app_worker_t *app, stream_session_t *s, u8 lock) |
Variables | |
| static app_main_t | app_main |
| static app_send_evt_handler_fn *const | app_send_evt_handler_fns [3] |
| static vlib_cli_command_t | show_app_command |
| (constructor) VLIB_CLI_COMMAND (show_app_command) More... | |
| typedef int( app_send_evt_handler_fn) (app_worker_t *app, stream_session_t *s, u8 lock) |
Definition at line 1309 of file application.c.
|
inlinestatic |
Definition at line 1198 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 116 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 101 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 24 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 40 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 49 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 65 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
inlinestatic |
|
inlinestatic |
| int app_worker_add_segment_notify | ( | u32 | app_wrk_index, |
| ssvm_private_t * | fs | ||
| ) |
Send an API message to the external app, to map new segment.
Definition at line 985 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| app_worker_t* app_worker_alloc | ( | application_t * | app | ) |
Definition at line 483 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int app_worker_alloc_and_init | ( | application_t * | app, |
| app_worker_t ** | wrk | ||
| ) |
Definition at line 579 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int app_worker_alloc_connects_segment_manager | ( | app_worker_t * | app_wrk | ) |
Definition at line 852 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 637 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8 app_worker_application_is_builtin | ( | app_worker_t * | app_wrk | ) |
| stream_session_t* app_worker_first_listener | ( | app_worker_t * | app, |
| u8 | fib_proto, | ||
| u8 | transport_proto | ||
| ) |
Definition at line 999 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1981 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2141 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2066 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void app_worker_free | ( | app_worker_t * | app_wrk | ) |
Definition at line 513 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| app_worker_t* app_worker_get | ( | u32 | wrk_index | ) |
| application_t* app_worker_get_app | ( | u32 | wrk_index | ) |
| segment_manager_t* app_worker_get_connect_segment_manager | ( | app_worker_t * | app | ) |
Definition at line 867 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| app_worker_t* app_worker_get_if_valid | ( | u32 | wrk_index | ) |
| segment_manager_t* app_worker_get_listen_segment_manager | ( | app_worker_t * | app, |
| stream_session_t * | listener | ||
| ) |
Definition at line 874 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void app_worker_local_sessions_free | ( | app_worker_t * | app_wrk | ) |
Definition at line 1837 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int app_worker_lock_and_send_event | ( | app_worker_t * | app, |
| stream_session_t * | s, | ||
| u8 | evt_type | ||
| ) |
Send event to application.
Logic from queue perspective is blocking. However, if queue is full, we return.
Definition at line 1339 of file application.c.
Here is the caller graph for this function:
|
static |
Definition at line 74 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
| int app_worker_open_session | ( | app_worker_t * | app, |
| session_endpoint_t * | sep, | ||
| u32 | api_context | ||
| ) |
Definition at line 837 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int app_worker_send_event | ( | app_worker_t * | app, |
| stream_session_t * | s, | ||
| u8 | evt_type | ||
| ) |
Send event to application.
Logic from queue perspective is non-blocking. If there's not enough space to enqueue a message, we return.
Definition at line 1326 of file application.c.
| int app_worker_start_listen | ( | app_worker_t * | app_wrk, |
| stream_session_t * | ls | ||
| ) |
Definition at line 657 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int app_worker_stop_listen | ( | app_worker_t * | app_wrk, |
| session_handle_t | handle | ||
| ) |
Definition at line 681 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| application_t* application_alloc | ( | void | ) |
Definition at line 233 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_alloc_and_init | ( | app_init_args_t * | a | ) |
Definition at line 306 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_api_queue_is_full | ( | application_t * | app | ) |
|
static |
| void application_format_all_clients | ( | vlib_main_t * | vm, |
| int | do_local, | ||
| int | verbose | ||
| ) |
Definition at line 2266 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_format_all_listeners | ( | vlib_main_t * | vm, |
| int | do_local, | ||
| int | verbose | ||
| ) |
Definition at line 2234 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2046 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1952 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2178 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2100 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_free | ( | application_t * | app | ) |
Definition at line 388 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| application_t* application_get | ( | u32 | app_index | ) |
| app_worker_t* application_get_default_worker | ( | application_t * | app | ) |
Definition at line 454 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| application_t* application_get_if_valid | ( | u32 | app_index | ) |
| segment_manager_t* application_get_local_segment_manager | ( | app_worker_t * | app | ) |
Definition at line 927 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| segment_manager_t* application_get_local_segment_manager_w_session | ( | app_worker_t * | app, |
| local_session_t * | ls | ||
| ) |
Definition at line 933 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| local_session_t* application_get_local_session | ( | app_worker_t * | app_wrk, |
| u32 | session_index | ||
| ) |
| local_session_t* application_get_local_session_from_handle | ( | session_handle_t | handle | ) |
Definition at line 1374 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| segment_manager_properties_t* application_get_segment_manager_properties | ( | u32 | app_index | ) |
Definition at line 1191 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| app_worker_t* application_get_worker | ( | application_t * | app, |
| u32 | wrk_map_index | ||
| ) |
Definition at line 444 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u8 application_has_global_scope | ( | application_t * | app | ) |
| u8 application_has_local_scope | ( | application_t * | app | ) |
| u32 application_index | ( | application_t * | app | ) |
| int application_is_builtin | ( | application_t * | app | ) |
| int application_is_builtin_proxy | ( | application_t * | app | ) |
Definition at line 958 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_is_proxy | ( | application_t * | app | ) |
| app_worker_t* application_listener_select_worker | ( | stream_session_t * | ls, |
| u8 | is_local | ||
| ) |
Definition at line 460 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| local_session_t* application_local_listen_session_alloc | ( | application_t * | app | ) |
Definition at line 1386 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_local_listen_session_free | ( | application_t * | app, |
| local_session_t * | ll | ||
| ) |
Definition at line 1401 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 application_local_listener_index | ( | application_t * | app, |
| local_session_t * | ll | ||
| ) |
|
static |
Definition at line 149 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| local_session_t* application_local_session_alloc | ( | app_worker_t * | app_wrk | ) |
Definition at line 1346 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_local_session_cleanup | ( | app_worker_t * | client_wrk, |
| app_worker_t * | server_wrk, | ||
| local_session_t * | ls | ||
| ) |
Definition at line 1717 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_local_session_connect | ( | app_worker_t * | client_wrk, |
| app_worker_t * | server_wrk, | ||
| local_session_t * | ll, | ||
| u32 | opaque | ||
| ) |
Definition at line 1562 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_local_session_connect_notify | ( | local_session_t * | ls | ) |
Definition at line 1677 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_local_session_disconnect | ( | u32 | app_index, |
| local_session_t * | ls | ||
| ) |
Definition at line 1765 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1827 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1545 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_local_session_free | ( | app_worker_t * | app, |
| local_session_t * | s | ||
| ) |
Definition at line 1358 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 application_local_session_table | ( | application_t * | app | ) |
Definition at line 139 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| application_t* application_lookup | ( | u32 | api_client_index | ) |
Definition at line 211 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| application_t* application_lookup_name | ( | const u8 * | name | ) |
Definition at line 222 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 application_n_listeners | ( | app_worker_t * | app | ) |
Returns app name.
Since the name is not stored per app, we generate it on the fly. It is the caller's responsibility to free the vector
Definition at line 183 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| stream_session_t* application_proxy_listener | ( | app_worker_t * | app, |
| u8 | fib_proto, | ||
| u8 | transport_proto | ||
| ) |
Definition at line 1029 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_remove_proxy | ( | application_t * | app | ) |
Definition at line 1169 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| segment_manager_properties_t* application_segment_manager_properties | ( | application_t * | app | ) |
| u32 application_session_table | ( | application_t * | app, |
| u8 | fib_proto | ||
| ) |
Definition at line 124 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_setup_proxy | ( | application_t * | app | ) |
Definition at line 1153 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_start_listen | ( | application_t * | app, |
| session_endpoint_extended_t * | sep_ext, | ||
| session_handle_t * | res | ||
| ) |
Start listening local transport endpoint for requested transport.
Creates a 'dummy' stream session with state LISTENING to be used in session lookups, prior to establishing connection. Requests transport to build it's own specific listening connection.
Definition at line 717 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_start_local_listen | ( | application_t * | app, |
| session_endpoint_extended_t * | sep_ext, | ||
| session_handle_t * | handle | ||
| ) |
Definition at line 1410 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void application_start_stop_proxy | ( | application_t * | app, |
| transport_proto_t | transport_proto, | ||
| u8 | is_start | ||
| ) |
Definition at line 1137 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1053 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1110 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_stop_listen | ( | u32 | app_index, |
| u32 | app_wrk_index, | ||
| session_handle_t | handle | ||
| ) |
Stop listening on session associated to handle.
| handle | listener handle |
| app_index | index of the app owning the handle. |
| app_wrk_index | index of the worker requesting the stop |
Definition at line 799 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int application_stop_local_listen | ( | u32 | app_index, |
| u32 | wrk_map_index, | ||
| session_handle_t | lh | ||
| ) |
Clean up local session table.
If we have a listener session use it to find the port and proto. If not, the handle must be a local table handle so parse it.
Definition at line 1472 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
| u8 application_use_mq_for_ctrl | ( | application_t * | app | ) |
|
static |
|
static |
Check app config for given segment type.
Returns 1 on success and 0 otherwise
Definition at line 284 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1911 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 2198 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| clib_error_t* vnet_app_add_tls_cert | ( | vnet_app_add_tls_cert_args_t * | a | ) |
Definition at line 1887 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| clib_error_t* vnet_app_add_tls_key | ( | vnet_app_add_tls_key_args_t * | a | ) |
Definition at line 1899 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:| clib_error_t* vnet_app_worker_add_del | ( | vnet_app_worker_add_del_args_t * | a | ) |
Definition at line 884 of file application.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 21 of file application.c.
|
static |
Definition at line 1312 of file application.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_app_command)
Definition at line 2343 of file application.c.