netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] tools: ynl: fix subset use and change default value for attrs/ops
@ 2023-03-01 18:36 Jakub Kicinski
  2023-03-01 18:36 ` [PATCH net 1/3] tools: ynl: fully inherit attrs in subsets Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakub Kicinski @ 2023-03-01 18:36 UTC (permalink / raw)
  To: davem; +Cc: netdev, edumazet, pabeni, linux-doc, Jakub Kicinski

Fix a problem in subsetting, which will become apparent when
the devlink family comes after the merge window. Even tho none
of the existing families need this, we don't want someone to
get "inspired" by the current, incorrect code when using specs
in other languages.

Change the default value for the first attr/op. This is a slight
behavior change so needs to go in now. The diffstat of the last
patch should serve as the clearest justification there..

Jakub Kicinski (3):
  tools: ynl: fully inherit attrs in subsets
  tools: ynl: use 1 as the default for first entry in attrs/ops
  netlink: specs: update for codegen enumerating from 1

 Documentation/netlink/specs/ethtool.yaml      | 15 -----------
 Documentation/netlink/specs/fou.yaml          |  2 ++
 Documentation/netlink/specs/netdev.yaml       |  2 --
 Documentation/userspace-api/netlink/specs.rst | 10 +++++--
 tools/net/ynl/lib/nlspec.py                   | 27 ++++++++++++-------
 tools/net/ynl/ynl-gen-c.py                    |  7 +++--
 6 files changed, 32 insertions(+), 31 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-01 18:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 18:36 [PATCH net 0/3] tools: ynl: fix subset use and change default value for attrs/ops Jakub Kicinski
2023-03-01 18:36 ` [PATCH net 1/3] tools: ynl: fully inherit attrs in subsets Jakub Kicinski
2023-03-01 18:36 ` [PATCH net 2/3] tools: ynl: use 1 as the default for first entry in attrs/ops Jakub Kicinski
2023-03-01 18:36 ` [PATCH net 3/3] netlink: specs: update for codegen enumerating from 1 Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).