[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251022182701.250897-1-ast@fiberby.net>
Date: Wed, 22 Oct 2025 18:26:53 +0000
From: Asbjørn Sloth Tønnesen <ast@...erby.net>
To: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Asbjørn Sloth Tønnesen <ast@...erby.net>,
Chia-Yu Chang <chia-yu.chang@...ia-bell-labs.com>,
Chuck Lever <chuck.lever@...cle.com>,
Donald Hunter <donald.hunter@...il.com>,
Jonathan Corbet <corbet@....net>,
"Matthieu Baerts (NGI0)" <matttbe@...nel.org>,
Simon Horman <horms@...nel.org>,
linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: [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/7fff6b2f-f17e-4179-8507-397b76ea24bb@intel.com/
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
Powered by blists - more mailing lists