Thread (13 messages) 13 messages, 2 authors, 2025-10-24
STALE237d

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

From: Asbjørn Sloth Tønnesen <hidden>
Date: 2025-10-22 18:27:22
Also in: linux-doc, lkml

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/7fff6b2f-f17e-4179-8507-397b76ea24bb@intel.com/ (local)

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

-- 
2.51.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help