mbox series

[net-next,0/3] ynl-gen: update check format

Message ID 20231215035009.498049-1-liuhangbin@gmail.com (mailing list archive)
Headers show
Series ynl-gen: update check format | expand

Message

Hangbin Liu Dec. 15, 2023, 3:50 a.m. UTC
Hi Jakub,

Looks support defines in len check is not as complex as I thought :)

The first patch update the len checks. Add len part, and correct the usage
of min, max, exact len.
The second patch add the support of using defines instead of hard code only.
The third patch fix the IPv6 addr len definition.

BTW, I'm not sure whether the 1st and 3rd patches should be fixes or not.
Please tell me if I should update.

Hangbin Liu (3):
  tools: ynl-gen: use correct len for string and binary
  tools: ynl-gen: support using defines in checks
  netlink: specs: use exact-len for IPv6 addr

 Documentation/netlink/genetlink-c.yaml      |  9 ++++--
 Documentation/netlink/genetlink-legacy.yaml |  9 ++++--
 Documentation/netlink/genetlink.yaml        |  9 ++++--
 Documentation/netlink/netlink-raw.yaml      |  9 ++++--
 Documentation/netlink/specs/fou.yaml        |  4 +--
 Documentation/netlink/specs/mptcp.yaml      |  4 +--
 include/net/netlink.h                       |  1 +
 tools/net/ynl/ynl-gen-c.py                  | 32 ++++++++++++---------
 8 files changed, 48 insertions(+), 29 deletions(-)