Re: [PATCH v6 2/3] rust: netlink: add raw netlink abstraction

From: Carlos Llamas

Date: Sat Jun 06 2026 - 11:41:21 EST


On Fri, May 29, 2026 at 01:28:39PM +0000, Alice Ryhl wrote:
> This implements a safe and relatively simple API over the netlink API,
> that allows you to add different attributes to a netlink message and
> broadcast it. As the first user of this API only makes use of broadcast,
> only broadcast messages are supported here.
>
> This API is intended to be safe and to be easy to use in *generated*
> code. This is because netlink is generally used with yaml files that
> describe the underlying API, and the python generator outputs C code
> (or, soon, Rust code) that lets you use the API more easily. So for
> example, if there is a string field, the code generator will output a
> method that internall calls `put_string()` with the right attr type.
>
> Reviewed-by: Matthew Maurer <mmaurer@xxxxxxxxxx>
> Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---

Reviewed-by: Carlos Llamas <cmllamas@xxxxxxxxxx>