app/testpmd: add 5-tuple swap forwarding engine
authorShiri Kuzin <shirik@mellanox.com>
Thu, 2 Jul 2020 15:16:14 +0000 (18:16 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:54 +0000 (06:18 +0200)
commit2564abda35db93ff75dd78d8e231c212ebb8cfc9
tree68380fbdd7ad1c7e84f8ee5b9e135a6d47d598bb
parent460d1679586e7095709d3229257cdce0032706c3
app/testpmd: add 5-tuple swap forwarding engine

The new 5-tuple swap engine swaps:
source and destination mac address,
source and destination address in ipv4/ipv6,
source and destination port in UDP/TCP.

The forwarding engine will parse each layer
and swap it, and will stop when the next
layer doesn't match.

The mentioned headers of ICMP/ARP/Multicast
packets will be swapped as well according to
matching layers.

usage: --forward-mode=5tswap

Signed-off-by: Shiri Kuzin <shirik@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/5tswap.c [new file with mode: 0644]
app/test-pmd/Makefile
app/test-pmd/meson.build
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/rel_notes/release_20_08.rst
doc/guides/testpmd_app_ug/run_app.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst