|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <sys/ioctl.h>
49 .path =
"create interface af_xdp",
51 "create interface af_xdp <host-if linux-ifname> [name ifname] "
52 "[rx-queue-size size] [tx-queue-size size] [num-rx-queues <num|all>] "
53 "[prog pathname] [zero-copy|no-zero-copy] [no-syscall-lock]",
88 "please specify interface name or sw_if_index");
103 .path =
"delete interface af_xdp",
104 .short_help =
"delete interface af_xdp "
105 "{<interface> | sw_if_index <sw_idx>}",
static vlib_cli_command_t af_xdp_create_command
(constructor) VLIB_CLI_COMMAND (af_xdp_create_command)
static clib_error_t * af_xdp_delete_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#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.
vnet_device_class_t af_xdp_device_class
void af_xdp_delete_if(vlib_main_t *vm, af_xdp_device_t *ad)
af_xdp_main_t af_xdp_main
vnet_main_t * vnet_get_main(void)
#define VLIB_CLI_COMMAND(x,...)
static clib_error_t * af_xdp_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
unformat_function_t unformat_af_xdp_create_if_args
#define vec_free(V)
Free vector's memory (no header).
void af_xdp_create_if(vlib_main_t *vm, af_xdp_create_if_args_t *args)
unformat_function_t unformat_vnet_sw_interface
#define VLIB_INIT_FUNCTION(x)
static vnet_hw_interface_t * vnet_get_sup_hw_interface(vnet_main_t *vnm, u32 sw_if_index)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static vlib_cli_command_t af_xdp_delete_command
(constructor) VLIB_CLI_COMMAND (af_xdp_delete_command)
vl_api_interface_index_t sw_if_index
clib_error_t * af_xdp_cli_init(vlib_main_t *vm)