[PATCH v1 1/4] dts: add layer 4 port field to verbose parser

Luca Vizzarro Luca.Vizzarro at arm.com
Wed May 14 17:37:08 CEST 2025


Hi Dean,

looks good to me. Just a minor optional nit.

Reviewed-by: Luca Vizzarro <luca.vizzarro at arm.com>

On 06/03/2025 22:47, Dean Marx wrote:
> +    #:
> +    l4_dport: int | None = field(
> +        default=None,
> +        metadata=TextParser.find_int(r"(?:Destination TCP port=|Destination UDP port=)(\d+)"),
> +    )

the regex can be simplified:

   r"Destination (?:TCP|UDP) port=(\d+)"


More information about the dev mailing list