[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <85d3f828-1a1a-4614-bd02-9ff07a8fe621@gmail.com>
Date: Sat, 3 Feb 2024 13:00:27 +0100
From: Alessandro Marcolini <alessandromarcolini99@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
donald.hunter@...il.com, sdf@...gle.com, chuck.lever@...cle.com,
lorenzo@...nel.org, jacob.e.keller@...el.com, jiri@...nulli.us,
netdev@...r.kernel.org
Subject: Re: [PATCH v3 net-next 3/3] tools: ynl: add support for encoding
multi-attr
On 2/3/24 03:17, Jakub Kicinski wrote:
> On Fri, 2 Feb 2024 15:00:05 +0100 Alessandro Marcolini wrote:
>> nl_type = attr.value
>> + if attr.is_multi and isinstance(value, list):
>> + attr_payload = b''
>> + for subvalue in value:
>> + attr_payload += self._add_attr(space, name, subvalue, search_attrs)
>> + return attr_payload
>> if attr["type"] == 'nest':
> nit: would you mind adding an empty line before and after the new
> block? It's logically separate from the other code, sort of an
> alternative to the "actual" handling, as well as finding the attr set.
This makes sense.
> Also agreed on adding an example to the cover letter (either one or
> both).
>
> With that feel free to add:
>
> Reviewed-by: Jakub Kicinski <kuba@...nel.org>
>
> on all 3 patches in v4.
Perfect, I'll post the v4 soon with both the examples. Thanks!
Powered by blists - more mailing lists