diff options
author | Florin Coras <fcoras@cisco.com> | 2018-05-16 09:28:02 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-16 19:56:47 +0000 |
commit | 48750899d7da52a38b5e7f940c739e2b3f10f236 (patch) | |
tree | 437ddf26dbf2b55ae61a2b6071a21b4e23bf83e1 /src/vnet/session-apps/echo_client.h | |
parent | 1acbf1d17b567829286ea74aded420189cec1277 (diff) |
echo client: used fixed pool for preallocated sessions
Change-Id: I9e2cf74ebe3e8750fa8d03930d2d72f4cae453c2
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session-apps/echo_client.h')
-rw-r--r-- | src/vnet/session-apps/echo_client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session-apps/echo_client.h b/src/vnet/session-apps/echo_client.h index 8c07b10fbba..f3fc8d2b59e 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 { @@ -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 */ |