Fix some kernel-doc warnings in openvswitch.h:

Mark enum placeholders that are not used as "private" so that kernel-doc
comments are not needed for them.

Correct names for 2 enum values:
Warning: include/uapi/linux/openvswitch.h:300 Excess enum value
 '@OVS_VPORT_UPCALL_SUCCESS' description in 'ovs_vport_upcall_attr'
Warning: include/uapi/linux/openvswitch.h:300 Excess enum value
 '@OVS_VPORT_UPCALL_FAIL' description in 'ovs_vport_upcall_attr'

Warning: include/uapi/linux/openvswitch.h:638 This comment starts with
 '/**', but isn't a kernel-doc comment.
 * Omit attributes for notifications.

Signed-off-by: Randy Dunlap <[email protected]>
---
Cc: Aaron Conole <[email protected]>
Cc: Eelco Chaudron <[email protected]>
Cc: Ilya Maximets <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: [email protected]

 include/uapi/linux/openvswitch.h |   43 ++++++++++++++++++++++++++---
 1 file changed, 40 insertions(+), 3 deletions(-)

--- linux-next-20260226.orig/include/uapi/linux/openvswitch.h
+++ linux-next-20260226/include/uapi/linux/openvswitch.h
@@ -83,18 +83,23 @@ enum ovs_datapath_cmd {
  * payload for %OVS_DP_* commands.
  */
 enum ovs_datapath_attr {
+       /* private: */
        OVS_DP_ATTR_UNSPEC,
+       /* public: */
        OVS_DP_ATTR_NAME,               /* name of dp_ifindex netdev */
        OVS_DP_ATTR_UPCALL_PID,         /* Netlink PID to receive upcalls */
        OVS_DP_ATTR_STATS,              /* struct ovs_dp_stats */
        OVS_DP_ATTR_MEGAFLOW_STATS,     /* struct ovs_dp_megaflow_stats */
        OVS_DP_ATTR_USER_FEATURES,      /* OVS_DP_F_*  */
+       /* private: */
        OVS_DP_ATTR_PAD,
+       /* public: */
        OVS_DP_ATTR_MASKS_CACHE_SIZE,
        OVS_DP_ATTR_PER_CPU_PIDS,   /* Netlink PIDS to receive upcalls in
                                     * per-cpu dispatch mode
                                     */
        OVS_DP_ATTR_IFINDEX,
+       /* private: */
        __OVS_DP_ATTR_MAX
 };
 
@@ -181,6 +186,7 @@ enum ovs_packet_cmd {
  * %OVS_USERSPACE_ATTR_EGRESS_TUN_PORT attribute, which is sent only if the
  * output port is actually a tunnel port. Contains the output tunnel key
  * extracted from the packet as nested %OVS_TUNNEL_KEY_ATTR_* attributes.
+ * @OVS_PACKET_ATTR_PROBE: Packet operation is a feature probe.
  * @OVS_PACKET_ATTR_MRU: Present for an %OVS_PACKET_CMD_ACTION and
  * @OVS_PACKET_ATTR_LEN: Packet size before truncation.
  * %OVS_PACKET_ATTR_USERSPACE action specify the Maximum received fragment
@@ -196,21 +202,26 @@ enum ovs_packet_cmd {
  * payload for %OVS_PACKET_* commands.
  */
 enum ovs_packet_attr {
+       /* private: */
        OVS_PACKET_ATTR_UNSPEC,
+       /* public: */
        OVS_PACKET_ATTR_PACKET,      /* Packet data. */
        OVS_PACKET_ATTR_KEY,         /* Nested OVS_KEY_ATTR_* attributes. */
        OVS_PACKET_ATTR_ACTIONS,     /* Nested OVS_ACTION_ATTR_* attributes. */
        OVS_PACKET_ATTR_USERDATA,    /* OVS_ACTION_ATTR_USERSPACE arg. */
        OVS_PACKET_ATTR_EGRESS_TUN_KEY,  /* Nested OVS_TUNNEL_KEY_ATTR_*
                                            attributes. */
+       /* private: */
        OVS_PACKET_ATTR_UNUSED1,
        OVS_PACKET_ATTR_UNUSED2,
+       /* public: */
        OVS_PACKET_ATTR_PROBE,      /* Packet operation is a feature probe,
                                       error logging should be suppressed. */
        OVS_PACKET_ATTR_MRU,        /* Maximum received IP fragment size. */
        OVS_PACKET_ATTR_LEN,        /* Packet size before truncation. */
        OVS_PACKET_ATTR_HASH,       /* Packet hash. */
        OVS_PACKET_ATTR_UPCALL_PID, /* u32 Netlink PID. */
+       /* private: */
        __OVS_PACKET_ATTR_MAX
 };
 
@@ -272,7 +283,9 @@ enum ovs_vport_type {
  * ovs_header plus %OVS_VPORT_ATTR_PORT_NO determine the vport.
  */
 enum ovs_vport_attr {
+       /* private: */
        OVS_VPORT_ATTR_UNSPEC,
+       /* public: */
        OVS_VPORT_ATTR_PORT_NO, /* u32 port number within datapath */
        OVS_VPORT_ATTR_TYPE,    /* u32 OVS_VPORT_TYPE_* constant. */
        OVS_VPORT_ATTR_NAME,    /* string name, up to IFNAMSIZ bytes long */
@@ -280,10 +293,13 @@ enum ovs_vport_attr {
        OVS_VPORT_ATTR_UPCALL_PID, /* array of u32 Netlink socket PIDs for */
                                /* receiving upcalls */
        OVS_VPORT_ATTR_STATS,   /* struct ovs_vport_stats */
+       /* private: */
        OVS_VPORT_ATTR_PAD,
+       /* public: */
        OVS_VPORT_ATTR_IFINDEX,
        OVS_VPORT_ATTR_NETNSID,
        OVS_VPORT_ATTR_UPCALL_STATS,
+       /* private: */
        __OVS_VPORT_ATTR_MAX
 };
 
@@ -291,12 +307,13 @@ enum ovs_vport_attr {
 
 /**
  * enum ovs_vport_upcall_attr - attributes for %OVS_VPORT_UPCALL* commands
- * @OVS_VPORT_UPCALL_SUCCESS: 64-bit upcall success packets.
- * @OVS_VPORT_UPCALL_FAIL: 64-bit upcall fail packets.
+ * @OVS_VPORT_UPCALL_ATTR_SUCCESS: 64-bit upcall success packets.
+ * @OVS_VPORT_UPCALL_ATTR_FAIL: 64-bit upcall fail packets.
  */
 enum ovs_vport_upcall_attr {
        OVS_VPORT_UPCALL_ATTR_SUCCESS,
        OVS_VPORT_UPCALL_ATTR_FAIL,
+       /* private: */
        __OVS_VPORT_UPCALL_ATTR_MAX
 };
 
@@ -431,6 +448,7 @@ enum ovs_frag_type {
        OVS_FRAG_TYPE_NONE,
        OVS_FRAG_TYPE_FIRST,
        OVS_FRAG_TYPE_LATER,
+       /* private: */
        __OVS_FRAG_TYPE_MAX
 };
 
@@ -617,7 +635,9 @@ struct ovs_nsh_key_md1 {
  * payload for %OVS_FLOW_* commands.
  */
 enum ovs_flow_attr {
+       /* private: */
        OVS_FLOW_ATTR_UNSPEC,
+       /* public: */
        OVS_FLOW_ATTR_KEY,       /* Sequence of OVS_KEY_ATTR_* attributes. */
        OVS_FLOW_ATTR_ACTIONS,   /* Nested OVS_ACTION_ATTR_* attributes. */
        OVS_FLOW_ATTR_STATS,     /* struct ovs_flow_stats. */
@@ -629,13 +649,14 @@ enum ovs_flow_attr {
                                  * logging should be suppressed. */
        OVS_FLOW_ATTR_UFID,      /* Variable length unique flow identifier. */
        OVS_FLOW_ATTR_UFID_FLAGS,/* u32 of OVS_UFID_F_*. */
+       /* private: */
        OVS_FLOW_ATTR_PAD,
        __OVS_FLOW_ATTR_MAX
 };
 
 #define OVS_FLOW_ATTR_MAX (__OVS_FLOW_ATTR_MAX - 1)
 
-/**
+/*
  * Omit attributes for notifications.
  *
  * If a datapath request contains an %OVS_UFID_F_OMIT_* flag, then the datapath
@@ -659,9 +680,12 @@ enum ovs_flow_attr {
  * parent @OVS_ACTION_ATTR_SAMPLE.
  */
 enum ovs_sample_attr {
+       /* private: */
        OVS_SAMPLE_ATTR_UNSPEC,
+       /* public: */
        OVS_SAMPLE_ATTR_PROBABILITY, /* u32 number */
        OVS_SAMPLE_ATTR_ACTIONS,     /* Nested OVS_ACTION_ATTR_* attributes. */
+       /* private: */
        __OVS_SAMPLE_ATTR_MAX,
 
 #ifdef __KERNEL__
@@ -693,12 +717,15 @@ struct sample_arg {
  * @OVS_USERSPACE_ATTR_ACTIONS: If present, send actions with upcall.
  */
 enum ovs_userspace_attr {
+       /* private: */
        OVS_USERSPACE_ATTR_UNSPEC,
+       /* public: */
        OVS_USERSPACE_ATTR_PID,       /* u32 Netlink PID to receive upcalls. */
        OVS_USERSPACE_ATTR_USERDATA,  /* Optional user-specified cookie. */
        OVS_USERSPACE_ATTR_EGRESS_TUN_PORT,  /* Optional, u32 output port
                                              * to get tunnel info. */
        OVS_USERSPACE_ATTR_ACTIONS,   /* Optional flag to get actions. */
+       /* private: */
        __OVS_USERSPACE_ATTR_MAX
 };
 
@@ -819,7 +846,9 @@ struct ovs_action_hash {
  * @OVS_CT_ATTR_TIMEOUT: Variable length string defining conntrack timeout.
  */
 enum ovs_ct_attr {
+       /* private: */
        OVS_CT_ATTR_UNSPEC,
+       /* public: */
        OVS_CT_ATTR_COMMIT,     /* No argument, commits connection. */
        OVS_CT_ATTR_ZONE,       /* u16 zone id. */
        OVS_CT_ATTR_MARK,       /* mark to associate with this connection. */
@@ -831,6 +860,7 @@ enum ovs_ct_attr {
        OVS_CT_ATTR_EVENTMASK,  /* u32 mask of IPCT_* events. */
        OVS_CT_ATTR_TIMEOUT,    /* Associate timeout with this connection for
                                 * fine-grain timeout tuning. */
+       /* private: */
        __OVS_CT_ATTR_MAX
 };
 
@@ -859,7 +889,9 @@ enum ovs_ct_attr {
  * @OVS_NAT_ATTR_PROTO_RANDOM: Flag for fully randomized L4 port mapping
  */
 enum ovs_nat_attr {
+       /* private: */
        OVS_NAT_ATTR_UNSPEC,
+       /* public: */
        OVS_NAT_ATTR_SRC,
        OVS_NAT_ATTR_DST,
        OVS_NAT_ATTR_IP_MIN,
@@ -869,6 +901,7 @@ enum ovs_nat_attr {
        OVS_NAT_ATTR_PERSISTENT,
        OVS_NAT_ATTR_PROTO_HASH,
        OVS_NAT_ATTR_PROTO_RANDOM,
+       /* private: */
        __OVS_NAT_ATTR_MAX,
 };
 
@@ -1010,7 +1043,9 @@ enum ovs_psample_attr {
  */
 
 enum ovs_action_attr {
+       /* private: */
        OVS_ACTION_ATTR_UNSPEC,
+       /* public: */
        OVS_ACTION_ATTR_OUTPUT,       /* u32 port number. */
        OVS_ACTION_ATTR_USERSPACE,    /* Nested OVS_USERSPACE_ATTR_*. */
        OVS_ACTION_ATTR_SET,          /* One nested OVS_KEY_ATTR_*. */
@@ -1040,9 +1075,11 @@ enum ovs_action_attr {
        OVS_ACTION_ATTR_DROP,         /* u32 error code. */
        OVS_ACTION_ATTR_PSAMPLE,      /* Nested OVS_PSAMPLE_ATTR_*. */
 
+       /* private: */
        __OVS_ACTION_ATTR_MAX,        /* Nothing past this will be accepted
                                       * from userspace. */
 
+       /* public: */
 #ifdef __KERNEL__
        OVS_ACTION_ATTR_SET_TO_MASKED, /* Kernel module internal masked
                                        * set action converted from
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to