27 #include <af_xdp/af_xdp.api_enum.h> 28 #include <af_xdp/af_xdp.api_types.h> 72 rmp->sw_if_index = ntohl (args.sw_if_index);
83 vl_api_af_xdp_delete_reply_t *rmp;
93 rv = VNET_API_ERROR_INVALID_INTERFACE;
106 #include <af_xdp/af_xdp.api.c>
vnet_device_class_t af_xdp_device_class
vnet_main_t * vnet_get_main(void)
#define REPLY_MACRO2(t, body)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_interface_index_t sw_if_index
static af_xdp_mode_t af_xdp_api_mode(vl_api_af_xdp_mode_t mode)
void af_xdp_delete_if(vlib_main_t *vm, af_xdp_device_t *ad)
static clib_error_t * af_xdp_plugin_api_hookup(vlib_main_t *vm)
af_xdp_device_t * devices
static void vl_api_af_xdp_create_t_handler(vl_api_af_xdp_create_t *mp)
af_xdp_main_t af_xdp_main
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
vl_api_tunnel_mode_t mode
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
void af_xdp_create_if(vlib_main_t *vm, af_xdp_create_if_args_t *args)
static void setup_message_id_table(api_main_t *am)
static void vl_api_af_xdp_delete_t_handler(vl_api_af_xdp_delete_t *mp)
static vlib_main_t * vlib_get_main(void)
vl_api_af_xdp_mode_t mode[default=0]
VLIB_API_INIT_FUNCTION(af_xdp_plugin_api_hookup)