mbox series

[net-next,v1,0/2] tools: ynl: Add byte-order support for struct members

Message ID 20230521170733.13151-1-donald.hunter@gmail.com (mailing list archive)
Headers show
Series tools: ynl: Add byte-order support for struct members | expand

Message

Donald Hunter May 21, 2023, 5:07 p.m. UTC
This patchset adds support to ynl for handling byte-order in struct
members. The first patch is a refactor to use predefined Struct() objects
instead of generating byte-order specific formats on the fly. The second
patch adds byte-order handling for struct members.

Donald Hunter (2):
  tools: ynl: Use dict of predefined Structs to decode scalar types
  tools: ynl: Handle byte-order in struct members

 Documentation/netlink/genetlink-legacy.yaml |   2 +
 tools/net/ynl/lib/nlspec.py                 |   4 +-
 tools/net/ynl/lib/ynl.py                    | 107 +++++++++-----------
 3 files changed, 53 insertions(+), 60 deletions(-)