tools: ynl: use 1 as the default for first entry in attrs/ops
authorJakub Kicinski <kuba@kernel.org>
Wed, 1 Mar 2023 18:36:41 +0000 (10:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2023 08:22:39 +0000 (08:22 +0000)
commitad4fafcde5bc1badb8fc2c7f260a5d6b83a038e4
treeec528cbb83651d354e3e139ee8429dc40e1ad004
parent7cf93538e087a792cb476008a757ab7c1c23b68c
tools: ynl: use 1 as the default for first entry in attrs/ops

Pretty much all families use value: 1 or reserve as unspec
the first entry in attribute set and the first operation.
Make this the default. Update documentation (the doc for
values of operations just refers back to doc for attrs
so updating only attrs).

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/userspace-api/netlink/specs.rst
tools/net/ynl/lib/nlspec.py
tools/net/ynl/ynl-gen-c.py