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>}",
vnet_main_t * vnet_get_main(void)
static vnet_hw_interface_t * vnet_get_sup_hw_interface(vnet_main_t *vnm, u32 sw_if_index)
clib_error_t * mrvl_pp2_cli_init(vlib_main_t *vm)
mrvl_pp2_main_t mrvl_pp2_main
vnet_device_class_t mrvl_pp2_device_class
static clib_error_t * mrvl_pp2_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
unformat_function_t unformat_vnet_sw_interface
static clib_error_t * mrvl_pp2_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#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.
#define vec_free(V)
Free vector's memory (no header).
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