FD.io VPP  v21.01.1
Vector Packet Processing
application_namespace.c File Reference
+ Include dependency graph for application_namespace.c:

Go to the source code of this file.

Functions

app_namespace_tapp_namespace_get (u32 index)
 
app_namespace_tapp_namespace_get_from_id (const u8 *ns_id)
 
u32 app_namespace_index (app_namespace_t *app_ns)
 
app_namespace_tapp_namespace_alloc (u8 *ns_id)
 
int vnet_app_namespace_add_del (vnet_app_namespace_add_del_args_t *a)
 
const u8app_namespace_id (app_namespace_t *app_ns)
 
u32 app_namespace_index_from_id (const u8 *ns_id)
 
const u8app_namespace_id_from_index (u32 index)
 
u32 app_namespace_get_fib_index (app_namespace_t *app_ns, u8 fib_proto)
 
session_table_tapp_namespace_get_local_table (app_namespace_t *app_ns)
 
void appns_sapi_enable (void)
 
u8 appns_sapi_enabled (void)
 
void app_namespaces_init (void)
 
static clib_error_tapp_ns_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_app_namespace (u8 *s, va_list *args)
 
static void app_namespace_show_api (vlib_main_t *vm, app_namespace_t *app_ns)
 
static clib_error_tshow_app_ns_fn (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 

Variables

uwordapp_namespace_lookup_table
 Hash table of application namespaces by app ns ids. More...
 
static app_namespace_tapp_namespace_pool
 Pool of application namespaces. More...
 
static u8 app_sapi_enabled
 
static vlib_cli_command_t app_ns_command
 (constructor) VLIB_CLI_COMMAND (app_ns_command) More...
 
static vlib_cli_command_t show_app_ns_command
 (constructor) VLIB_CLI_COMMAND (show_app_ns_command) More...
 

Function Documentation

◆ app_namespace_alloc()

app_namespace_t* app_namespace_alloc ( u8 ns_id)

Definition at line 58 of file application_namespace.c.

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

◆ app_namespace_get()

app_namespace_t* app_namespace_get ( u32  index)

Definition at line 37 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_get_fib_index()

u32 app_namespace_get_fib_index ( app_namespace_t app_ns,
u8  fib_proto 
)

Definition at line 151 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_get_from_id()

app_namespace_t* app_namespace_get_from_id ( const u8 ns_id)

Definition at line 43 of file application_namespace.c.

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

◆ app_namespace_get_local_table()

session_table_t* app_namespace_get_local_table ( app_namespace_t app_ns)

Definition at line 158 of file application_namespace.c.

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

◆ app_namespace_id()

const u8* app_namespace_id ( app_namespace_t app_ns)

Definition at line 126 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_id_from_index()

const u8* app_namespace_id_from_index ( u32  index)

Definition at line 142 of file application_namespace.c.

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

◆ app_namespace_index()

u32 app_namespace_index ( app_namespace_t app_ns)

Definition at line 52 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_index_from_id()

u32 app_namespace_index_from_id ( const u8 ns_id)

Definition at line 132 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ app_namespace_show_api()

static void app_namespace_show_api ( vlib_main_t vm,
app_namespace_t app_ns 
)
static

Definition at line 278 of file application_namespace.c.

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

◆ app_namespaces_init()

void app_namespaces_init ( void  )

Definition at line 176 of file application_namespace.c.

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

◆ app_ns_fn()

static clib_error_t* app_ns_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 198 of file application_namespace.c.

+ Here is the call graph for this function:

◆ appns_sapi_enable()

void appns_sapi_enable ( void  )

Definition at line 164 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ appns_sapi_enabled()

u8 appns_sapi_enabled ( void  )

Definition at line 170 of file application_namespace.c.

+ Here is the caller graph for this function:

◆ format_app_namespace()

u8* format_app_namespace ( u8 s,
va_list *  args 
)

Definition at line 269 of file application_namespace.c.

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

◆ show_app_ns_fn()

static clib_error_t* show_app_ns_fn ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)
static

Definition at line 316 of file application_namespace.c.

+ Here is the call graph for this function:

◆ vnet_app_namespace_add_del()

int vnet_app_namespace_add_del ( vnet_app_namespace_add_del_args_t a)

Definition at line 70 of file application_namespace.c.

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

Variable Documentation

◆ app_namespace_lookup_table

uword* app_namespace_lookup_table

Hash table of application namespaces by app ns ids.

Definition at line 27 of file application_namespace.c.

◆ app_namespace_pool

app_namespace_t* app_namespace_pool
static

Pool of application namespaces.

Definition at line 32 of file application_namespace.c.

◆ app_ns_command

vlib_cli_command_t app_ns_command
static
Initial value:
=
{
.path = "app ns",
.short_help = "app ns [add] id <namespace-id> secret <secret> "
"sw_if_index <sw_if_index>",
.function = app_ns_fn,
}
static clib_error_t * app_ns_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (app_ns_command)

Definition at line 259 of file application_namespace.c.

◆ app_sapi_enabled

u8 app_sapi_enabled
static

Definition at line 34 of file application_namespace.c.

◆ show_app_ns_command

vlib_cli_command_t show_app_ns_command
static
Initial value:
=
{
.path = "show app ns",
.short_help = "show app ns [table <id> [api-clients]]",
.function = show_app_ns_fn,
}
static clib_error_t * show_app_ns_fn(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_app_ns_command)

Definition at line 393 of file application_namespace.c.