mbox series

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

Message ID 20230523093748.61518-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 23, 2023, 9:37 a.m. UTC
From: Donald Hunter <donald.hunter@redhat.com>

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                    | 101 +++++++++-----------
 3 files changed, 49 insertions(+), 58 deletions(-)

Comments

Jakub Kicinski May 24, 2023, 4:09 a.m. UTC | #1
On Tue, 23 May 2023 10:37:46 +0100 Donald Hunter wrote:
> From: Donald Hunter <donald.hunter@redhat.com>
> 
> 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.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>

Thanks!
patchwork-bot+netdevbpf@kernel.org May 24, 2023, 7:50 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Tue, 23 May 2023 10:37:46 +0100 you wrote:
> From: Donald Hunter <donald.hunter@redhat.com>
> 
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/2] tools: ynl: Use dict of predefined Structs to decode scalar types
    https://git.kernel.org/netdev/net-next/c/7c2435ef76e5
  - [net-next,v2,2/2] tools: ynl: Handle byte-order in struct members
    https://git.kernel.org/netdev/net-next/c/bddd2e561b0a

You are awesome, thank you!