aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/main.c
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2017-07-27 12:00:57 +0100
committerKonstantin Ananyev <konstantin.ananyev@intel.com>2017-07-27 20:24:53 +0100
commit7e18fa1bf263822c46d7431a911b41d6377d5f69 (patch)
treeddf5ce05545419d6d77bb9d8b3c48fc90d221a7a /examples/l4fwd/main.c
parente151ee29d02d7802fab9e32b50ced54fd8d64160 (diff)
- Introduce tle_tcp_stream_readv() and tle_tcp_stream_writev().
- Introduce flags for tle_ctx_param. - Introduce TLE_CTX_FLAG_ST - indicates that given ctx will be used by single thread only. - Introduce new parameters for tcp context: timewait - allows user to configure max timeout in TCP_TIMEWAIT state. icw - allows user to specify desired initial congestion window for new connections. -Few optimisations: cache tx.ol_flags inside tle destination. calcualte and cache inside ctx cycles_to_ms shift value. reorder restoring SYN opts and filling TCB a bit. Change-Id: Ie05087783b3b7f1e4ce99d3555bc5bd098f83fe0 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'examples/l4fwd/main.c')
-rw-r--r--examples/l4fwd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/l4fwd/main.c b/examples/l4fwd/main.c
index 7613a95..c43b8d7 100644
--- a/examples/l4fwd/main.c
+++ b/examples/l4fwd/main.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016 Intel Corporation.
+ * Copyright (c) 2016-2017 Intel Corporation.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -209,6 +209,7 @@ main(int argc, char *argv[])
__func__, rc);
memset(&ctx_prm, 0, sizeof(ctx_prm));
+ ctx_prm.timewait = TLE_TCP_TIMEWAIT_DEFAULT;
signal(SIGINT, sig_handle);