19 #include <sys/ioctl.h> 59 .path =
"create interface marvell pp2",
60 .short_help =
"create interface marvell pp2 [name <ifname>]",
82 if (
unformat (line_input,
"sw_if_index %d", &sw_if_index))
93 if (sw_if_index == ~0)
95 "please specify interface name or sw_if_index");
110 .path =
"delete interface marvell pp2",
111 .short_help =
"delete interface marvell pp2 " 112 "{<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
vl_api_interface_index_t sw_if_index
#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)