diff options
author | Florin Coras <fcoras@cisco.com> | 2018-10-15 21:35:42 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-10-16 17:14:39 +0000 |
commit | eb97e5f548b009ffa92efa3f778b4a7f6f40b7eb (patch) | |
tree | 4c0148896cce873cc1fe1c26546025eb832e9dea /src/vnet/session/stream_session.h | |
parent | f47e9b648aaab716c62bf004fa36176dbe8b21d7 (diff) |
tls: fix multi threaded medium scale test (VPP-1457)
- ensure session enqueue epoch does not wrap between two enqueues
- use 3 states for echo clients app, to distinguish between starting and
closing phases
- force tcp fin retransmit if out of buffers while sending a fin
Change-Id: I6f2cab46affd1148aba2a33fb6d58bcc54f32805
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/stream_session.h')
-rw-r--r-- | src/vnet/session/stream_session.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/session/stream_session.h b/src/vnet/session/stream_session.h index 30178d7a453..287a8927339 100644 --- a/src/vnet/session/stream_session.h +++ b/src/vnet/session/stream_session.h @@ -67,7 +67,7 @@ typedef struct _stream_session_t u8 thread_index; /** To avoid n**2 "one event per frame" check */ - u8 enqueue_epoch; + u64 enqueue_epoch; /** svm segment index where fifos were allocated */ u32 svm_segment_index; @@ -120,6 +120,9 @@ typedef struct local_session_ /** Port for connection. Overlaps thread_index/enqueue_epoch */ u16 port; + /** Partly overlaps enqueue_epoch */ + u8 pad_epoch[7]; + /** Segment index where fifos were allocated */ u32 svm_segment_index; |