app/testpmd: add tunnel types
authorEli Britstein <elibr@nvidia.com>
Thu, 23 Sep 2021 08:43:00 +0000 (11:43 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Oct 2021 21:51:10 +0000 (23:51 +0200)
commitad6a8a20cb6be078575c7dab579877ab51c3cb4b
treefc52232a9b7b1890f28b2ee920b3e514a8305caf
parent287ca31bea159a35ee755e1e75900203945dc536
app/testpmd: add tunnel types

Current testpmd implementation supports VXLAN only for tunnel offload.
Add GRE, NVGRE and GENEVE for tunnel offload flow matches.

For example:
testpmd> flow tunnel create 0 type vxlan
port 0: flow tunnel #1 type vxlan
testpmd> flow tunnel create 0 type nvgre
port 0: flow tunnel #2 type nvgre
testpmd> flow tunnel create 0 type gre
port 0: flow tunnel #3 type gre
testpmd> flow tunnel create 0 type geneve
port 0: flow tunnel #4 type geneve

Fixes: 1b9f274623b8 ("app/testpmd: add commands for tunnel offload")
Cc: stable@dpdk.org
Signed-off-by: Eli Britstein <elibr@nvidia.com>
Reviewed-by: Gregory Etelson <getelson@nvidia.com>
app/test-pmd/config.c