Skip to content

ynl: add ignore-index flag for indexed-array

Asbjørn Sloth Tønnesen linux-doc lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7netlink: specs: add ignore-index flag for indexed-arrayDocumentation/netlink/genetlink-c.yaml Documentation/netlink/genetlink-legacy.yaml Documentation/netlink/netlink-raw.yaml +1 more+21 -00 replies
2/7tools: ynl: support ignore-index in indexed-array decodingtools/net/ynl/pyynl/lib/ynl.py+7 -40 replies
3/7tools: ynl: support ignore-index in indexed-array encodingtools/net/ynl/pyynl/lib/ynl.py+5 -20 replies
4/7netlink: specs: nl80211: set ignore-index on indexed-arraysDocumentation/netlink/specs/nl80211.yaml+8 -00 replies
5/7netlink: specs: nlctrl: set ignore-index on indexed-arraysDocumentation/netlink/specs/nlctrl.yaml+2 -00 replies
6/7netlink: specs: rt-link: set ignore-index on indexed-arraysDocumentation/netlink/specs/rt-link.yaml+2 -00 replies
7/7netlink: specs: tc: set ignore-index on indexed-arraysDocumentation/netlink/specs/tc.yaml+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/7] ynl: add ignore-index flag for indexed-array

This patchset adds a way to mark if an indedex array is just an array, and the index is uninteresting, as previously discussed[1].

Which is the case in most of the indexed-arrays in the current specs.

As the name indexed-array kinda implies that the index is interesting, then I am using ignore-index to mark if the index is unused.

This adds some noise to YNL, and as it's only few indexed-arrays which actually use the index, then if we can come up with some good naming, it may be better to reverse it so it's the default behaviour.

[1]
https://lore.kernel.org/r/[email protected]/

Asbjørn Sloth Tønnesen (7):
netlink: specs: add ignore-index flag for indexed-array
tools: ynl: support ignore-index in indexed-array decoding
tools: ynl: support ignore-index in indexed-array encoding
netlink: specs: nl80211: set ignore-index on indexed-arrays
netlink: specs: nlctrl: set ignore-index on indexed-arrays
netlink: specs: rt-link: set ignore-index on indexed-arrays
netlink: specs: tc: set ignore-index on indexed-arrays

 Documentation/netlink/genetlink-c.yaml         |  6 ++++++
 Documentation/netlink/genetlink-legacy.yaml    |  6 ++++++
 Documentation/netlink/netlink-raw.yaml         |  6 ++++++
 Documentation/netlink/specs/nl80211.yaml       |  8 ++++++++
 Documentation/netlink/specs/nlctrl.yaml        |  2 ++
 Documentation/netlink/specs/rt-link.yaml       |  2 ++
 Documentation/netlink/specs/tc.yaml            |  1 +
 .../userspace-api/netlink/genetlink-legacy.rst |  3 +++
 tools/net/ynl/pyynl/lib/ynl.py                 | 18 ++++++++++++------
 9 files changed, 46 insertions(+), 6 deletions(-)
Signature · 1 line
2.51.0