[PATCH v1 1/5] flow_parser: add shared parser library
Stephen Hemminger
stephen at networkplumber.org
Tue Jan 6 17:35:26 CET 2026
On Mon, 5 Jan 2026 22:30:19 +0100
Lukas Sismis <sismis at dyna-nic.com> wrote:
> Introduce librte_flow_parser as an optional, experimental library
> exposing the testpmd flow CLI parser as a reusable component.
>
> The library provides:
> - rte_flow_parser_init(): Initialize parser with operation callbacks
> - rte_flow_parser_parse(): Parse flow command strings into output
> - rte_flow_parser_run(): Parse and execute via registered callbacks
> - Helper functions for parsing pattern/action/attribute strings
>
> The parser uses a single global instance design for simplicity.
> All parsing state is internal to the library. Callbacks are invoked
> for flow create, destroy, validate, query and other flow operations.
>
> This enables applications to reuse testpmd's well-tested flow syntax
> without duplicating the parser implementation.
>
> Signed-off-by: Lukas Sismis <sismis at dyna-nic.com>
> ---
Any new feature like this is required to add a new standalone test
to the functional tests.
More information about the dev
mailing list