Thread (14 messages) 14 messages, 2 authors, 2023-08-23

Re: [PATCH net-next v3 00/12] tools/net/ynl: Add support for netlink-raw families

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-08-23 02:03:49
Also in: linux-doc

On Tue, 22 Aug 2023 20:42:52 +0100 Donald Hunter wrote:
The netlink-raw schema is very similar to genetlink-legacy and I thought
about making the changes there and symlinking to it. On balance I
thought that might be problematic for accurate schema validation.

rtnetlink doesn't seem to fit into unified or directional message
enumeration models. It seems like an 'explicit' model would be useful,
to force the schema author to specify the message ids directly.

There is not yet support for notifications because ynl currently doesn't
support defining 'event' properties on a 'do' operation. The message ids
are shared so ops need to be both sync and async. I plan to look at this
in a future patch.

The link and route messages contain different nested attributes
dependent on the type of link or route. Decoding these will need some
kind of attr-space selection that uses the value of another attribute as
the selector key. These nested attributes have been left with type
'binary' for now.
Looks good, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help