FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
application_namespace.h File Reference
+ Include dependency graph for application_namespace.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  app_ns_api_handle_
 

Macros

#define APP_NAMESPACE_INVALID_INDEX   ((u32)~0)
 
#define aah_app_ns_index   l_index
 
#define aah_app_wrk_index   l_index
 
#define aah_sock_index   u_index
 
#define aah_file_index   u_index
 

Typedefs

typedef struct _app_namespace app_namespace_t
 
typedef struct _vnet_app_namespace_add_del_args vnet_app_namespace_add_del_args_t
 
typedef struct app_ns_api_handle_ app_ns_api_handle_t
 

Functions

app_namespace_tapp_namespace_alloc (u8 *ns_id)
 
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)
 
const u8app_namespace_id (app_namespace_t *app_ns)
 
const u8app_namespace_id_from_index (u32 index)
 
u32 app_namespace_index_from_id (const u8 *ns_id)
 
void app_namespaces_init (void)
 
int vnet_app_namespace_add_del (vnet_app_namespace_add_del_args_t *a)
 
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)
 
static app_namespace_tapp_namespace_get_default (void)
 
 STATIC_ASSERT (sizeof(app_ns_api_handle_t)==sizeof(u64), "not u64")
 
static clib_socket_tappns_sapi_alloc_socket (app_namespace_t *app_ns)
 
static clib_socket_tappns_sapi_get_socket (app_namespace_t *app_ns, u32 sock_index)
 
static void appns_sapi_free_socket (app_namespace_t *app_ns, clib_socket_t *cs)
 
static u32 appns_sapi_socket_index (app_namespace_t *app_ns, clib_socket_t *cs)
 
static u32 appns_sapi_socket_handle (app_namespace_t *app_ns, clib_socket_t *cs)
 
static u32 appns_sapi_handle_sock_index (u32 sapi_sock_handle)
 
int appns_sapi_add_ns_socket (app_namespace_t *app_ns)
 
u8 appns_sapi_enabled (void)
 
void appns_sapi_enable (void)
 

Macro Definition Documentation

◆ aah_app_ns_index

#define aah_app_ns_index   l_index

Definition at line 107 of file application_namespace.h.

◆ aah_app_wrk_index

#define aah_app_wrk_index   l_index

Definition at line 108 of file application_namespace.h.

◆ aah_file_index

#define aah_file_index   u_index

Definition at line 110 of file application_namespace.h.

◆ aah_sock_index

#define aah_sock_index   u_index

Definition at line 109 of file application_namespace.h.

◆ APP_NAMESPACE_INVALID_INDEX

#define APP_NAMESPACE_INVALID_INDEX   ((u32)~0)

Definition at line 74 of file application_namespace.h.

Typedef Documentation

◆ app_namespace_t

typedef struct _app_namespace app_namespace_t

◆ app_ns_api_handle_t

◆ vnet_app_namespace_add_del_args_t

typedef struct _vnet_app_namespace_add_del_args vnet_app_namespace_add_del_args_t

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_default()

static app_namespace_t* app_namespace_get_default ( void  )
inlinestatic

Definition at line 89 of file application_namespace.h.

+ Here is the call graph for this function:
+ 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_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:

◆ appns_sapi_add_ns_socket()

int appns_sapi_add_ns_socket ( app_namespace_t app_ns)

Definition at line 1648 of file session_api.c.

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

◆ appns_sapi_alloc_socket()

static clib_socket_t* appns_sapi_alloc_socket ( app_namespace_t app_ns)
inlinestatic

Definition at line 116 of file application_namespace.h.

+ Here is the caller 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:

◆ appns_sapi_free_socket()

static void appns_sapi_free_socket ( app_namespace_t app_ns,
clib_socket_t cs 
)
inlinestatic

Definition at line 132 of file application_namespace.h.

+ Here is the caller graph for this function:

◆ appns_sapi_get_socket()

static clib_socket_t* appns_sapi_get_socket ( app_namespace_t app_ns,
u32  sock_index 
)
inlinestatic

Definition at line 124 of file application_namespace.h.

+ Here is the caller graph for this function:

◆ appns_sapi_handle_sock_index()

static u32 appns_sapi_handle_sock_index ( u32  sapi_sock_handle)
inlinestatic

Definition at line 150 of file application_namespace.h.

+ Here is the caller graph for this function:

◆ appns_sapi_socket_handle()

static u32 appns_sapi_socket_handle ( app_namespace_t app_ns,
clib_socket_t cs 
)
inlinestatic

Definition at line 144 of file application_namespace.h.

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

◆ appns_sapi_socket_index()

static u32 appns_sapi_socket_index ( app_namespace_t app_ns,
clib_socket_t cs 
)
inlinestatic

Definition at line 138 of file application_namespace.h.

+ Here is the caller graph for this function:

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(app_ns_api_handle_t = =sizeof(u64),
"not u64  
)

◆ 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: