[PATCH v10 3/6] flow_parser: add shared parser library

Stephen Hemminger stephen at networkplumber.org
Tue Feb 10 15:44:05 CET 2026


On Mon,  2 Feb 2026 12:36:55 +0100
Lukas Sismis <sismis at dyna-nic.com> wrote:

> Introduce librte_flow_parser as an experimental library
> exposing the testpmd flow CLI parser as an optional 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
> - Lightweight 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.
> 
> Other applications should primarily leverage the functions for
> separately parsing rte_flow rule attributes/patterns/actions.
> 
> Signed-off-by: Lukas Sismis <sismis at dyna-nic.com>

I fixed a couple of checkpatch warnings during merge to next-net.
The break, use strlcpy, and spelling.


More information about the dev mailing list