aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd
AgeCommit message (Collapse)AuthorFilesLines
2021-04-28bump dpdk version to 20.05Konstantin Ananyev7-117/+121
Bump dpdk version to 20.05 and adjust tldk source. Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Change-Id: Id2ce864ad20b3b347f1ac05cd67c15384e454c52
2020-03-04l4p/tcp_ofo: Add status on exit to test scriptMariusz Drost1-0/+7
For script usage in Jenkins environment status needs to be passed on exit. Correct status is calculated based on tests outcome. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: Iea8ec45688e0f4a18e1dbe3bc0fd7cd83e6137fb
2020-03-03l4p/tcp_ofo: Add usage of --mbuf-numMariusz Drost1-2/+5
Addition of --mbuf-num cmd-line parameter usage in ofo/loss tests. Value is lower that default to meet CI environment capabilities. Additionally fixed issue when test script in tap mode tries to create temporary result file on remote machine. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: Iaa87df158ff97b36bb602ee88450de759c257a3f
2020-03-03l4fwd: Add new cmd-line parameter --mbuf-numMariusz Drost5-9/+21
In some cases default value of MPOOL_NB_BUF is too large. Because of that new cmd-line parameter is added (--mbuf-num/-M), so user can define that value directly before running an application. Introduced parameter is optional. Default value of MPOOL_NB_BUF (0x20000) is preserved. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: I9517955f313b6e97da1bb20c50b25e761430e0a8
2020-02-04l4p/tcp_ofo: ofo and loss tests mergeMariusz Drost4-166/+315
Addition of tests for packets that are out of order or lost that are executed on a single machine (with use of tap interface). Added tests are merged into existing test suite which runs on local/remote machine. Choice of mode is done with ETH_DEV variable. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: I766ebda215310342d9dc1edf71bc3667648fdeff
2020-02-03l4fwd: Change rx offload defaultMariusz Drost1-5/+1
Tap interface does not provide any offload capabilities. To use that interface with l4fwd app, default offload capabilities should be set to 0. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: If30f44bb986b87e079be3ec1dfe0ad5341862030
2019-12-31v6: make TCP stream alloc/free to use memtank APIKonstantin Ananyev1-0/+1
Introduce two extra parameters for TCP context creation: struct { uint32_t min; /**< min number of free streams (grow threshold). */ uint32_t max; /**< max number of free streams (shrink threshold). */ } free_streams; By default these params are equal to max_streams value (avoid dynamic allocation and preserve current beahviour). grow() is invoked from accept() FE call to refill streams tank for BE. shrink() is invoked from close() FE call. Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Change-Id: I7af6a76d64813ee4a535323e27ffbfd75037fc92
2019-12-19l4p/tcp_ofo: fix killing l4fwd app in testsMariusz Drost1-1/+1
Between test cases l4fwd application is closed with kill command. Default kill signal is SIGTERM which is not supported in l4fwd. To close l4fwd cleanly, signal has been changed to SIGINT. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: If083f18cab22766154cc80afa26d45d953277294
2019-12-12l4p/tcp_ofo: Tests for ofo and loss of pktsMariusz Drost4-0/+1098
Tests for packets that are out of order and lost. They validate data send over netcat (TCP) to TLDK/l4fwd app in echo mode. Data is set to be reordered or loss some percentage of packets. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: I68f80d1fb75d5e9e5ed6d052ddcdc60588284f78
2019-06-14dpdk: move to v18.11 as default DPDK versionJianfeng Tan3-10/+6
DPDK v18.11 is the latest LTS verison. As of the API/ABI changes introduced in ether at v18.08, we cannot compile l4fwd and nginx with old DPDK versions. Change-Id: I225302d9a257e9bce4aa22ff84d76a57170e7eb7 Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2018-02-08at DPDK queue setup take into account device descriptor limits.Konstantin Ananyev1-3/+7
Change-Id: Idf7c65a8499f41d2cd53342f91f2b87e902faf58 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2018-02-07tldk: make sure it builds/works with latest dpdk (17.11/18.02)Konstantin Ananyev5-118/+122
Change-Id: I460b88661656b64558b442c7800b4edc20ad4b56 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2017-11-24l4fwd: allow to specify TX payload contents for rxtx modeKonstantin Ananyev5-16/+104
Introduce a new command-line option that specifies the file with response payload. Change-Id: I1a208eeebe1d87970da23956fb08949abf601422 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2017-07-27- Introduce tle_tcp_stream_readv() and tle_tcp_stream_writev().Konstantin Ananyev2-6/+39
- 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>
2017-06-30Add l4fwd RXTX modeRemy Horton6-11/+140
This mode allows for transactions where the request and response are of different payload sizes Change-Id: I0744159f0618c9241e576a4af1c02765bbf1dd9f Signed-off-by: Remy Horton <remy.horton@intel.com>
2017-05-15Added rte_ring wrapper functions to support dpdk-17.05 and older versionMohammad Abdul Awal5-365/+298
Change-Id: I5cfcff8be275ab2a2fb4ad6a62777a8cb88f425b Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
2017-05-09two fixes. - allow conditional jumbo frame based on rx_max_pkt_len - fix mss ↵Mohammad Abdul Awal3-3/+4
size for rx_synack Change-Id: I47b7775445bc4ba647f9da9edafc4b255082e926 Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
2017-04-14* Add siphash file for calculating the sequence number.Reshma Pattan3-3/+58
* l4fwd app changed to include new command line parameters hash and secret key for hash calculation. * Changed l4fwd library to integrate siphash support for calculating the sequence number. Change-Id: I29c60836c8b17a118d76b619fd79398fac200f67 Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
2017-03-23implement sw segmentation for tcpMohammad Abdul Awal1-3/+3
Change-Id: Ibe3ac4b401ea9c7680ab5d3e8c73557d95402ff2 Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
2017-03-06Rewrite accept() code-path and make l4fwd not to close() on FIN immediatelly.Konstantin Ananyev3-86/+108
Changes in public API: - removes tle_tcp_stream_synreqs() and tle_tcp_reject() - adds tle_tcp_stream_update_cfg Allocates and fills new stream when final ACK for 3-way handshake is received. Changes in l4fwd sample application: prevents l4fwd to call close() on error event immediately: first try to recv/send remaining data. Change-Id: I8c5b9d365353084083731a4ce582197a8268688f Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2017-02-24Introduce first version of TCP code.Konstantin Ananyev19-0/+6326
Supported functionality: - open/close - listen/accept/connect - send/recv In order to achieve that libtle_udp library was reworked into libtle_l4p library that supports both TCP and UDP protocols. New libtle_timer library was introduced (thanks to Cisco guys and Dave Barach <dbarach@cisco.com> for sharing their timer code with us). Sample application was also reworked significantly to support both TCP and UDP traffic handling. New UT were introduced. Change-Id: I806b05011f521e89b58db403cfdd484a37beb775 Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> Signed-off-by: Karol Latecki <karolx.latecki@intel.com> Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>