Skip to content

Commit

Permalink
app/flow-perf: fix encap/decap actions
Browse files Browse the repository at this point in the history
[ upstream commit 83f9be1 ]

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: 0c8f1f4 ("app/flow-perf: support raw encap/decap actions")

Signed-off-by: Wisam Jaddo <wisamm@nvidia.com>
Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
  • Loading branch information
wisamJ authored and steevenlee committed May 8, 2021
1 parent 2b03f8c commit 2e83b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-flow-perf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,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 */
Expand Down

0 comments on commit 2e83b42

Please sign in to comment.