netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next v1 0/2] tools: ynl: Add byte-order support for struct members
@ 2023-05-21 17:07 Donald Hunter
  2023-05-21 17:07 ` [patch net-next v1 1/2] tools: ynl: Use dict of predefined Structs to decode scalar types Donald Hunter
  2023-05-21 17:07 ` [patch net-next v1 2/2] tools: ynl: Handle byte-order in struct members Donald Hunter
  0 siblings, 2 replies; 7+ messages in thread
From: Donald Hunter @ 2023-05-21 17:07 UTC (permalink / raw)
  To: netdev, Jakub Kicinski, David S. Miller, Eric Dumazet,
	Paolo Abeni, Jonathan Corbet, linux-doc
  Cc: donald.hunter, Donald Hunter

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(-)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-23  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-21 17:07 [patch net-next v1 0/2] tools: ynl: Add byte-order support for struct members Donald Hunter
2023-05-21 17:07 ` [patch net-next v1 1/2] tools: ynl: Use dict of predefined Structs to decode scalar types Donald Hunter
2023-05-23  2:37   ` Jakub Kicinski
2023-05-23  8:21     ` Donald Hunter
2023-05-21 17:07 ` [patch net-next v1 2/2] tools: ynl: Handle byte-order in struct members Donald Hunter
2023-05-23  2:38   ` Jakub Kicinski
2023-05-23  8:22     ` Donald Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).