tools/net/ynl: Rename _fixed_header_size() to _struct_size()
authorDonald Hunter <donald.hunter@gmail.com>
Mon, 29 Jan 2024 22:34:53 +0000 (22:34 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 05:19:19 +0000 (21:19 -0800)
commit886365cf40b2b53864f1ef0655fe7999c2477418
tree06f21b1b01c548fc7a1e1f394604c44a6ceb573e
parente45fee0f49fcbafe9f0f883ef22afb890504a5e6
tools/net/ynl: Rename _fixed_header_size() to _struct_size()

Refactor the _fixed_header_size() method to be _struct_size() so that
naming is consistent with _encode_struct() and _decode_struct().

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240129223458.52046-9-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py