|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <sys/ioctl.h>
47 else if (
unformat (line_input,
"elog"))
49 else if (
unformat (line_input,
"rx-queue-size %u", &
tmp))
51 else if (
unformat (line_input,
"tx-queue-size %u", &
tmp))
53 else if (
unformat (line_input,
"num-rx-queues %u", &
tmp))
55 else if (
unformat (line_input,
"num-tx-queues %u", &
tmp))
74 .path =
"create interface avf",
75 .short_help =
"create interface avf <pci-address> "
76 "[rx-queue-size <size>] [tx-queue-size <size>] "
77 "[num-rx-queues <size>]",
110 "please specify interface name or sw_if_index");
124 .path =
"delete interface avf",
125 .short_help =
"delete interface avf "
126 "{<interface> | sw_if_index <sw_idx>}",
141 int test_irq = 0, enable_elog = 0, disable_elog = 0;
151 else if (
unformat (line_input,
"irq"))
153 else if (
unformat (line_input,
"elog-on"))
155 else if (
unformat (line_input,
"elog-off"))
168 "please specify interface name or sw_if_index");
177 ad->
flags |= AVF_DEVICE_F_ELOG;
180 ad->
flags &= ~AVF_DEVICE_F_ELOG;
191 .short_help =
"test avf [<interface> | sw_if_index <sw_idx>] [irq] "
192 "[elog-on] [elog-off]",
static vlib_cli_command_t avf_create_command
(constructor) VLIB_CLI_COMMAND (avf_create_command)
#define clib_error_return(e, args...)
unformat_function_t unformat_vlib_pci_addr
clib_error_t * avf_cli_init(vlib_main_t *vm)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void vlib_process_signal_event(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
vnet_device_class_t avf_device_class
vnet_main_t * vnet_get_main(void)
static vlib_cli_command_t avf_delete_command
(constructor) VLIB_CLI_COMMAND (avf_delete_command)
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
static vlib_cli_command_t avf_test_command
(constructor) VLIB_CLI_COMMAND (avf_test_command)
#define VLIB_CLI_COMMAND(x,...)
void avf_create_if(vlib_main_t *vm, avf_create_if_args_t *args)
#define vec_free(V)
Free vector's memory (no header).
static void avf_reg_write(avf_device_t *ad, u32 addr, u32 val)
unformat_function_t unformat_vnet_sw_interface
vlib_node_registration_t avf_process_node
(constructor) VLIB_REGISTER_NODE (avf_process_node)
#define VLIB_INIT_FUNCTION(x)
static clib_error_t * avf_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static clib_error_t * avf_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
@ AVF_PROCESS_EVENT_DELETE_IF
vl_api_interface_index_t sw_if_index
static clib_error_t * avf_test_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static_always_inline avf_device_t * avf_get_device(u32 dev_instance)