* [PATCH net-next] netlink: specs: rt-route: move fixed-header to operations list
@ 2026-11-12 6:46 Hangbin Liu
2026-11-12 7:30 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Hangbin Liu @ 2026-11-12 6:46 UTC (permalink / raw)
To: David Ahern, Ido Schimmel, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Simon Horman, Donald Hunter
Cc: Hangbin Liu, Wessel Jacobi, Randy Dunlap, linux-doc, netdev,
linux-kernel, Hangbin Liu
From: Hangbin Liu <liuhangbin@kylinos.cn>
Wessel reported that fixed-header is not shown in the generated HTML
page like rt-link.yaml. The doc generator only renders fields on each
entry in the operations list, not operations-level keys. Move
fixed-header onto each operation so it appears in the HTML.
Reported-by: Wessel Jacobi <wessel@jacobi.pw>
Closes: https://patch.msgid.link/8610ee11-e1dc-481a-9654-11188a06786a@jacobi.pw
Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
---
I'm not very sure whether we should also set `fixed-header` for
`newroute-ntf` and `delroute-ntf`, since these notifications are identical
to `getroute`. But because `fixed-header` is defined at the operations
level, I've added it to all list fields to match the existing behavior.
I rebuilt the HTML documentation, and now `fixed-header` shows up correctly.
---
| 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--git a/Documentation/netlink/specs/rt-route.yaml b/Documentation/netlink/specs/rt-route.yaml
index 48d1659f20f3..b5786b465eef 100644
--- a/Documentation/netlink/specs/rt-route.yaml
+++ b/Documentation/netlink/specs/rt-route.yaml
@@ -708,13 +708,13 @@ attribute-sets:
operations:
enum-model: directional
- fixed-header: rtmsg
name-prefix: rtm-
list:
-
name: getroute
doc: Dump route information.
attribute-set: route-attrs
+ fixed-header: rtmsg
do:
request:
value: 26
@@ -772,6 +772,7 @@ operations:
name: newroute
doc: Create a new route
attribute-set: route-attrs
+ fixed-header: rtmsg
do:
request:
value: 24
@@ -808,6 +809,7 @@ operations:
name: delroute
doc: Delete an existing route
attribute-set: route-attrs
+ fixed-header: rtmsg
do:
request:
value: 25
@@ -815,11 +817,13 @@ operations:
-
name: newroute-ntf
doc: Notification about a created route.
+ fixed-header: rtmsg
value: 24
notify: getroute
-
name: delroute-ntf
doc: Notification about a deleted route.
+ fixed-header: rtmsg
value: 25
notify: getroute
---
base-commit: c88fd6989aea9237a60a4859139a265bfb7ddc0b
change-id: 20261112-ynl_fixed_header-2d7acfcb54f8
Best regards,
--
Hangbin Liu <liuhangbin@kylinos.cn>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH net-next] netlink: specs: rt-route: move fixed-header to operations list
2026-11-12 6:46 [PATCH net-next] netlink: specs: rt-route: move fixed-header to operations list Hangbin Liu
@ 2026-11-12 7:30 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2026-11-12 7:30 UTC (permalink / raw)
To: Hangbin Liu, David Ahern, Ido Schimmel, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman,
Donald Hunter
Cc: Wessel Jacobi, linux-doc, netdev, linux-kernel, Hangbin Liu
On 11/11/26 10:46 PM, Hangbin Liu wrote:
> From: Hangbin Liu <liuhangbin@kylinos.cn>
>
> Wessel reported that fixed-header is not shown in the generated HTML
> page like rt-link.yaml. The doc generator only renders fields on each
> entry in the operations list, not operations-level keys. Move
> fixed-header onto each operation so it appears in the HTML.
>
> Reported-by: Wessel Jacobi <wessel@jacobi.pw>
> Closes: https://patch.msgid.link/8610ee11-e1dc-481a-9654-11188a06786a@jacobi.pw
> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> I'm not very sure whether we should also set `fixed-header` for
> `newroute-ntf` and `delroute-ntf`, since these notifications are identical
> to `getroute`. But because `fixed-header` is defined at the operations
> level, I've added it to all list fields to match the existing behavior.
>
> I rebuilt the HTML documentation, and now `fixed-header` shows up correctly.
> ---
> Documentation/netlink/specs/rt-route.yaml | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/netlink/specs/rt-route.yaml b/Documentation/netlink/specs/rt-route.yaml
> index 48d1659f20f3..b5786b465eef 100644
> --- a/Documentation/netlink/specs/rt-route.yaml
> +++ b/Documentation/netlink/specs/rt-route.yaml
> @@ -708,13 +708,13 @@ attribute-sets:
>
> operations:
> enum-model: directional
> - fixed-header: rtmsg
> name-prefix: rtm-
> list:
> -
> name: getroute
> doc: Dump route information.
> attribute-set: route-attrs
> + fixed-header: rtmsg
> do:
> request:
> value: 26
> @@ -772,6 +772,7 @@ operations:
> name: newroute
> doc: Create a new route
> attribute-set: route-attrs
> + fixed-header: rtmsg
> do:
> request:
> value: 24
> @@ -808,6 +809,7 @@ operations:
> name: delroute
> doc: Delete an existing route
> attribute-set: route-attrs
> + fixed-header: rtmsg
> do:
> request:
> value: 25
> @@ -815,11 +817,13 @@ operations:
> -
> name: newroute-ntf
> doc: Notification about a created route.
> + fixed-header: rtmsg
> value: 24
> notify: getroute
> -
> name: delroute-ntf
> doc: Notification about a deleted route.
> + fixed-header: rtmsg
> value: 25
> notify: getroute
>
>
> ---
> base-commit: c88fd6989aea9237a60a4859139a265bfb7ddc0b
> change-id: 20261112-ynl_fixed_header-2d7acfcb54f8
>
> Best regards,
> --
> Hangbin Liu <liuhangbin@kylinos.cn>
>
>
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-12 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 6:46 [PATCH net-next] netlink: specs: rt-route: move fixed-header to operations list Hangbin Liu
2026-11-12 7:30 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®