diff mbox series

app/flow-perf: fix setting decap data for decap actions

Message ID MWHPR12MB167739B112AC13E536CA3B5AA4919@MWHPR12MB1677.namprd12.prod.outlook.com (mailing list archive)
State Rejected, archived
Headers show
Series app/flow-perf: fix setting decap data for decap actions | expand

Checks

Context Check Description
ci/Intel-compilation fail apply issues
ci/checkpatch warning coding style issues

Commit Message

Wisam Monther March 10, 2021, 9:45 a.m. UTC
When using decap actions it's been set to the data to decap
into the encap_data instead of decap_data, as a results we end
up with bad encap and decap data in many cases.

Fixes: 0c8f1f4ab90e ("app/flow-perf: support raw encap/decap actions")
Cc: stable@dpdk.org<mailto:stable@dpdk.org>

Signed-off-by: Wisam Jaddo <wisamm@nvidia.com<mailto:wisamm@nvidia.com>>
---
app/test-flow-perf/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.17.1
diff mbox series

Patch

diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c
index 99d0463456..e3e6a1b420 100644
--- a/app/test-flow-perf/main.c
+++ b/app/test-flow-perf/main.c
@@ -726,7 +726,7 @@  args_parse(int argc, char **argv)
                                        for (i = 0; i < RTE_DIM(flow_options); i++) {
                                                if (strcmp(flow_options[i].str, token) == 0) {
                                                        printf("%s,", token);
-                                                       encap_data |= flow_options[i].mask;
+                                                       decap_data |= flow_options[i].mask;
                                                        break;
                                                }
                                                /* Reached last item with no match */