History log of /tldk/examples/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
2a6da083 04-Mar-2020 Mariusz Drost <mariuszx.drost@intel.com>

l4p/tcp_ofo: Add status on exit to test script

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

83dc9425 03-Mar-2020 Mariusz Drost <mariuszx.drost@intel.com>

l4p/tcp_ofo: Add usage of --mbuf-num

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

74a56517 02-Mar-2020 Mariusz Drost <mariuszx.drost@intel.com>

l4fwd: Add new cmd-line parameter --mbuf-num

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

3082ee6b 31-Jan-2020 Mariusz Drost <mariuszx.drost@intel.com>

l4p/tcp_ofo: ofo and loss tests merge

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

b3e45b24 31-Jan-2020 Mariusz Drost <mariuszx.drost@intel.com>

l4fwd: Change rx offload default

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

b8f1ef2b 04-Nov-2019 Konstantin Ananyev <konstantin.ananyev@intel.com>

v6: make TCP stream alloc/free to use memtank API

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

0ee09439 19-Dec-2019 Mariusz Drost <mariuszx.drost@intel.com>

l4p/tcp_ofo: fix killing l4fwd app in tests

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

21121578 25-Oct-2019 Mariusz Drost <mariuszx.drost@intel.com>

l4p/tcp_ofo: Tests for ofo and loss of pkts

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

cecfc87f 13-Jun-2019 Jianfeng Tan <henry.tjf@antfin.com>

dpdk: move to v18.11 as default DPDK version

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>

5b873e3b 08-Feb-2018 Konstantin Ananyev <konstantin.ananyev@intel.com>

at DPDK queue setup take into account device descriptor limits.

Change-Id: Idf7c65a8499f41d2cd53342f91f2b87e902faf58
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

5c795f7b 06-Feb-2018 Konstantin Ananyev <konstantin.ananyev@intel.com>

tldk: make sure it builds/works with latest dpdk (17.11/18.02)

Change-Id: I460b88661656b64558b442c7800b4edc20ad4b56
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

3726dc50 24-Nov-2017 Konstantin Ananyev <konstantin.ananyev@intel.com>

l4fwd: allow to specify TX payload contents for rxtx mode

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>

7e18fa1b 26-Jul-2017 Konstantin Ananyev <konstantin.ananyev@intel.com>

- 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>

e151ee29 30-May-2017 Remy Horton <remy.horton@intel.com>

Add l4fwd RXTX mode

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>

fbba0a3b 11-May-2017 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

Added rte_ring wrapper functions to support dpdk-17.05 and older version

Change-Id: I5cfcff8be275ab2a2fb4ad6a62777a8cb88f425b
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

36d90e3a 03-May-2017 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

two fixes. - allow conditional jumbo frame based on rx_max_pkt_len - fix mss size for rx_synack

Change-Id: I47b7775445bc4ba647f9da9edafc4b255082e926
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

9fa82a63 07-Apr-2017 Reshma Pattan <reshma.pattan@intel.com>

* Add siphash file for calculating the sequence number.
* 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>

c4c44906 03-Mar-2017 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

implement sw segmentation for tcp

Change-Id: Ibe3ac4b401ea9c7680ab5d3e8c73557d95402ff2
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

21e7392f 03-Mar-2017 Konstantin Ananyev <konstantin.ananyev@intel.com>

Rewrite accept() code-path and make l4fwd not to close() on FIN immediatelly.

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>

aa97dd1c 21-Feb-2017 Konstantin Ananyev <konstantin.ananyev@intel.com>

Introduce first version of TCP code.

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>

af7f9031 15-Nov-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

fix dpdk version checking

Change-Id: Ic6fda3f3416a5a4ed6df29a3778ddea3ae87b40d
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

65c15dd8 19-Oct-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

example/udpfw: assign queue id after mac info in ports initialized

fixes 8ae38dfb285a ("Initial working version of RSS").

Change-Id: I4c4e79c6f23a39b44f3a3f609d1bee540df6aa54
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

44222fc2 07-Oct-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

makefiles: don't assume that output and target is always the same

