[RFC v2 0/4] flow_compile: textual flow rule compiler

Stephen Hemminger stephen at networkplumber.org
Thu May 7 18:57:52 CEST 2026


On Thu, 7 May 2026 17:26:44 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:

> Checking with Claude, it seems it's there already:
> 
> Multi-string (TOKEN_STRING_MULTI) — reads until cmdline_isendofcommand(), which stops only at \n, \r, \0, or #. This captures the entire remainder of the line including spaces.
> 
> >  - AI proposed new syntax:
> >     flow compile <port> "quote rule"  
> 
> I tend to prefer explicit pre-field names in the syntax as a general rule
> as it makes it clearer what the numeric values in the command are. So I
> suggest e.g.:
> 
> "flow_compile port <N> rule: ...."
> 
> In the absense of quoting, I think having a ":" at the end of rule helps to
> separate the testpmd syntax from the rule syntax.

Would be good to have flow_compile as temporary solution and replace the old parser later.
I can't see huge requirement for quoting with current syntax, good to have but no fields seem to require it


More information about the dev mailing list