#include <vpp/api/vpe_all_api_h.h>
#undef vl_printfun
#include <vlibapi/api_helper_macros.h>
+
#define foreach_vpe_api_msg \
_(CONTROL_PING, control_ping) \
_(CLI, cli) \
#define QUOTE_(x) #x
#define QUOTE(x) QUOTE_(x)
+
typedef enum
{
RESOLVE_IP4_ADD_DEL_ROUTE = 1,
vl_api_cli_t_handler (vl_api_cli_t * mp)
{
vl_api_cli_reply_t *rp;
- unix_shared_memory_queue_t *q;
+ svm_queue_t *q;
vlib_main_t *vm = vlib_get_main ();
api_main_t *am = &api_main;
unformat_input_t input;
vlib_main_t *vm = vlib_get_main ();
void *oldheap;
vl_api_get_node_graph_reply_t *rmp;
+ vlib_node_t ***node_dups;
pthread_mutex_lock (&am->vlib_rp->mutex);
oldheap = svm_push_data_heap (am->vlib_rp);
vec_reset_length (vector);
/* $$$$ FIXME */
- vector = vlib_node_serialize (&vm->node_main, vector,
- (u32) ~ 0 /* all threads */ ,
- 1 /* include nexts */ ,
+ node_dups = vlib_node_get_nodes (vm, (u32) ~ 0 /* all threads */ ,
+ 1 /* include stats */ );
+ vector = vlib_node_serialize (vm, node_dups, vector, 1 /* include nexts */ ,
1 /* include stats */ );
svm_pop_heap (oldheap);
{ \
vpe_client_registration_t *reg; \
vpe_api_main_t * vam = &vpe_api_main; \
- unix_shared_memory_queue_t * q; \
+ svm_queue_t * q; \
\
/* One registration only... */ \
pool_foreach(reg, vam->nn##_registrations, \
#undef _
vl_set_memory_region_name ("/vpe-api");
- vl_enable_disable_memory_api (vm, 1 /* enable it */ );
+ vl_mem_api_enable_disable (vm, 1 /* enable it */ );
return 0;
}