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]",
87 if (
unformat (line_input,
"sw_if_index %d", &sw_if_index))
98 if (sw_if_index == ~0)
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>}",
static clib_error_t * mrvl_pp2_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
vnet_main_t * vnet_get_main(void)
mrvl_pp2_main_t mrvl_pp2_main
vnet_device_class_t mrvl_pp2_device_class
unformat_function_t unformat_vnet_sw_interface
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
clib_error_t * mrvl_pp2_cli_init(vlib_main_t *vm)
clib_error_t * mrvl_pp2_plugin_api_hookup(vlib_main_t *vm)
#define vec_free(V)
Free vector's memory (no header).
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
void mrvl_pp2_delete_if(mrvl_pp2_if_t *ppif)
#define VLIB_CLI_COMMAND(x,...)
void mrvl_pp2_create_if(mrvl_pp2_create_if_args_t *args)
mrvl_pp2_if_t * interfaces
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