X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession-apps%2Fecho_client.h;h=2270720dcdad321d03968faede457af362f72762;hb=ad9d528;hp=8c07b10fbbaf69055ae331863a62a88aeb1a2824;hpb=8e43d04ca4f4496aaefc4f5e2b6e1c0951624099;p=vpp.git diff --git a/src/vnet/session-apps/echo_client.h b/src/vnet/session-apps/echo_client.h index 8c07b10fbba..2270720dcda 100644 --- a/src/vnet/session-apps/echo_client.h +++ b/src/vnet/session-apps/echo_client.h @@ -30,6 +30,7 @@ typedef struct { + CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); app_session_t data; u64 bytes_to_send; u64 bytes_sent; @@ -37,7 +38,7 @@ typedef struct u64 bytes_received; u64 vpp_session_handle; u8 thread_index; -} session_t; +} eclient_session_t; typedef struct { @@ -45,7 +46,7 @@ typedef struct * Application setup parameters */ svm_queue_t *vl_input_queue; /**< vpe input queue */ - svm_queue_t **vpp_event_queue; + svm_msg_q_t **vpp_event_queue; u32 cli_node_index; /**< cli process node index */ u32 my_client_index; /**< loopback API client handle */ @@ -69,7 +70,7 @@ typedef struct /* * Test state variables */ - session_t *sessions; /**< Session pool, shared */ + eclient_session_t *sessions; /**< Session pool, shared */ clib_spinlock_t sessions_lock; u8 **rx_buf; /**< intermediate rx buffers */ u8 *connect_test_data; /**< Pre-computed test data */ @@ -104,6 +105,12 @@ typedef struct vlib_main_t *vlib_main; } echo_client_main_t; +enum +{ + ECHO_CLIENTS_STARTING, + ECHO_CLIENTS_RUNNING, + ECHO_CLIENTS_EXITING +} echo_clients_test_state_e; extern echo_client_main_t echo_client_main; vlib_node_registration_t echo_clients_node;