From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
linux-doc@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net 3/3] netlink: specs: update for codegen enumerating from 1
Date: Wed, 1 Mar 2023 10:36:42 -0800 [thread overview]
Message-ID: <20230301183642.2168393-4-kuba@kernel.org> (raw)
In-Reply-To: <20230301183642.2168393-1-kuba@kernel.org>
Now that the codegen rules had been changed we can update
the specs to reflect the new default.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
Documentation/netlink/specs/ethtool.yaml | 15 ---------------
Documentation/netlink/specs/fou.yaml | 2 ++
Documentation/netlink/specs/netdev.yaml | 2 --
3 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml
index 08b776908d15..35c462bce56f 100644
--- a/Documentation/netlink/specs/ethtool.yaml
+++ b/Documentation/netlink/specs/ethtool.yaml
@@ -11,7 +11,6 @@ doc: Partial family for Ethtool Netlink.
-
name: dev-index
type: u32
- value: 1
-
name: dev-name
type: string
@@ -25,7 +24,6 @@ doc: Partial family for Ethtool Netlink.
-
name: index
type: u32
- value: 1
-
name: name
type: string
@@ -39,14 +37,12 @@ doc: Partial family for Ethtool Netlink.
name: bit
type: nest
nested-attributes: bitset-bit
- value: 1
-
name: bitset
attributes:
-
name: nomask
type: flag
- value: 1
-
name: size
type: u32
@@ -61,7 +57,6 @@ doc: Partial family for Ethtool Netlink.
-
name: index
type: u32
- value: 1
-
name: value
type: string
@@ -71,7 +66,6 @@ doc: Partial family for Ethtool Netlink.
-
name: string
type: nest
- value: 1
multi-attr: true
nested-attributes: string
-
@@ -80,7 +74,6 @@ doc: Partial family for Ethtool Netlink.
-
name: id
type: u32
- value: 1
-
name: count
type: u32
@@ -96,14 +89,12 @@ doc: Partial family for Ethtool Netlink.
name: stringset
type: nest
multi-attr: true
- value: 1
nested-attributes: stringset
-
name: strset
attributes:
-
name: header
- value: 1
type: nest
nested-attributes: header
-
@@ -119,7 +110,6 @@ doc: Partial family for Ethtool Netlink.
attributes:
-
name: header
- value: 1
type: nest
nested-attributes: header
-
@@ -132,7 +122,6 @@ doc: Partial family for Ethtool Netlink.
attributes:
-
name: header
- value: 1
type: nest
nested-attributes: header
-
@@ -180,7 +169,6 @@ doc: Partial family for Ethtool Netlink.
attributes:
-
name: pad
- value: 1
type: pad
-
name: reassembly-errors
@@ -205,7 +193,6 @@ doc: Partial family for Ethtool Netlink.
attributes:
-
name: header
- value: 1
type: nest
nested-attributes: header
-
@@ -251,13 +238,11 @@ doc: Partial family for Ethtool Netlink.
do: &strset-get-op
request:
- value: 1
attributes:
- header
- stringsets
- counts-only
reply:
- value: 1
attributes:
- header
- stringsets
diff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml
index 266c386eedf3..cca4cf98f03a 100644
--- a/Documentation/netlink/specs/fou.yaml
+++ b/Documentation/netlink/specs/fou.yaml
@@ -26,6 +26,7 @@ kernel-policy: global
-
name: unspec
type: unused
+ value: 0
-
name: port
type: u16
@@ -71,6 +72,7 @@ kernel-policy: global
-
name: unspec
doc: unused
+ value: 0
-
name: add
diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml
index cffef09729f1..ba9ee13cf729 100644
--- a/Documentation/netlink/specs/netdev.yaml
+++ b/Documentation/netlink/specs/netdev.yaml
@@ -48,7 +48,6 @@ name: netdev
name: ifindex
doc: netdev ifindex
type: u32
- value: 1
checks:
min: 1
-
@@ -66,7 +65,6 @@ name: netdev
-
name: dev-get
doc: Get / dump information about a netdev.
- value: 1
attribute-set: dev
do:
request:
--
2.39.2
prev parent reply other threads:[~2023-03-01 18:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Jakub Kicinski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230301183642.2168393-4-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linux-doc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.