]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl-gen: consider dump ops without a do "type-consistent"
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Apr 2025 01:46:55 +0000 (18:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Apr 2025 03:14:41 +0000 (20:14 -0700)
commite8025e72aad6d74504c4918c81b532e1fb219b91
treea137831231cdb8e74669e190d806d50a9ca9a9df
parent7e8ba0c7de2b3a5b90bc591177a3926b8c0e022d
tools: ynl-gen: consider dump ops without a do "type-consistent"

If the type for the response to do and dump are the same we don't
generate it twice. This is called "type_consistent" in the generator.
Consider operations which only have dump to also be consistent.
This removes unnecessary "_dump" from the names. There's a number
of GET ops in classic Netlink which only have dump handlers.

Make sure we output the "onesided" types, normally if the type
is consistent we only output it when we render the do structures.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250410014658.782120-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_c.py