]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix flow rule creation parsing
authorAlexander Kozyrev <akozyrev@nvidia.com>
Tue, 1 Mar 2022 22:47:39 +0000 (00:47 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 3 Mar 2022 13:30:21 +0000 (14:30 +0100)
commite2b1848455b9d6bbbaab874d3879386e8cda3131
treeed6e2028237d2686cd6d1455151a3e9eba6d519c
parent00373909c8f0377f03969eabf530293a7af9e23f
app/testpmd: fix flow rule creation parsing

A pattern template creation shares the parsing mechanism with
a simple flow creation. The pattern template creation only consists
of pattern items while the flow creation continues with actions.
The parsing mechanism now accommodates both cases and allows to stop
at the item end token, which should not happen for the flow creation.
Fix parsing mechanism to differentiate between these two cases.

Bugzilla ID: 941
Fixes: 04cc665fab38 ("app/testpmd: add flow template management")
Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Tested-by: Zhimin Huang <zhiminx.huang@intel.com>
app/test-pmd/cmdline_flow.c