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/vpp | |
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/vpp')
-rw-r--r-- | src/vpp/api/api.c | 17 | ||||
-rw-r--r-- | src/vpp/api/vpe.api | 24 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c index 5477ec949ae..70dfd1f8271 100644 --- a/src/vpp/api/api.c +++ b/src/vpp/api/api.c @@ -77,7 +77,6 @@ #include <vlibapi/api_helper_macros.h> #define foreach_vpe_api_msg \ - _ (CONTROL_PING, control_ping) \ _ (SHOW_VERSION, show_version) \ _ (SHOW_VPE_SYSTEM_TIME, show_vpe_system_time) \ _ (LOG_DUMP, log_dump) @@ -116,20 +115,6 @@ memclnt_delete_callback (u32 client_index) VL_MSG_API_REAPER_FUNCTION (memclnt_delete_callback); static void -vl_api_control_ping_t_handler (vl_api_control_ping_t * mp) -{ - vl_api_control_ping_reply_t *rmp; - int rv = 0; - - /* *INDENT-OFF* */ - REPLY_MACRO2(VL_API_CONTROL_PING_REPLY, - ({ - rmp->vpe_pid = ntohl (getpid()); - })); - /* *INDENT-ON* */ -} - -static void vl_api_show_version_t_handler (vl_api_show_version_t * mp) { vl_api_show_version_reply_t *rmp; @@ -293,8 +278,6 @@ vpe_api_hookup (vlib_main_t * vm) /* * Thread-safe API messages */ - am->is_mp_safe[VL_API_CONTROL_PING] = 1; - am->is_mp_safe[VL_API_CONTROL_PING_REPLY] = 1; am->is_mp_safe[VL_API_IP_ROUTE_ADD_DEL] = 1; /* diff --git a/src/vpp/api/vpe.api b/src/vpp/api/vpe.api index 3c4c0214ad5..5976f3d99a9 100644 --- a/src/vpp/api/vpe.api +++ b/src/vpp/api/vpe.api @@ -53,30 +53,6 @@ import "vpp/api/vpe_types.api"; * flow APIs: see .../vnet/vnet/flow/{flow.api, flow_api.c} */ -/** \brief Control ping from client to api server request - @param client_index - opaque cookie to identify the sender - @param context - sender context, to match reply w/ request -*/ -define control_ping -{ - u32 client_index; - u32 context; -}; - -/** \brief Control ping from the client to the server response - @param client_index - opaque cookie to identify the sender - @param context - sender context, to match reply w/ request - @param retval - return code for the request - @param vpe_pid - the pid of the vpe, returned by the server -*/ -define control_ping_reply -{ - u32 context; - i32 retval; - u32 client_index; - u32 vpe_pid; -}; - /** \brief show version @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request |