diff options
author | Florin Coras <fcoras@cisco.com> | 2021-09-15 09:02:08 -0700 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-09-27 08:01:44 +0000 |
commit | a1400cecb8d8b423e83bd584e59fa817b8a243d9 (patch) | |
tree | fd812dd3cd4818d69ada7fc1972edc7fd8f10081 /src/vlibmemory/vlib_api.c | |
parent | 400f23f9d02552fb650d6de46bef7ba42b3482fe (diff) |
misc: api move continued
Move control ping and change dependencies from vpe.api_types to
memclnt.api_types
Type: refactor
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I9f8bc442e28738c48d64d1f6794082c8c4f5725b
Diffstat (limited to 'src/vlibmemory/vlib_api.c')
-rw-r--r-- | src/vlibmemory/vlib_api.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vlibmemory/vlib_api.c b/src/vlibmemory/vlib_api.c index e5d77eb5bf6..0d9444619af 100644 --- a/src/vlibmemory/vlib_api.c +++ b/src/vlibmemory/vlib_api.c @@ -329,6 +329,16 @@ vl_api_get_f64_increment_by_one_t_handler ( })); } +static void +vl_api_control_ping_t_handler (vl_api_control_ping_t *mp) +{ + vl_api_control_ping_reply_t *rmp; + int rv = 0; + + REPLY_MACRO2 (VL_API_CONTROL_PING_REPLY, + ({ rmp->vpe_pid = ntohl (getpid ()); })); +} + #include <vlibmemory/vlib.api.c> static clib_error_t * vlib_apis_hookup (vlib_main_t *vm) @@ -341,6 +351,8 @@ vlib_apis_hookup (vlib_main_t *vm) msg_id_base = setup_message_id_table (); am->is_mp_safe[VL_API_GET_NODE_GRAPH] = 1; + am->is_mp_safe[VL_API_CONTROL_PING] = 1; + am->is_mp_safe[VL_API_CONTROL_PING_REPLY] = 1; return 0; } |