diff options
author | Florin Coras <fcoras@cisco.com> | 2018-05-04 15:46:57 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-05-09 11:34:06 +0000 |
commit | 8e43d04ca4f4496aaefc4f5e2b6e1c0951624099 (patch) | |
tree | 3addc5766002d5224dde2c7fa4efe018480830e4 /src/vnet/session/session.c | |
parent | ee7f0bd9e7ce4106d3b9511b0efede4326bded51 (diff) |
session: cleanup session tx function
- rework the function to declutter and avoid building more than one tx
frame
- add dual loop although benefits in my tests seem to be minimal
- improve tcp/udp echo external apps. They have slightly better
throughput than internal echo apps.
- udp bugfixes
Change-Id: Iea4a245b1b1bb407a7f403dedcce2664a49f774b
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r-- | src/vnet/session/session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 568065ebc0d..a8a9c66ac81 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -1272,6 +1272,7 @@ session_manager_main_enable (vlib_main_t * vm) vec_validate (smm->free_event_vector, num_threads - 1); vec_validate (smm->vpp_event_queues, num_threads - 1); vec_validate (smm->peekers_rw_locks, num_threads - 1); + vec_validate_aligned (smm->ctx, num_threads - 1, CLIB_CACHE_LINE_BYTES); for (i = 0; i < TRANSPORT_N_PROTO; i++) { |