<div dir="ltr"><div dir="ltr">út 10. 2. 2026 v 15:45 odesílatel Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> napsal:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2 Feb 2026 12:36:52 +0100<br>
Lukas Sismis <<a href="mailto:sismis@dyna-nic.com" target="_blank">sismis@dyna-nic.com</a>> wrote:<br>
<br>
> This series extracts the testpmd flow CLI parser into a reusable library,<br>
> enabling external applications to parse rte_flow rules using testpmd syntax.<br>
> <br>
> Motivation<br>
> ----------<br>
> External applications like Suricata IDS [1] need to express hardware filtering<br>
> rules in a consistent, human-readable format. Rather than inventing custom<br>
> syntax, reusing testpmd's well-tested flow grammar provides immediate<br>
> compatibility with existing documentation and user knowledge.<br>
> <br>
> Note: This library provides only one way to create rte_flow structures.<br>
> Applications can also construct rte_flow_attr, rte_flow_item[], and<br>
> rte_flow_action[] directly in C code.<br>
> <br>
> Design<br>
> ------<br>
> The library (librte_flow_parser) exposes the following APIs:<br>
> - rte_flow_parser_parse_attr_str(): Parse attributes only<br>
> - rte_flow_parser_parse_pattern_str(): Parse patterns only<br>
> - rte_flow_parser_parse_actions_str(): Parse actions only<br>
> <br>
> Testpmd is updated to use the library, ensuring a single<br>
> maintained parser implementation.<br>
> <br>
> Testing and Demo<br>
> -------<br>
> - Functional tests in dpdk-test<br>
> - Example application: examples/flow_parsing<br>
<br>
I am working on being able to use null PMD to exercise rte_flow.<br>
Will add another automated test to exercise flow parser in automated test.<br></blockquote><div><br></div><div>Great, thank you (also for the little fixes).</div><div>I tried to implement it in Suricata directly, and it suits me, so hopefully, it will work for you!</div></div></div>