tools/net/ynl: Fix extack parsing with fixed header genlmsg
authorDonald Hunter <donald.hunter@gmail.com>
Fri, 25 Aug 2023 12:27:49 +0000 (13:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Aug 2023 00:17:10 +0000 (17:17 -0700)
commitfb0a06d455d64443fefea6843ed6c5ae7ee0b395
tree6d5bcedfbbe114b7bdb129885e2319d92d2f4d91
parent88901b967958eaa70478db1c6ddc8cdea748b2e6
tools/net/ynl: Fix extack parsing with fixed header genlmsg

Move decode_fixed_header into YnlFamily and add a _fixed_header_size
method to allow extack decoding to skip the fixed header.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20230825122756.7603-7-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py