Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2807807lqt; Tue, 23 Apr 2024 02:06:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/A/+RXJuppHWkEXMZyPKSe5ojZkolzcwuY/jYMc/jG3ul53AxYlVhWW48GBhRwawAsJvGKZlrgLSlOV5febgavtfYqdu8wz/AYfQMbw== X-Google-Smtp-Source: AGHT+IHM/2lQY2npFrkM0QZqhHxt7LUfNN3Bv1YO+LPRhKuLQHp4xjkf1QB9UEExAn7Iuc//CrGB X-Received: by 2002:a05:620a:4614:b0:78d:6abf:f5e6 with SMTP id br20-20020a05620a461400b0078d6abff5e6mr4025361qkb.8.1713863200524; Tue, 23 Apr 2024 02:06:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713863200; cv=pass; d=google.com; s=arc-20160816; b=xiynE+LORqBUNWxtRSie8tkn+89Uk2I1rlvLqARVFx8/YUZhrPJwnzXfOwoPnNdJQN Zw4hR9eivr1qlbyaoPay4v99sQBYqoTKANBVRlkJXnnRvyEnv4AVZkMhLq6u/CR+L7fy gRXpZ+goK/0t4hVACpTNCs+j5Qv0dO/xZiPNrqCp5sKpzQf1W9c8FOQDrNdgGDcsC8D6 qx0YVjdTreAV1RI0iOAcGKC2Cxs7mw/rMwVMldA/Ywh0rq6O7IuC4bi3v16lkMS81v0X tiJIt8LoFwTtQ8DF+8ZW/7KZilV3ot1UzZ8W73T4gYR2MIrrmnKiGpBKWxVxyhHKJmhr OCnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=f3Vdm2ApnbgD6sAJCOxwcva/xay9jaobfNPK0b3rdjQ=; fh=VZ2HRIlU26AKgxtunD0Vpmk5KWsUR/ziQj0CipkWWb4=; b=kvBp/w0fH5f8iNSl5frh3OmDtL2MhH0TGmiC341PcbBmV2KgxSeqBI+E6aOOpfAMvS LA0UVNE3XXIxiG9jSZlTqf7LKnbgDGktLAO+dSVxvrzVeT3FEEKNI+l/4gYEzm/zdSER T+3zq9o03NaSQRntCHljNQ+dCgVIP3X5opeZ4xzjhYq6ytB1IjvI3X3dvtn0sYJ7Kyba U6IR/BkAwHhvLSCWm8DgstY6oV5Gmbii6YJNm3YECb21Kv6s7Ld7SnudHlFn6rnDhflj LkQO90iHCPtVbuUeCEJ0+NbbcaXhpu8G9uK93Zm9oMo2598dJ0IaY/1AuG8+/ceKEbJT oyaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HFcfiBlA; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-154754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d18-20020a05620a137200b0078eeff06f62si12317147qkl.378.2024.04.23.02.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HFcfiBlA; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-154754-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 41B461C2139C for ; Tue, 23 Apr 2024 09:06:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09F7659148; Tue, 23 Apr 2024 09:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="HFcfiBlA" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AD385578A; Tue, 23 Apr 2024 09:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713863177; cv=none; b=MJazM/idc1ihmNrTrzavgFkimaF4g0g5GtW5tv2jIHbDFyMnodjoLTh23veA/ytOhCLJ+AEYDP/dPunS5+iLiEyWzS2g0yoCgKPCAuL501jtgk7J73nvHdC9nfxKvFMfFTSD9HhODsccIJFVUusOLyYaAeHRokiUmB0hGtn6FgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713863177; c=relaxed/simple; bh=qFr01XCCsOjJ3XLciOyq1BEwICTx8UuRQM17Ph15bKs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TEsiwFjCytB+PwD8K2rP++CDKu3J3IpxV3MfOYewpFSWDnqUBIEkRvgEPweUQuo2iw3cKvO/QElPa9VGu2WFGF0ba3GIXxkEnl1YLXAV8735c0H6TVVf/u4BYr2EaHFEw5fRXBW81b/SV3TcJzFjjEETAweHd5jglpQVVN1UPhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=HFcfiBlA; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 541DFE000E; Tue, 23 Apr 2024 09:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713863172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f3Vdm2ApnbgD6sAJCOxwcva/xay9jaobfNPK0b3rdjQ=; b=HFcfiBlA76ZdN52JJ0STOoBlPjYNGSdY5cipDUfIp8huo1VoU8xSJDRcB2rYQWf6QzgrbD HxCPzTjLeTAsmCx1Puo8DYxUHTt0FirNVVQEEYzBj28f3bkH5c8xioTvIrm4GvPBnmWFic rqdAwsa8h+5Ria6W6cYfbyxB3v5BxPvlwbniE6Q6+aEuLSKuUZ8lCuKNhhDYQ1bkn1tnZt tj+AbrCwu6Y2NEMPC2+0SdIqPGwpzyCiGxSY3wYfMFMEmWkKQ+gv/NZN8gzuOa+2KUh6kj LKSXlRd67ZgYV7CbDzEOf9g52szIH6XsStKi9bB48ShPZGs4ylpzO01i2z+Fiw== From: Kory Maincent Date: Tue, 23 Apr 2024 11:05:41 +0200 Subject: [PATCH ethtool-next 1/2] update UAPI header copies Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240423-feature_poe-v1-1-9e12136a8674@bootlin.com> References: <20240423-feature_poe-v1-0-9e12136a8674@bootlin.com> In-Reply-To: <20240423-feature_poe-v1-0-9e12136a8674@bootlin.com> To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Michal Kubecek Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) Update to kernel commit 6a57f091622a. Signed-off-by: Kory Maincent --- uapi/linux/ethtool.h | 55 ++++++++++++++++++++++++++++++++++++++++++++ uapi/linux/ethtool_netlink.h | 3 +++ 2 files changed, 58 insertions(+) diff --git a/uapi/linux/ethtool.h b/uapi/linux/ethtool.h index 4d1738a..3884bc4 100644 --- a/uapi/linux/ethtool.h +++ b/uapi/linux/ethtool.h @@ -750,6 +750,61 @@ enum ethtool_module_power_mode { ETHTOOL_MODULE_POWER_MODE_HIGH, }; +/** + * enum ethtool_pse_types - Types of PSE controller. + * @ETHTOOL_PSE_UNKNOWN: Type of PSE controller is unknown + * @ETHTOOL_PSE_PODL: PSE controller which support PoDL + * @ETHTOOL_PSE_C33: PSE controller which support Clause 33 (PoE) + */ +enum ethtool_pse_types { + ETHTOOL_PSE_UNKNOWN = 1 << 0, + ETHTOOL_PSE_PODL = 1 << 1, + ETHTOOL_PSE_C33 = 1 << 2, +}; + +/** + * enum ethtool_c33_pse_admin_state - operational state of the PoDL PSE + * functions. IEEE 802.3-2022 30.9.1.1.2 aPSEAdminState + * @ETHTOOL_C33_PSE_ADMIN_STATE_UNKNOWN: state of PSE functions is unknown + * @ETHTOOL_C33_PSE_ADMIN_STATE_DISABLED: PSE functions are disabled + * @ETHTOOL_C33_PSE_ADMIN_STATE_ENABLED: PSE functions are enabled + */ +enum ethtool_c33_pse_admin_state { + ETHTOOL_C33_PSE_ADMIN_STATE_UNKNOWN = 1, + ETHTOOL_C33_PSE_ADMIN_STATE_DISABLED, + ETHTOOL_C33_PSE_ADMIN_STATE_ENABLED, +}; + +/** + * enum ethtool_c33_pse_pw_d_status - power detection status of the PSE. + * IEEE 802.3-2022 30.9.1.1.3 aPoDLPSEPowerDetectionStatus: + * @ETHTOOL_C33_PSE_PW_D_STATUS_UNKNOWN: PSE status is unknown + * @ETHTOOL_C33_PSE_PW_D_STATUS_DISABLED: The enumeration "disabled" + * indicates that the PSE State diagram is in the state DISABLED. + * @ETHTOOL_C33_PSE_PW_D_STATUS_SEARCHING: The enumeration "searching" + * indicates the PSE State diagram is in a state other than those + * listed. + * @ETHTOOL_C33_PSE_PW_D_STATUS_DELIVERING: The enumeration + * "deliveringPower" indicates that the PSE State diagram is in the + * state POWER_ON. + * @ETHTOOL_C33_PSE_PW_D_STATUS_TEST: The enumeration "test" indicates that + * the PSE State diagram is in the state TEST_MODE. + * @ETHTOOL_C33_PSE_PW_D_STATUS_FAULT: The enumeration "fault" indicates that + * the PSE State diagram is in the state TEST_ERROR. + * @ETHTOOL_C33_PSE_PW_D_STATUS_OTHERFAULT: The enumeration "otherFault" + * indicates that the PSE State diagram is in the state IDLE due to + * the variable error_condition = true. + */ +enum ethtool_c33_pse_pw_d_status { + ETHTOOL_C33_PSE_PW_D_STATUS_UNKNOWN = 1, + ETHTOOL_C33_PSE_PW_D_STATUS_DISABLED, + ETHTOOL_C33_PSE_PW_D_STATUS_SEARCHING, + ETHTOOL_C33_PSE_PW_D_STATUS_DELIVERING, + ETHTOOL_C33_PSE_PW_D_STATUS_TEST, + ETHTOOL_C33_PSE_PW_D_STATUS_FAULT, + ETHTOOL_C33_PSE_PW_D_STATUS_OTHERFAULT, +}; + /** * enum ethtool_podl_pse_admin_state - operational state of the PoDL PSE * functions. IEEE 802.3-2018 30.15.1.1.2 aPoDLPSEAdminState diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h index 2503b26..b61c04d 100644 --- a/uapi/linux/ethtool_netlink.h +++ b/uapi/linux/ethtool_netlink.h @@ -913,6 +913,9 @@ enum { ETHTOOL_A_PODL_PSE_ADMIN_STATE, /* u32 */ ETHTOOL_A_PODL_PSE_ADMIN_CONTROL, /* u32 */ ETHTOOL_A_PODL_PSE_PW_D_STATUS, /* u32 */ + ETHTOOL_A_C33_PSE_ADMIN_STATE, /* u32 */ + ETHTOOL_A_C33_PSE_ADMIN_CONTROL, /* u32 */ + ETHTOOL_A_C33_PSE_PW_D_STATUS, /* u32 */ /* add new constants above here */ __ETHTOOL_A_PSE_CNT, -- 2.34.1