diff options
author | Florin Coras <fcoras@cisco.com> | 2022-03-25 18:53:09 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2022-03-25 19:11:46 -0700 |
commit | 416e1fffec997abfb5305b5ecc36da789a0676b2 (patch) | |
tree | ca089b95f0c4a619186be11d2756086cbbaa80ac /src/plugins/hs_apps/echo_client.h | |
parent | 5b12d2694ed34b01e3757190df64312a0ad7d398 (diff) |
hsa: echo client connects as rpc
Do connects in an session layer rpc instead of doing cli process sleeps.
Performance with 4 workers goes from ~120k/180k first run/warmed up to
~135k/240k
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Id184913e9898f8db099e29a605f3a9b1fc67be63
Diffstat (limited to 'src/plugins/hs_apps/echo_client.h')
-rw-r--r-- | src/plugins/hs_apps/echo_client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/hs_apps/echo_client.h b/src/plugins/hs_apps/echo_client.h index 9b8dbcb5419..a0e844d7e6d 100644 --- a/src/plugins/hs_apps/echo_client.h +++ b/src/plugins/hs_apps/echo_client.h @@ -64,6 +64,8 @@ typedef struct u32 prev_conns; u32 repeats; + u32 connect_conn_index; /**< Conencts attempted progress */ + /* * Application setup parameters */ @@ -122,10 +124,12 @@ enum ECHO_CLIENTS_RUNNING, ECHO_CLIENTS_EXITING } echo_clients_test_state_e; -extern echo_client_main_t echo_client_main; +extern echo_client_main_t echo_client_main; vlib_node_registration_t echo_clients_node; +void echo_clients_program_connects (void); + #endif /* __included_echo_client_h__ */ /* |