Change-Id: I7d313c74e2daf4d75c5c11460bdb87737cd46851
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

5d0ab6ce 06-Aug-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Enable C++ files compilation

Change-Id: I28b180a6c91165049cd7cc58a64f1e5e1698da61
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

c216b95d 15-Sep-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

allocated all port and all cpu momory together instead of realloc

Change-Id: I3240e6afefb5d784e08e3a5a1b70ada7d5b4b223
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

258f299a 10-Sep-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

udpfw: dynamic allocation of netbe_* structures

This patch allows dynamic allocation of memory for the appliation.
The solves the problem of allocating large amount of static memory
which caused accessing the momory locations outside of 32-bit
address-space duing compile-time.

Change-Id: If8031ba846e4ed339d8ce8ebe4fd69325f098d17
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

e57f675d 09-Sep-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

add list of blocked ports for IPv6

Change-Id: Iefc866e71e887fe23ff9473b23577b6e576f18b1
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

32c9eda3 12-Sep-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Merge "added Python script to generate streams for fe.cfg file"


55aba2fc 06-Sep-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

makefile: allow using DPDK from git and OS distributions

User can use DPDK_VERSION to download a specific DPDK version
from git. If no DPDK_VERSION is given, the master branch will be
downloaded. User can also provide RTE_SDK path for DPDK from OS
disctibution or any other location.

Change-Id: I7bbc30984cfc48c70d13b51d8fb6c1928d94a821
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

a1fc5816 06-Sep-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

added Python script to generate streams for fe.cfg file

This script allows to generate streams for frontend config file
with different parameters, including, number of streams, ipv4/ipv6
port in decimal or hex, FE/BE on same lcore or separate lcore etc.

Change-Id: I8a7e0137ef62363b272756ed4b8811804d4f9ec4
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

8ae38dfb 15-Jun-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

Initial working version of RSS

The patch enables RSS support for TLDK udpfwd application.
The number of rx queues and tx queues are equal to the number of lcore
enabled for backend operation. NICs calculate the RSS hash based on the
UDP dest port only. The RSS hash key is calculated at runtime based on
the number of queues enebaled.

Change-Id: I06006a4606f8faad8f16241348b2ce19b70335e5
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

58a36746 29-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Merge "udpfwd: allow BE and FE run over same core"


50926229 29-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

udpfwd: allow BE and FE run over same core

Change-Id: Id0d3aa20bf10735dca00a1e16b0dcc0ba9642140
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

2e45b7a3 29-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

udpfwd: avoid loads blocked by stores while updating mbuf tx_offload

Change-Id: Id0b6e2cf176493188f6628f92700a3095ab6af85
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

9c7aa95e 18-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

fix segfault on input packets with invalid checksum

libtle_udp: prevent receive code-path to reference packets
that were already freed.

udpfwd: if input device doesn't support IPV4 checksum offload,
we need to recalculate IPV4 header checksum of the
reassembled packet.

fixes 3395610ea65d ("Initial commit of tldk code").
fixes 8efc4c11464f ("Change libtle_udp to use dring").

Change-Id: I77523b1ba63b0f8d25d5f0b3bc777a338ad8acf5
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

8efc4c11 07-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Change libtle_udp to use dring.

Right now didn't see any noticeable performance boost with these changes.
Though it allowed to get rid of using locks at UDP TX code-path
and simplify the code quite a lot.

Change-Id: If865abd3db9127f510df670d9a8edb168b915770
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

c034e691 07-Jul-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Introduce extra layer of hierarchy to the makefiles.

Now each subdir in the TLDK_ROOT has it's own Makefile.
In preparation for further project expansion.

Change-Id: I80560680a8538734986941e8df343c5393c621cc
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>

d09ce4f4 21-Jun-2016 Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

Fixed reallocated memory initialisation bug

Change-Id: I8db6fe42303022c5ee3326892a4670f8445c27ed
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>

3395610e 03-Jun-2016 Konstantin Ananyev <konstantin.ananyev@intel.com>

Initial commit of tldk code.

Change-Id: Ib96fdd2c57bae0a51ed420137c35eb8e2ee58473
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>