* [PATCH net-next] doc/netlink: Update schema to include cmd-cnt-name and cmd-max-name
@ 2023-10-27 8:44 Davide Caratti
2023-10-30 11:45 ` Jiri Pirko
0 siblings, 1 reply; 2+ messages in thread
From: Davide Caratti @ 2023-10-27 8:44 UTC (permalink / raw)
To: netdev; +Cc: matttbe, kuba
allow specifying cmd-cnt-name and cmd-max-name in netlink specs, in
accordance with Documentation/userspace-api/netlink/c-code-gen.rst.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
Documentation/netlink/genetlink-c.yaml | 6 ++++++
Documentation/netlink/genetlink-legacy.yaml | 6 ++++++
Documentation/netlink/netlink-raw.yaml | 6 ++++++
3 files changed, 18 insertions(+)
diff --git a/Documentation/netlink/genetlink-c.yaml b/Documentation/netlink/genetlink-c.yaml
index 812113280148..80067cd1212d 100644
--- a/Documentation/netlink/genetlink-c.yaml
+++ b/Documentation/netlink/genetlink-c.yaml
@@ -46,6 +46,12 @@ properties:
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
+ cmd-max-name:
+ description: Name of the define for the last operation in the list.
+ type: string
+ cmd-cnt-name:
+ description: The explicit name for constant holding the count of operations (last operation + 1).
+ type: string
# End genetlink-c
definitions:
diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml
index aa32649e20e9..a6b371bc6c27 100644
--- a/Documentation/netlink/genetlink-legacy.yaml
+++ b/Documentation/netlink/genetlink-legacy.yaml
@@ -46,6 +46,12 @@ properties:
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
+ cmd-max-name:
+ description: Name of the define for the last operation in the list.
+ type: string
+ cmd-cnt-name:
+ description: The explicit name for constant holding the count of operations (last operation + 1).
+ type: string
# End genetlink-c
# Start genetlink-legacy
kernel-policy:
diff --git a/Documentation/netlink/netlink-raw.yaml b/Documentation/netlink/netlink-raw.yaml
index 96913857ac71..fd79dbe941cf 100644
--- a/Documentation/netlink/netlink-raw.yaml
+++ b/Documentation/netlink/netlink-raw.yaml
@@ -47,6 +47,12 @@ properties:
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
+ cmd-max-name:
+ description: Name of the define for the last operation in the list.
+ type: string
+ cmd-cnt-name:
+ description: The explicit name for constant holding the count of operations (last operation + 1).
+ type: string
# End genetlink-c
# Start genetlink-legacy
kernel-policy:
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] doc/netlink: Update schema to include cmd-cnt-name and cmd-max-name
2023-10-27 8:44 [PATCH net-next] doc/netlink: Update schema to include cmd-cnt-name and cmd-max-name Davide Caratti
@ 2023-10-30 11:45 ` Jiri Pirko
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Pirko @ 2023-10-30 11:45 UTC (permalink / raw)
To: Davide Caratti; +Cc: netdev, matttbe, kuba
Fri, Oct 27, 2023 at 10:44:48AM CEST, dcaratti@redhat.com wrote:
>allow specifying cmd-cnt-name and cmd-max-name in netlink specs, in
>accordance with Documentation/userspace-api/netlink/c-code-gen.rst.
>
>Suggested-by: Jakub Kicinski <kuba@kernel.org>
>Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-30 11:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27 8:44 [PATCH net-next] doc/netlink: Update schema to include cmd-cnt-name and cmd-max-name Davide Caratti
2023-10-30 11:45 ` Jiri Pirko
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).