From: "Asbjørn Sloth Tønnesen" <ast@fiberby.net>
To: netdev@vger.kernel.org
Cc: "Asbjørn Sloth Tønnesen" <ast@fiberby.net>,
"Jakub Kicinski" <kuba@kernel.org>,
"Donald Hunter" <donald.hunter@gmail.com>,
"Danielle Ratson" <danieller@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Greg Thelen" <gthelen@google.com>,
"Ilya Maximets" <i.maximets@ovn.org>,
"Matthieu Baerts (Netdev Foundation)" <matttbe@kernel.org>,
"Maxime Chevallier (Netdev Foundation)"
<maxime.chevallier@bootlin.com>,
"Paolo Abeni" <pabeni@redhat.com>,
"Remy D. Farley" <one-d-wide@protonmail.com>,
"Simon Horman" <horms@kernel.org>,
"Stanislav Fomichev" <sdf.kernel@gmail.com>,
"Heng Guo" <heng.guo@windriver.com>,
linux-kernel@vger.kernel.org
Subject: [RFC PATCH net-next 4/8] netlink: specs: rt-link: add C naming info
Date: Thu, 10 Sep 2026 22:17:24 +0000 [thread overview]
Message-ID: <20260910221733.1021864-5-ast@fiberby.net> (raw)
In-Reply-To: <20260910221733.1021864-1-ast@fiberby.net>
Add missing naming info needed for C code gen.
Add headers to Makefile.deps, so that the local copy is used,
except for if.h which is non-trivial due to a compiler.h include.
Rename snmp.h header guard, for Makefile.deps compatibility, this
is opaque once installed by scripts/headers_install.sh.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
---
Documentation/netlink/specs/rt-link.yaml | 25 +++++++++++++++++++++---
include/uapi/linux/snmp.h | 6 +++---
tools/net/ynl/Makefile.deps | 11 +++++++++--
3 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml
index 61ebb9a2bad5..a74108072ce7 100644
--- a/Documentation/netlink/specs/rt-link.yaml
+++ b/Documentation/netlink/specs/rt-link.yaml
@@ -58,6 +58,7 @@ definitions:
name: vlan-protocols
type: enum
enum-name:
+ name-prefix: eth-p-
entries:
-
name: 8021q
@@ -305,6 +306,8 @@ definitions:
-
name: ipv4-devconf
enum-name:
+ name-prefix: ipv4-devconf-
+ header: linux/ip.h
type: enum
entries:
-
@@ -376,6 +379,8 @@ definitions:
-
name: ipv6-devconf
enum-name:
+ name-prefix: devconf-
+ header: linux/ipv6.h
type: enum
entries:
-
@@ -501,6 +506,8 @@ definitions:
-
name: ifla-icmp6-stats
enum-name:
+ name-prefix: icmp6-mib-
+ header: linux/snmp.h
type: enum
entries:
-
@@ -520,6 +527,8 @@ definitions:
-
name: ifla-inet6-stats
enum-name:
+ name-prefix: ipstats-mib-
+ header: linux/snmp.h
type: enum
entries:
-
@@ -640,6 +649,8 @@ definitions:
name: vlan-flags
type: flags
enum-name:
+ name-prefix: vlan-flag-
+ header: linux/if_vlan.h
entries:
- reorder-hdr
- gvrp
@@ -727,6 +738,8 @@ definitions:
name: ifla-vf-link-state-enum
type: enum
enum-name:
+ name-prefix: ifla-vf-link-state-
+ header: linux/if_link.h
entries:
- auto
- enable
@@ -794,6 +807,7 @@ definitions:
name: rtext-filter
type: flags
enum-name:
+ name-prefix: rtext-filter-
entries:
- vf
- brvlan
@@ -806,7 +820,8 @@ definitions:
-
name: netkit-policy
type: enum
- enum-name:
+ enum-name: netkit-action
+ name-prefix: netkit-
entries:
-
name: forward
@@ -818,6 +833,7 @@ definitions:
name: netkit-mode
type: enum
enum-name: netkit-mode
+ name-prefix: netkit-
entries:
- name: l2
- name: l3
@@ -825,7 +841,8 @@ definitions:
-
name: netkit-scrub
type: enum
- enum-name:
+ enum-name: netkit-scrub
+ name-prefix: netkit-scrub-
entries:
- name: none
- name: default
@@ -833,13 +850,14 @@ definitions:
name: netkit-pairing
type: enum
enum-name: netkit-pairing
+ name-prefix: netkit-device-
entries:
- name: pair
- name: single
-
name: ovpn-mode
enum-name: ovpn-mode
- name-prefix: ovpn-mode
+ name-prefix: ovpn-mode-
type: enum
entries:
- p2p
@@ -848,6 +866,7 @@ definitions:
name: br-stp-mode
type: enum
enum-name: br-stp-mode
+ name-prefix: br-stp-mode-
entries:
- auto
- user
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h
index 49f5640092a0..26bdabc502fe 100644
--- a/include/uapi/linux/snmp.h
+++ b/include/uapi/linux/snmp.h
@@ -5,8 +5,8 @@
* Author: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
*/
-#ifndef _LINUX_SNMP_H
-#define _LINUX_SNMP_H
+#ifndef _UAPI_LINUX_SNMP_H
+#define _UAPI_LINUX_SNMP_H
/* ipstats mib definitions */
/*
@@ -372,4 +372,4 @@ enum
__LINUX_MIB_TLSMAX
};
-#endif /* _LINUX_SNMP_H */
+#endif /* _UAPI_LINUX_SNMP_H */
diff --git a/tools/net/ynl/Makefile.deps b/tools/net/ynl/Makefile.deps
index 2771375339d9..8e136a5df899 100644
--- a/tools/net/ynl/Makefile.deps
+++ b/tools/net/ynl/Makefile.deps
@@ -40,8 +40,15 @@ CFLAGS_ovs_vport:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h)
CFLAGS_psp:=$(call get_hdr_inc,_LINUX_PSP_H,psp.h)
CFLAGS_rt-addr:=$(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h) \
$(call get_hdr_inc,__LINUX_IF_ADDR_H,if_addr.h)
-CFLAGS_rt-link:=$(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h) \
- $(call get_hdr_inc,_LINUX_IF_LINK_H,if_link.h)
+CFLAGS_rt-link:=$(call get_hdr_inc,_LINUX_IF_LINK_H,if_link.h) \
+ $(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h) \
+ $(call get_hdr_inc,_LINUX_IP_H,ip.h) \
+ $(call get_hdr_inc,_IPV6_H,ipv6.h) \
+ $(call get_hdr_inc,_LINUX_IF_BRIDGE_H,if_bridge.h) \
+ $(call get_hdr_inc,_IF_TUNNEL_H_,if_tunnel.h) \
+ $(call get_hdr_inc,_LINUX_IF_VLAN_H_,if_vlan.h) \
+ $(call get_hdr_inc,_LINUX_SNMP_H,snmp.h) \
+ $(call get_hdr_inc,_LINUX_DPLL_H,dpll.h)
CFLAGS_rt-neigh:=$(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h) \
$(call get_hdr_inc,__LINUX_NEIGHBOUR_H,neighbour.h)
CFLAGS_rt-route:=$(call get_hdr_inc,__LINUX_RTNETLINK_H,rtnetlink.h)
--
2.55.0
next prev parent reply other threads:[~2026-09-10 22:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 22:17 [RFC PATCH net-next 0/8] tools: ynl: C-based YNL linter Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` [RFC PATCH net-next 1/8] netlink: specs: nftables: add uapi-header Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` [RFC PATCH net-next 2/8] netlink: specs: conntrack: " Asbjørn Sloth Tønnesen
2026-09-11 2:35 ` Jakub Kicinski
2026-09-10 22:17 ` [RFC PATCH net-next 3/8] tools: ynl: add C-based YNL linter Asbjørn Sloth Tønnesen
2026-09-11 2:33 ` Jakub Kicinski
2026-09-11 22:27 ` Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` Asbjørn Sloth Tønnesen [this message]
2026-09-10 22:17 ` [RFC PATCH net-next 5/8] netlink: specs: rt-link: re-align IPv4 devconf Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` [RFC PATCH net-next 6/8] netlink: specs: rt-link: re-align ifla-inet6-stats Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` [RFC PATCH net-next 7/8] netlink: specs: rt-link: fix ifinfo-flags names Asbjørn Sloth Tønnesen
2026-09-10 22:17 ` [RFC PATCH net-next 8/8] netlink: specs: rt-link: fix netkit-policy names Asbjørn Sloth Tønnesen
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=20260910221733.1021864-5-ast@fiberby.net \
--to=ast@fiberby.net \
--cc=danieller@nvidia.com \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=edumazet@google.com \
--cc=gthelen@google.com \
--cc=heng.guo@windriver.com \
--cc=horms@kernel.org \
--cc=i.maximets@ovn.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matttbe@kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=one-d-wide@protonmail.com \
--cc=pabeni@redhat.com \
--cc=sdf.kernel@gmail.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 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®