FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
svs_api.c File Reference
+ Include dependency graph for svs_api.c:

Go to the source code of this file.

Data Structures

struct  svs_dump_walk_ctx_t_
 

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define foreach_svs_plugin_api_msg
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct svs_dump_walk_ctx_t_ svs_dump_walk_ctx_t
 

Functions

static void vl_api_svs_plugin_get_version_t_handler (vl_api_svs_plugin_get_version_t *mp)
 
static void vl_api_svs_table_add_del_t_handler (vl_api_svs_table_add_del_t *mp)
 
static void vl_api_svs_route_add_del_t_handler (vl_api_svs_route_add_del_t *mp)
 
static void vl_api_svs_enable_disable_t_handler (vl_api_svs_enable_disable_t *mp)
 
static walk_rc_t svs_send_details (fib_protocol_t fproto, u32 table_id, u32 sw_if_index, void *args)
 
static void vl_api_svs_dump_t_handler (vl_api_svs_dump_t *mp)
 
static clib_error_tsvs_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (api_main_t *apim)
 
static clib_error_tsvs_api_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static u32 svs_base_msg_id
 Base message ID fot the plugin. More...
 

Macro Definition Documentation

◆ foreach_svs_plugin_api_msg

#define foreach_svs_plugin_api_msg
Value:
_(SVS_PLUGIN_GET_VERSION, svs_plugin_get_version) \
_(SVS_TABLE_ADD_DEL, svs_table_add_del) \
_(SVS_ROUTE_ADD_DEL, svs_route_add_del) \
_(SVS_ENABLE_DISABLE, svs_enable_disable) \
_(SVS_DUMP, svs_dump)

Definition at line 61 of file svs_api.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 49 of file svs_api.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 38 of file svs_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 204 of file svs_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 43 of file svs_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 44 of file svs_api.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 33 of file svs_api.c.

Typedef Documentation

◆ svs_dump_walk_ctx_t

Function Documentation

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t apim)
static

Definition at line 227 of file svs_api.c.

+ Here is the caller graph for this function:

◆ svs_api_init()

static clib_error_t* svs_api_init ( vlib_main_t vm)
static

Definition at line 236 of file svs_api.c.

+ Here is the call graph for this function:

◆ svs_plugin_api_hookup()

static clib_error_t* svs_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 210 of file svs_api.c.

+ Here is the caller graph for this function:

◆ svs_send_details()

static walk_rc_t svs_send_details ( fib_protocol_t  fproto,
u32  table_id,
u32  sw_if_index,
void *  args 
)
static

Definition at line 166 of file svs_api.c.

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

◆ vl_api_svs_dump_t_handler()

static void vl_api_svs_dump_t_handler ( vl_api_svs_dump_t mp)
static

Definition at line 188 of file svs_api.c.

+ Here is the call graph for this function:

◆ vl_api_svs_enable_disable_t_handler()

static void vl_api_svs_enable_disable_t_handler ( vl_api_svs_enable_disable_t mp)
static

Definition at line 134 of file svs_api.c.

+ Here is the call graph for this function:

◆ vl_api_svs_plugin_get_version_t_handler()

static void vl_api_svs_plugin_get_version_t_handler ( vl_api_svs_plugin_get_version_t mp)
static

Definition at line 69 of file svs_api.c.

+ Here is the call graph for this function:

◆ vl_api_svs_route_add_del_t_handler()

static void vl_api_svs_route_add_del_t_handler ( vl_api_svs_route_add_del_t mp)
static

Definition at line 112 of file svs_api.c.

+ Here is the call graph for this function:

◆ vl_api_svs_table_add_del_t_handler()

static void vl_api_svs_table_add_del_t_handler ( vl_api_svs_table_add_del_t mp)
static

Definition at line 91 of file svs_api.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ svs_base_msg_id

u32 svs_base_msg_id
static

Base message ID fot the plugin.

Definition at line 56 of file svs_api.c.