X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fhs_apps%2Fsapi%2Fvpp_echo.c;h=12be1f99537ee74897906f3cd107d139ff59b6d6;hb=9ace36d0f9b04e2d4db410607ee33a8e72ef00c5;hp=560c6a85f3d9cbbbd61c708a31d05439e865871c;hpb=960e58efde0f11d0c1b8783c104c29dee34ee088;p=vpp.git diff --git a/src/plugins/hs_apps/sapi/vpp_echo.c b/src/plugins/hs_apps/sapi/vpp_echo.c index 560c6a85f3d..12be1f99537 100644 --- a/src/plugins/hs_apps/sapi/vpp_echo.c +++ b/src/plugins/hs_apps/sapi/vpp_echo.c @@ -785,6 +785,12 @@ del_segment_handler (session_app_del_segment_msg_t * mp) ECHO_LOG (2, "Unmaped segment 0x%lx", mp->segment_handle); } +static void +cleanup_handler (session_cleanup_msg_t * mp) +{ + ECHO_LOG (1, "Cleanup confirmed for 0x%lx", mp->handle); +} + static void handle_mq_event (session_event_t * e) { @@ -810,6 +816,9 @@ handle_mq_event (session_event_t * e) case SESSION_CTRL_EVT_APP_DEL_SEGMENT: del_segment_handler ((session_app_del_segment_msg_t *) e->data); break; + case SESSION_CTRL_EVT_CLEANUP: + cleanup_handler ((session_cleanup_msg_t *) e->data); + break; case SESSION_IO_EVT_RX: break; default: