]> git.ipfire.org Git - thirdparty/linux.git/commit
tools: ynl: don't use genlmsghdr in classic netlink
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Apr 2025 01:46:54 +0000 (18:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Apr 2025 03:14:41 +0000 (20:14 -0700)
commit7e8ba0c7de2b3a5b90bc591177a3926b8c0e022d
treeb358a1079b4a6fa889bf4f58b26c6ebd5f9a252b
parente0a7903c323f37a71dcdafafa749dfb3beedff3c
tools: ynl: don't use genlmsghdr in classic netlink

Make sure the codegen calls the right YNL lib helper to start
the request based on family type. Classic netlink request must
not include the genl header.

Conversely don't expect genl headers in the responses.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250410014658.782120-10-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl-priv.h
tools/net/ynl/lib/ynl.c
tools/net/ynl/pyynl/ynl_gen_c.py