[PATCH net-next v5 04/11] tools: ynl-gen: refactor local vars for .attr_put() callers

Jakub Kicinski kuba at kernel.org
Tue Sep 16 01:42:12 UTC 2025


On Mon, 15 Sep 2025 14:42:49 +0000 Asbjørn Sloth Tønnesen wrote:
> Refactor the generation of local variables needed when building
> requests, by moving the logic from put_req_nested() into a new
> helper put_local_vars(), and use the helper before .attr_put() is
> called, thus generating the local variables assumed by .attr_put().
> 
> Previously only put_req_nested() generated the variables assumed
> by .attr_put(),  print_req() only generated the count iterator `i`,
> and print_dump() neither generated `i` nor `array`.

Reviewed-by: Jakub Kicinski <kuba at kernel.org>


More information about the WireGuard mailing list