FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
oddbuf.c File Reference
+ Include dependency graph for oddbuf.c:

Go to the source code of this file.

Macros

#define REPLY_MSG_ID_BASE   omp->msg_id_base
 

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_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

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   omp->msg_id_base

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 180 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 39 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 62 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 139 of file oddbuf.c.

+ Here is the call 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 121 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>",
}

(constructor) VLIB_CLI_COMMAND (oddbuf_config_command)

Definition at line 209 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]",
}

(constructor) VLIB_CLI_COMMAND (oddbuf_enable_disable_command)

Definition at line 110 of file oddbuf.c.

◆ oddbuf_main

oddbuf_main_t oddbuf_main

Definition at line 34 of file oddbuf.c.

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)
Definition: oddbuf.c:180
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)
Definition: oddbuf.c:62