![]() |
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Sample Plugin, plugin API / trace / CLI handling. More...
Include dependency graph for sample.c:Go to the source code of this file.
Macros | |
| #define | REPLY_MSG_ID_BASE sm->msg_id_base |
Functions | |
| VLIB_PLUGIN_REGISTER () | |
| int | sample_macswap_enable_disable (sample_main_t *sm, u32 sw_if_index, int enable_disable) |
| Enable/disable the macswap plugin. More... | |
| static clib_error_t * | macswap_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
| static void | vl_api_sample_macswap_enable_disable_t_handler (vl_api_sample_macswap_enable_disable_t *mp) |
| Plugin API message handler. More... | |
| static clib_error_t * | sample_init (vlib_main_t *vm) |
| Initialize the sample plugin. More... | |
| VNET_FEATURE_INIT (sample, static) | |
| Hook the sample plugin into the VPP graph hierarchy. More... | |
Variables | |
| sample_main_t | sample_main |
| static vlib_cli_command_t | sr_content_command |
| CLI command to enable/disable the sample macswap plugin. More... | |
Sample Plugin, plugin API / trace / CLI handling.
Definition in file sample.c.
| #define REPLY_MSG_ID_BASE sm->msg_id_base |
|
static |
|
static |
| int sample_macswap_enable_disable | ( | sample_main_t * | sm, |
| u32 | sw_if_index, | ||
| int | enable_disable | ||
| ) |
|
static |
| VLIB_PLUGIN_REGISTER | ( | ) |
| VNET_FEATURE_INIT | ( | sample | , |
| static | |||
| ) |
Hook the sample plugin into the VPP graph hierarchy.
| sample_main_t sample_main |
|
static |
CLI command to enable/disable the sample macswap plugin.
(constructor) VLIB_CLI_COMMAND (sr_content_command)