[PATCH net 0/3] tools: ynl: fix subset use and change default value for attrs/ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux