From nobody Fri Nov 22 22:27:12 2024 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EEB61E9070; Fri, 15 Nov 2024 19:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731699420; cv=none; b=IFOwDusYJindW9Zo83BIin4CIeM+/hoSvVZJJtW6R8pJfe8JT0Mh6uEP1Kn+/XqxGe1xp6FKkI3pCqUUU5/gINk8DFY7okClB8wcwbc5ZG7eYD00tGYC16rAVJvSF5UsC3qdawAW0cTaUPlehWeymWfIbT0/UTwDkf5mOHi5iiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731699420; c=relaxed/simple; bh=6khiq3yXTa9HM+YXzRRSDhDky+b64/R6gVvEZ8PFbXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b78cWuTYBdymyRlKAnJbFP76XHtpBuxBLRPR47l3qrTfjHKpmWXZNeGJSddE4n3/sM1LF6VovIJPOvfGH4vdgAtiWTP8ihjIYBlBdNsqzSx+NU6YyclUzYhczMtKXRBLg4KuXWwK56rmkVJ81sQBd0EBJo5TXP4cJZoI8MRUHBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fomichev.me; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fomichev.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-20c803787abso18837585ad.0; Fri, 15 Nov 2024 11:36:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731699418; x=1732304218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d8BPg7KRGyJdIlqb8wJdyBcPIhFm57LQPp6Ued82Nok=; b=kdEpMnS7kR78IDGOyudqcX+OaHwOXz2cf0o84uZEqRALAOZ42O68VsFP/8IQLHMbnV BE/nj7MQxxwmrlN5kY7ZLO/VfA7tNmf/f0wYA1n966j+kMAANBmNUeDK7QIcWvfzIm2x hk0cNBZsaho/qCOLkw4upycPsbywUnAKVCQd2ob3rqFKZaeTYX5BhxNCciEDt8HfrLow JZygL/R/qrmx7I+0sAGZuO9nleyFNLZnJ/tF+ANyRoy6W7IYx9j0Sgcx/dMcsN97o0p9 lVqVJlcYa0IuUI0XQt4MnRJMUf0ZzTDAqqU785bJZ+EYw7D2sQT84/q/dBaMWvTBmxD+ 1JUw== X-Forwarded-Encrypted: i=1; AJvYcCVCHIg20k4j44m6oUg6S3gx9f2GsQUrIOCrIQJ+flg1C1KX3dQ0d8301aBqGGPSyzSUE8Li0GVBUeC0r7bk@vger.kernel.org, AJvYcCWMKq9I74vN5mZY+STGHHAEBJCnVNEypF4zcAepyQLAFyebHp0XWqtjEXzlLSMGQfNINkI3mTvUe4E=@vger.kernel.org X-Gm-Message-State: AOJu0Yyy+oyJpNQws9Sqbp1jdFP6JH8DDJ3Cu6GLoKfWofZbGOdZplk+ nyIM6vaxE60zstOQU9ydPOCZ1vomn23gySgu+wONYr0JPOvExEBH90DtXbc= X-Google-Smtp-Source: AGHT+IGbOf8VlOGEd8kW1RivI3s5HpVjnIcSCbKLnAGLRrMXvOrSWevphsDVMDE7iRMiBJ/iM9Uxeg== X-Received: by 2002:a17:903:244b:b0:20c:c18f:c39e with SMTP id d9443c01a7336-211c0fab017mr127039225ad.21.1731699418053; Fri, 15 Nov 2024 11:36:58 -0800 (PST) Received: from localhost ([2601:646:9e00:f56e:123b:cea3:439a:b3e3]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724771c0d5asm1792788b3a.126.2024.11.15.11.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2024 11:36:57 -0800 (PST) From: Stanislav Fomichev To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, donald.hunter@gmail.com, horms@kernel.org, corbet@lwn.net, andrew+netdev@lunn.ch, kory.maincent@bootlin.com, sdf@fomichev.me Subject: [PATCH net-next v2 8/8] ethtool: regenerate uapi header from the spec Date: Fri, 15 Nov 2024 11:36:46 -0800 Message-ID: <20241115193646.1340825-9-sdf@fomichev.me> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241115193646.1340825-1-sdf@fomichev.me> References: <20241115193646.1340825-1-sdf@fomichev.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" No functional changes. Mostly the following formatting: - extra docs - extra enums - XXX_MAX =3D __XXX_CNT - 1 -> XXX_MAX =3D (__XXX_CNT - 1) - newlines Signed-off-by: Stanislav Fomichev --- .../uapi/linux/ethtool_netlink_generated.h | 89 ++++++++++++------- 1 file changed, 56 insertions(+), 33 deletions(-) diff --git a/include/uapi/linux/ethtool_netlink_generated.h b/include/uapi/= linux/ethtool_netlink_generated.h index 35a24d490efe..b37b73609a0f 100644 --- a/include/uapi/linux/ethtool_netlink_generated.h +++ b/include/uapi/linux/ethtool_netlink_generated.h @@ -1,23 +1,43 @@ /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Cl= ause) */ +/* Do not edit directly, auto-generated from: */ +/* Documentation/netlink/specs/ethtool.yaml */ +/* YNL-GEN uapi header */ + #ifndef _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H #define _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H =20 +#define ETHTOOL_FAMILY_NAME "ethtool" +#define ETHTOOL_FAMILY_VERSION 1 + enum { ETHTOOL_UDP_TUNNEL_TYPE_VXLAN, ETHTOOL_UDP_TUNNEL_TYPE_GENEVE, ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE, =20 - __ETHTOOL_UDP_TUNNEL_TYPE_CNT + /* private: */ + __ETHTOOL_UDP_TUNNEL_TYPE_CNT, + ETHTOOL_UDP_TUNNEL_TYPE_MAX =3D (__ETHTOOL_UDP_TUNNEL_TYPE_CNT - 1) }; =20 +/** + * enum ethtool_header_flags + * @ETHTOOL_FLAG_COMPACT_BITSETS: use compact bitsets in reply + * @ETHTOOL_FLAG_OMIT_REPLY: provide optional reply for SET or ACT requests + * @ETHTOOL_FLAG_STATS: request statistics, if supported by the driver + */ enum ethtool_header_flags { - ETHTOOL_FLAG_COMPACT_BITSETS =3D 1 << 0, /* use compact bitsets in reply = */ - ETHTOOL_FLAG_OMIT_REPLY =3D 1 << 1, /* provide optional reply for SET or= ACT requests */ - ETHTOOL_FLAG_STATS =3D 1 << 2, /* request statistics, if supported by th= e driver */ + ETHTOOL_FLAG_COMPACT_BITSETS =3D 1, + ETHTOOL_FLAG_OMIT_REPLY =3D 2, + ETHTOOL_FLAG_STATS =3D 4, }; =20 enum { - ETHTOOL_TCP_DATA_SPLIT_UNKNOWN =3D 0, + ETHTOOL_PHY_UPSTREAM_TYPE_MAC, + ETHTOOL_PHY_UPSTREAM_TYPE_PHY, +}; + +enum ethtool_tcp_data_split { + ETHTOOL_TCP_DATA_SPLIT_UNKNOWN, ETHTOOL_TCP_DATA_SPLIT_DISABLED, ETHTOOL_TCP_DATA_SPLIT_ENABLED, }; @@ -30,7 +50,7 @@ enum { ETHTOOL_A_HEADER_PHY_INDEX, =20 __ETHTOOL_A_HEADER_CNT, - ETHTOOL_A_HEADER_MAX =3D __ETHTOOL_A_HEADER_CNT - 1 + ETHTOOL_A_HEADER_MAX =3D (__ETHTOOL_A_HEADER_CNT - 1) }; =20 enum { @@ -40,7 +60,7 @@ enum { ETHTOOL_A_BITSET_BIT_VALUE, =20 __ETHTOOL_A_BITSET_BIT_CNT, - ETHTOOL_A_BITSET_BIT_MAX =3D __ETHTOOL_A_BITSET_BIT_CNT - 1 + ETHTOOL_A_BITSET_BIT_MAX =3D (__ETHTOOL_A_BITSET_BIT_CNT - 1) }; =20 enum { @@ -48,7 +68,7 @@ enum { ETHTOOL_A_BITSET_BITS_BIT, =20 __ETHTOOL_A_BITSET_BITS_CNT, - ETHTOOL_A_BITSET_BITS_MAX =3D __ETHTOOL_A_BITSET_BITS_CNT - 1 + ETHTOOL_A_BITSET_BITS_MAX =3D (__ETHTOOL_A_BITSET_BITS_CNT - 1) }; =20 enum { @@ -60,7 +80,7 @@ enum { ETHTOOL_A_BITSET_MASK, =20 __ETHTOOL_A_BITSET_CNT, - ETHTOOL_A_BITSET_MAX =3D __ETHTOOL_A_BITSET_CNT - 1 + ETHTOOL_A_BITSET_MAX =3D (__ETHTOOL_A_BITSET_CNT - 1) }; =20 enum { @@ -69,7 +89,7 @@ enum { ETHTOOL_A_STRING_VALUE, =20 __ETHTOOL_A_STRING_CNT, - ETHTOOL_A_STRING_MAX =3D __ETHTOOL_A_STRING_CNT - 1 + ETHTOOL_A_STRING_MAX =3D (__ETHTOOL_A_STRING_CNT - 1) }; =20 enum { @@ -77,7 +97,7 @@ enum { ETHTOOL_A_STRINGS_STRING, =20 __ETHTOOL_A_STRINGS_CNT, - ETHTOOL_A_STRINGS_MAX =3D __ETHTOOL_A_STRINGS_CNT - 1 + ETHTOOL_A_STRINGS_MAX =3D (__ETHTOOL_A_STRINGS_CNT - 1) }; =20 enum { @@ -87,7 +107,7 @@ enum { ETHTOOL_A_STRINGSET_STRINGS, =20 __ETHTOOL_A_STRINGSET_CNT, - ETHTOOL_A_STRINGSET_MAX =3D __ETHTOOL_A_STRINGSET_CNT - 1 + ETHTOOL_A_STRINGSET_MAX =3D (__ETHTOOL_A_STRINGSET_CNT - 1) }; =20 enum { @@ -95,7 +115,7 @@ enum { ETHTOOL_A_STRINGSETS_STRINGSET, =20 __ETHTOOL_A_STRINGSETS_CNT, - ETHTOOL_A_STRINGSETS_MAX =3D __ETHTOOL_A_STRINGSETS_CNT - 1 + ETHTOOL_A_STRINGSETS_MAX =3D (__ETHTOOL_A_STRINGSETS_CNT - 1) }; =20 enum { @@ -105,7 +125,7 @@ enum { ETHTOOL_A_STRSET_COUNTS_ONLY, =20 __ETHTOOL_A_STRSET_CNT, - ETHTOOL_A_STRSET_MAX =3D __ETHTOOL_A_STRSET_CNT - 1 + ETHTOOL_A_STRSET_MAX =3D (__ETHTOOL_A_STRSET_CNT - 1) }; =20 enum { @@ -114,7 +134,7 @@ enum { ETHTOOL_A_PRIVFLAGS_FLAGS, =20 __ETHTOOL_A_PRIVFLAGS_CNT, - ETHTOOL_A_PRIVFLAGS_MAX =3D __ETHTOOL_A_PRIVFLAGS_CNT - 1 + ETHTOOL_A_PRIVFLAGS_MAX =3D (__ETHTOOL_A_PRIVFLAGS_CNT - 1) }; =20 enum { @@ -182,7 +202,7 @@ enum { ETHTOOL_A_LINKINFO_TRANSCEIVER, =20 __ETHTOOL_A_LINKINFO_CNT, - ETHTOOL_A_LINKINFO_MAX =3D __ETHTOOL_A_LINKINFO_CNT - 1 + ETHTOOL_A_LINKINFO_MAX =3D (__ETHTOOL_A_LINKINFO_CNT - 1) }; =20 enum { @@ -199,7 +219,7 @@ enum { ETHTOOL_A_LINKMODES_RATE_MATCHING, =20 __ETHTOOL_A_LINKMODES_CNT, - ETHTOOL_A_LINKMODES_MAX =3D __ETHTOOL_A_LINKMODES_CNT - 1 + ETHTOOL_A_LINKMODES_MAX =3D (__ETHTOOL_A_LINKMODES_CNT - 1) }; =20 enum { @@ -213,7 +233,7 @@ enum { ETHTOOL_A_LINKSTATE_EXT_DOWN_CNT, =20 __ETHTOOL_A_LINKSTATE_CNT, - ETHTOOL_A_LINKSTATE_MAX =3D __ETHTOOL_A_LINKSTATE_CNT - 1 + ETHTOOL_A_LINKSTATE_MAX =3D (__ETHTOOL_A_LINKSTATE_CNT - 1) }; =20 enum { @@ -222,7 +242,7 @@ enum { ETHTOOL_A_DEBUG_MSGMASK, =20 __ETHTOOL_A_DEBUG_CNT, - ETHTOOL_A_DEBUG_MAX =3D __ETHTOOL_A_DEBUG_CNT - 1 + ETHTOOL_A_DEBUG_MAX =3D (__ETHTOOL_A_DEBUG_CNT - 1) }; =20 enum { @@ -232,7 +252,7 @@ enum { ETHTOOL_A_WOL_SOPASS, =20 __ETHTOOL_A_WOL_CNT, - ETHTOOL_A_WOL_MAX =3D __ETHTOOL_A_WOL_CNT - 1 + ETHTOOL_A_WOL_MAX =3D (__ETHTOOL_A_WOL_CNT - 1) }; =20 enum { @@ -244,7 +264,7 @@ enum { ETHTOOL_A_FEATURES_NOCHANGE, =20 __ETHTOOL_A_FEATURES_CNT, - ETHTOOL_A_FEATURES_MAX =3D __ETHTOOL_A_FEATURES_CNT - 1 + ETHTOOL_A_FEATURES_MAX =3D (__ETHTOOL_A_FEATURES_CNT - 1) }; =20 enum { @@ -276,6 +296,7 @@ enum { enum { ETHTOOL_A_PROFILE_UNSPEC, ETHTOOL_A_PROFILE_IRQ_MODERATION, + __ETHTOOL_A_PROFILE_CNT, ETHTOOL_A_PROFILE_MAX =3D (__ETHTOOL_A_PROFILE_CNT - 1) }; @@ -362,7 +383,6 @@ enum { =20 __ETHTOOL_A_TS_STAT_CNT, ETHTOOL_A_TS_STAT_MAX =3D (__ETHTOOL_A_TS_STAT_CNT - 1) - }; =20 enum { @@ -412,7 +432,7 @@ enum { ETHTOOL_A_CABLE_TEST_HEADER, =20 __ETHTOOL_A_CABLE_TEST_CNT, - ETHTOOL_A_CABLE_TEST_MAX =3D __ETHTOOL_A_CABLE_TEST_CNT - 1 + ETHTOOL_A_CABLE_TEST_MAX =3D (__ETHTOOL_A_CABLE_TEST_CNT - 1) }; =20 enum { @@ -433,7 +453,7 @@ enum { ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR, =20 __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT, - ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX =3D __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT -= 1 + ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX =3D (__ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT = - 1) }; =20 enum { @@ -443,7 +463,7 @@ enum { ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST, =20 __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT, - ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX =3D __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT -= 1 + ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX =3D (__ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT = - 1) }; =20 enum { @@ -452,7 +472,7 @@ enum { ETHTOOL_A_CABLE_TEST_TDR_CFG, =20 __ETHTOOL_A_CABLE_TEST_TDR_CNT, - ETHTOOL_A_CABLE_TEST_TDR_MAX =3D __ETHTOOL_A_CABLE_TEST_TDR_CNT - 1 + ETHTOOL_A_CABLE_TEST_TDR_MAX =3D (__ETHTOOL_A_CABLE_TEST_TDR_CNT - 1) }; =20 enum { @@ -580,6 +600,9 @@ enum { ETHTOOL_A_C33_PSE_PW_LIMIT_UNSPEC, ETHTOOL_A_C33_PSE_PW_LIMIT_MIN, ETHTOOL_A_C33_PSE_PW_LIMIT_MAX, + + __ETHTOOL_A_C33_PSE_PW_LIMIT_CNT, + __ETHTOOL_A_C33_PSE_PW_LIMIT_MAX =3D (__ETHTOOL_A_C33_PSE_PW_LIMIT_CNT - = 1) }; =20 enum { @@ -613,7 +636,7 @@ enum { ETHTOOL_A_RSS_START_CONTEXT, =20 __ETHTOOL_A_RSS_CNT, - ETHTOOL_A_RSS_MAX =3D (__ETHTOOL_A_RSS_CNT - 1), + ETHTOOL_A_RSS_MAX =3D (__ETHTOOL_A_RSS_CNT - 1) }; =20 enum { @@ -662,8 +685,8 @@ enum { }; =20 enum { - ETHTOOL_MSG_USER_NONE, - ETHTOOL_MSG_STRSET_GET, + ETHTOOL_MSG_USER_NONE =3D 0, + ETHTOOL_MSG_STRSET_GET =3D 1, ETHTOOL_MSG_LINKINFO_GET, ETHTOOL_MSG_LINKINFO_SET, ETHTOOL_MSG_LINKMODES_GET, @@ -710,12 +733,12 @@ enum { ETHTOOL_MSG_PHY_GET, =20 __ETHTOOL_MSG_USER_CNT, - ETHTOOL_MSG_USER_MAX =3D __ETHTOOL_MSG_USER_CNT - 1 + ETHTOOL_MSG_USER_MAX =3D (__ETHTOOL_MSG_USER_CNT - 1) }; =20 enum { - ETHTOOL_MSG_KERNEL_NONE, - ETHTOOL_MSG_STRSET_GET_REPLY, + ETHTOOL_MSG_KERNEL_NONE =3D 0, + ETHTOOL_MSG_STRSET_GET_REPLY =3D 1, ETHTOOL_MSG_LINKINFO_GET_REPLY, ETHTOOL_MSG_LINKINFO_NTF, ETHTOOL_MSG_LINKMODES_GET_REPLY, @@ -763,7 +786,7 @@ enum { ETHTOOL_MSG_PHY_NTF, =20 __ETHTOOL_MSG_KERNEL_CNT, - ETHTOOL_MSG_KERNEL_MAX =3D __ETHTOOL_MSG_KERNEL_CNT - 1 + ETHTOOL_MSG_KERNEL_MAX =3D (__ETHTOOL_MSG_KERNEL_CNT - 1) }; =20 #endif /* _UAPI_LINUX_ETHTOOL_NETLINK_GENERATED_H */ --=20 2.47.0