Introduce first version of TCP code. 12/5512/2
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 21 Feb 2017 18:12:20 +0000 (18:12 +0000)
committerKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 24 Feb 2017 16:37:08 +0000 (16:37 +0000)
commitaa97dd1ce910b839fed46ad55d1e70e403f5a930
treef6f0fd494eaf499859bff9f20f5ddfac9ab99233
parentf5f10013ffef8e4ac1071087b8492fe6380d98fe
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>
86 files changed:
.gitignore
README
examples/Makefile
examples/l4fwd/Makefile [moved from examples/udpfwd/Makefile with 95% similarity]
examples/l4fwd/README [new file with mode: 0644]
examples/l4fwd/be.cfg [moved from examples/udpfwd/be.cfg with 79% similarity]
examples/l4fwd/common.h [new file with mode: 0644]
examples/l4fwd/dpdk_legacy.h [moved from examples/udpfwd/main_dpdk_legacy.h with 85% similarity]
examples/l4fwd/dpdk_version.h [moved from examples/udpfwd/dpdk_version.h with 95% similarity]
examples/l4fwd/fe.cfg [moved from examples/udpfwd/fe.cfg with 100% similarity]
examples/l4fwd/fwdtbl.h [moved from examples/udpfwd/fwdtbl.h with 100% similarity]
examples/l4fwd/gen_fe_cfg.py [moved from examples/udpfwd/gen_fe_cfg.py with 97% similarity]
examples/l4fwd/lcore.h [new file with mode: 0644]
examples/l4fwd/main.c [new file with mode: 0644]
examples/l4fwd/netbe.h [moved from examples/udpfwd/netbe.h with 75% similarity]
examples/l4fwd/parse.c [moved from examples/udpfwd/parse.c with 68% similarity]
examples/l4fwd/parse.h [moved from examples/udpfwd/parse.h with 83% similarity]
examples/l4fwd/pkt.c [new file with mode: 0644]
examples/l4fwd/pkt_dpdk_legacy.h [moved from examples/udpfwd/pkt_dpdk_legacy.h with 57% similarity]
examples/l4fwd/port.h [new file with mode: 0644]
examples/l4fwd/tcp.h [new file with mode: 0644]
examples/l4fwd/udp.h [new file with mode: 0644]
examples/udpfwd/README [deleted file]
examples/udpfwd/main.c [deleted file]
examples/udpfwd/pkt.c [deleted file]
lib/Makefile
lib/libtle_dring/tle_dring.h
lib/libtle_l4p/Makefile [moved from lib/libtle_udp/Makefile with 78% similarity]
lib/libtle_l4p/ctx.c [new file with mode: 0644]
lib/libtle_l4p/ctx.h [new file with mode: 0644]
lib/libtle_l4p/debug.h [new file with mode: 0644]
lib/libtle_l4p/event.c [moved from lib/libtle_udp/event.c with 100% similarity]
lib/libtle_l4p/misc.h [moved from lib/libtle_udp/misc.h with 74% similarity]
lib/libtle_l4p/net_misc.h [new file with mode: 0644]
lib/libtle_l4p/osdep.h [moved from lib/libtle_udp/osdep.h with 91% similarity]
lib/libtle_l4p/port_bitmap.h [moved from lib/libtle_udp/port_bitmap.h with 84% similarity]
lib/libtle_l4p/stream.h [new file with mode: 0644]
lib/libtle_l4p/stream_table.c [new file with mode: 0644]
lib/libtle_l4p/stream_table.h [new file with mode: 0644]
lib/libtle_l4p/syncookie.h [new file with mode: 0644]
lib/libtle_l4p/tcp_ctl.h [new file with mode: 0644]
lib/libtle_l4p/tcp_misc.h [new file with mode: 0644]
lib/libtle_l4p/tcp_ofo.c [new file with mode: 0644]
lib/libtle_l4p/tcp_ofo.h [new file with mode: 0644]
lib/libtle_l4p/tcp_rxq.h [new file with mode: 0644]
lib/libtle_l4p/tcp_rxtx.c [new file with mode: 0644]
lib/libtle_l4p/tcp_stream.c [new file with mode: 0644]
lib/libtle_l4p/tcp_stream.h [new file with mode: 0644]
lib/libtle_l4p/tcp_timer.h [new file with mode: 0644]
lib/libtle_l4p/tcp_txq.h [new file with mode: 0644]
lib/libtle_l4p/tle_ctx.h [new file with mode: 0644]
lib/libtle_l4p/tle_event.h [moved from lib/libtle_udp/tle_event.h with 93% similarity]
lib/libtle_l4p/tle_tcp.h [new file with mode: 0644]
lib/libtle_l4p/tle_udp.h [new file with mode: 0644]
lib/libtle_l4p/udp_rxtx.c [moved from lib/libtle_udp/udp_rxtx.c with 72% similarity]
lib/libtle_l4p/udp_stream.c [new file with mode: 0644]
lib/libtle_l4p/udp_stream.h [new file with mode: 0644]
lib/libtle_timer/Makefile [new file with mode: 0644]
lib/libtle_timer/timer.c [new file with mode: 0644]
lib/libtle_timer/tle_timer.h [new file with mode: 0644]
lib/libtle_udp/tle_udp_impl.h [deleted file]
lib/libtle_udp/udp_ctl.c [deleted file]
lib/libtle_udp/udp_impl.h [deleted file]
test/Makefile
test/gtest/Makefile
test/gtest/README
test/gtest/main.cpp
test/gtest/test_common.cpp [new file with mode: 0644]
test/gtest/test_common.h [new file with mode: 0644]
test/gtest/test_scapy_gen.py [new file with mode: 0644]
test/gtest/test_tle_ctx.cpp [new file with mode: 0644]
test/gtest/test_tle_ctx.h [moved from test/gtest/test_tle_udp_ctx.h with 85% similarity]
test/gtest/test_tle_tcp_stream.cpp [new file with mode: 0644]
test/gtest/test_tle_tcp_stream.h [new file with mode: 0644]
test/gtest/test_tle_udp_ctx.cpp [deleted file]
test/gtest/test_tle_udp_destroy.cpp
test/gtest/test_tle_udp_destroy.h
test/gtest/test_tle_udp_dev.cpp
test/gtest/test_tle_udp_dev.h
test/gtest/test_tle_udp_event.h
test/gtest/test_tle_udp_stream.cpp
test/gtest/test_tle_udp_stream.h
test/gtest/test_tle_udp_stream_gen.cpp [new file with mode: 0644]
test/gtest/test_tle_udp_stream_gen.h [new file with mode: 0644]
test/timer/Makefile [new file with mode: 0644]
test/timer/test_timer.c [new file with mode: 0644]