X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession-apps%2Fecho_client.c;h=fb7de48f102965dca8ad66867322a581c4a98d1b;hb=c5df8c71c;hp=44e6ffce8428b4920ae149b008924c551ca268b2;hpb=f6c4313b6aa7746fe97afd398ce68c2efbef0600;p=vpp.git diff --git a/src/vnet/session-apps/echo_client.c b/src/vnet/session-apps/echo_client.c index 44e6ffce842..fb7de48f102 100644 --- a/src/vnet/session-apps/echo_client.c +++ b/src/vnet/session-apps/echo_client.c @@ -1,7 +1,7 @@ /* * echo_client.c - vpp built-in echo client code * - * Copyright (c) 2017 by Cisco and/or its affiliates. + * Copyright (c) 2017-2019 by Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -62,7 +62,8 @@ send_data_chunk (echo_client_main_t * ecm, eclient_session_t * s) svm_fifo_t *f = s->data.tx_fifo; rv = clib_min (svm_fifo_max_enqueue (f), bytes_this_chunk); svm_fifo_enqueue_nocopy (f, rv); - session_send_io_evt_to_thread_custom (f, s->thread_index, + session_send_io_evt_to_thread_custom (&f->master_session_index, + s->thread_index, SESSION_IO_EVT_TX); } else @@ -95,7 +96,8 @@ send_data_chunk (echo_client_main_t * ecm, eclient_session_t * s) hdr.lcl_port = at->lcl_port; svm_fifo_enqueue_nowait (f, sizeof (hdr), (u8 *) & hdr); svm_fifo_enqueue_nocopy (f, rv); - session_send_io_evt_to_thread_custom (f, s->thread_index, + session_send_io_evt_to_thread_custom (&f->master_session_index, + s->thread_index, SESSION_IO_EVT_TX); } else @@ -380,7 +382,7 @@ echo_clients_session_connected_callback (u32 app_index, u32 api_context, if (!ecm->vpp_event_queue[thread_index]) ecm->vpp_event_queue[thread_index] = - session_manager_get_vpp_event_queue (thread_index); + session_main_get_vpp_event_queue (thread_index); /* * Setup session @@ -428,7 +430,7 @@ echo_clients_session_reset_callback (session_t * s) vnet_disconnect_args_t _a = { 0 }, *a = &_a; if (s->session_state == SESSION_STATE_READY) - clib_warning ("Reset active connection %U", format_stream_session, s, 2); + clib_warning ("Reset active connection %U", format_session, s, 2); a->handle = session_handle (s); a->app_index = ecm->app_index;