app/testpmd: fix tunnel offload flows cleanup
authorGregory Etelson <getelson@nvidia.com>
Tue, 11 May 2021 08:03:31 +0000 (11:03 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 19:08:41 +0000 (21:08 +0200)
commit99fc79b37af5652f30ab3c9725fd6a98494d14dc
tree3821b0e4ffdaeb9f393b41dfbec1fe712d84308d
parentab8c5005853ac4f77b645396ce681fb6ea2bb5e9
app/testpmd: fix tunnel offload flows cleanup

Tunnel offload model requires application to obtain PMD related flow
items or actions to construct a flow rule. These elements acquire
internal PMD flow resources that must be explicitly released.

The patch destroys tunnel offload PMD resources after flow creation
failure.

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