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

Go to the source code of this file.

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 REPLY_MSG_ID_BASE   omp->msg_id_base
 
#define foreach_oddbuf_plugin_api_msg   _(ODDBUF_ENABLE_DISABLE, oddbuf_enable_disable)
 
#define vl_msg_name_crc_list
 

Functions

int oddbuf_enable_disable (oddbuf_main_t *omp, u32 sw_if_index, int enable_disable)
 
static clib_error_toddbuf_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void vl_api_oddbuf_enable_disable_t_handler (vl_api_oddbuf_enable_disable_t *mp)
 
static clib_error_toddbuf_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (oddbuf_main_t *omp, api_main_t *am)
 
static clib_error_toddbuf_init (vlib_main_t *vm)
 
 VNET_FEATURE_INIT (oddbuf, static)
 
 VLIB_PLUGIN_REGISTER ()
 
static clib_error_toddbuf_config_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

oddbuf_main_t oddbuf_main
 
static vlib_cli_command_t oddbuf_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (oddbuf_enable_disable_command) More...
 
static vlib_cli_command_t oddbuf_config_command
 (constructor) VLIB_CLI_COMMAND (oddbuf_config_command) More...
 

Macro Definition Documentation

◆ foreach_oddbuf_plugin_api_msg

#define foreach_oddbuf_plugin_api_msg   _(ODDBUF_ENABLE_DISABLE, oddbuf_enable_disable)

Definition at line 58 of file oddbuf.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   omp->msg_id_base

Definition at line 51 of file oddbuf.c.

◆ vl_api_version

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

Definition at line 47 of file oddbuf.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 36 of file oddbuf.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 177 of file oddbuf.c.

◆ vl_print

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

Definition at line 41 of file oddbuf.c.

◆ vl_printfun

#define vl_printfun

Definition at line 42 of file oddbuf.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 31 of file oddbuf.c.

Function Documentation

◆ oddbuf_config_command_fn()

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

Definition at line 242 of file oddbuf.c.

+ Here is the call graph for this function:

◆ oddbuf_enable_disable()

int oddbuf_enable_disable ( oddbuf_main_t omp,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 64 of file oddbuf.c.

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

◆ oddbuf_enable_disable_command_fn()

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

Definition at line 87 of file oddbuf.c.

+ Here is the call graph for this function:

◆ oddbuf_init()

static clib_error_t* oddbuf_init ( vlib_main_t vm)
static

Definition at line 190 of file oddbuf.c.

+ Here is the call graph for this function:

◆ oddbuf_plugin_api_hookup()

static clib_error_t* oddbuf_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 160 of file oddbuf.c.

+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( oddbuf_main_t omp,
api_main_t am 
)
static

Definition at line 182 of file oddbuf.c.

+ Here is the caller graph for this function:

◆ vl_api_oddbuf_enable_disable_t_handler()

static void vl_api_oddbuf_enable_disable_t_handler ( vl_api_oddbuf_enable_disable_t mp)
static

Definition at line 146 of file oddbuf.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( oddbuf  ,
static   
)

Variable Documentation

◆ oddbuf_config_command

vlib_cli_command_t oddbuf_config_command
static
Initial value:
=
{
.path = "oddbuf configure",
.short_help =
"oddbuf configure n_to_copy <nn> offset <nn> first_offset <nn>",
}
static clib_error_t * oddbuf_config_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: oddbuf.c:242

(constructor) VLIB_CLI_COMMAND (oddbuf_config_command)

Definition at line 271 of file oddbuf.c.

◆ oddbuf_enable_disable_command

vlib_cli_command_t oddbuf_enable_disable_command
static
Initial value:
=
{
.path = "oddbuf enable-disable",
.short_help =
"oddbuf enable-disable <interface-name> [disable]",
}
static clib_error_t * oddbuf_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: oddbuf.c:87

(constructor) VLIB_CLI_COMMAND (oddbuf_enable_disable_command)

Definition at line 135 of file oddbuf.c.

◆ oddbuf_main

oddbuf_main_t oddbuf_main

Definition at line 54 of file oddbuf.c.