38 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 45 #define foreach_vpe_api_msg \ 46 _(NETMAP_CREATE, netmap_create) \ 47 _(NETMAP_DELETE, netmap_delete) \ 53 vl_api_netmap_create_reply_t *rmp;
73 vl_api_netmap_delete_reply_t *rmp;
94 #define vl_msg_name_crc_list 96 #undef vl_msg_name_crc_list 101 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 102 foreach_vl_msg_name_crc_netmap;
112 vl_msg_api_set_handlers(VL_API_##N, #n, \ 113 vl_api_##n##_t_handler, \ 115 vl_api_##n##_t_endian, \ 116 vl_api_##n##_t_print, \ 117 sizeof(vl_api_##n##_t), 1);
#define foreach_vpe_api_msg
static void setup_message_id_table(api_main_t *am)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static void vl_api_netmap_delete_t_handler(vl_api_netmap_delete_t *mp)
static clib_error_t * netmap_api_hookup(vlib_main_t *vm)
#define vec_free(V)
Free vector's memory (no header).
int netmap_create_if(vlib_main_t *vm, u8 *if_name, u8 *hw_addr_set, u8 is_pipe, u8 is_master, u32 *sw_if_index)
VLIB_API_INIT_FUNCTION(netmap_api_hookup)
static vlib_main_t * vlib_get_main(void)
static void vl_api_netmap_create_t_handler(vl_api_netmap_create_t *mp)
int netmap_delete_if(vlib_main_t *vm, u8 *host_if_name)