numam-dpdk/app/test-pmd
Gregory Etelson 849e6ddc6a app/testpmd: fix tunnel offload validation
Tunnel offload API allows application to restore packet to
its original form if chain of flows missed after DECAP action.
The main idea of the tunnel offload API was to query port PMD
to provide flow elements - actions or items.
Flow elements supplied by PMD are merged with original flow rule
elements provided by testpmd operator to create a new flow rule,
optimal for PMD, to implement the tunnel offload API.
That flow rule transformation is hidden form testpmd operator and uses
internal testpmd resources.

Current testpmd did not release tunnel offload resources if flow rule
validation failed.

The patch always releases tunnel offload resources after flow rule
validation returns.

Fixes: 1b9f274623 ("app/testpmd: add commands for tunnel offload")
Cc: stable@dpdk.org

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Reviewed-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
2021-11-17 13:12:56 +01:00
..
5tswap.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
bpf_cmd.c app/testpmd: send failure logs to stderr 2021-07-24 15:12:57 +02:00
bpf_cmd.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
cmd_flex_item.c app/testpmd: fix flex item flush 2021-11-05 22:19:38 +01:00
cmdline_flow.c app/testpmd: fix GTP PSC extension header length 2021-11-16 15:24:24 +01:00
cmdline_mtr.c app/testpmd: fix access to DSCP table entries 2021-10-19 18:10:28 +02:00
cmdline_mtr.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_tm.c app/testpmd: send failure logs to stderr 2021-07-24 15:12:57 +02:00
cmdline_tm.h app/testpmd: add TM command for non-leaf and packet mode 2020-09-18 18:55:10 +02:00
cmdline.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
config.c app/testpmd: fix tunnel offload validation 2021-11-17 13:12:56 +01:00
csumonly.c build: make GRO/GSO libraries optional 2021-11-17 12:48:22 +01:00
flowgen.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
icmpecho.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
ieee1588fwd.c mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
iofwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macfwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap_common.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
macswap_neon.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap_sse.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build build: make metrics libraries optional 2021-11-17 12:48:33 +01:00
noisy_vnf.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
parameters.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
rxonly.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
shared_rxq_fwd.c app/testpmd: add forwarding engine for shared Rx queue 2021-10-22 00:09:19 +02:00
testpmd.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
testpmd.h app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
txonly.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
util.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00