|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <sys/ioctl.h>
44 else if (
unformat (line_input,
"rx-queue-size %u", &val))
46 else if (
unformat (line_input,
"tx-queue-size %u", &val))
64 .path =
"create interface marvell pp2",
65 .short_help =
"create interface marvell pp2 [name <ifname>] [rx-queue-size slots] [tx-queue-size slots]",
100 "please specify interface name or sw_if_index");
115 .path =
"delete interface marvell pp2",
116 .short_help =
"delete interface marvell pp2 "
117 "{<interface> | sw_if_index <sw_idx>}",
clib_error_t * mrvl_pp2_plugin_api_hookup(vlib_main_t *vm)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
mrvl_pp2_main_t mrvl_pp2_main
static vlib_cli_command_t mrvl_pp2_create_command
(constructor) VLIB_CLI_COMMAND (mrvl_pp2_create_command)
clib_error_t * mrvl_pp2_cli_init(vlib_main_t *vm)
vnet_main_t * vnet_get_main(void)
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
#define VLIB_CLI_COMMAND(x,...)
static vlib_cli_command_t mrvl_pp2_delete_command
(constructor) VLIB_CLI_COMMAND (mrvl_pp2_delete_command)
vnet_device_class_t mrvl_pp2_device_class
#define vec_free(V)
Free vector's memory (no header).
mrvl_pp2_if_t * interfaces
unformat_function_t unformat_vnet_sw_interface
#define VLIB_INIT_FUNCTION(x)
void mrvl_pp2_delete_if(mrvl_pp2_if_t *ppif)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
void mrvl_pp2_create_if(mrvl_pp2_create_if_args_t *args)
static clib_error_t * mrvl_pp2_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vl_api_interface_index_t sw_if_index
static clib_error_t * mrvl_pp2_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)