From patchwork Wed Sep 11 21:27:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 13801145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F335EE57DB for ; Wed, 11 Sep 2024 21:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YdYXHEU/uOE2Sd6g81/m5K7/IKN+TbDNAlXuginIRhQ=; b=XtMML5hpzMYtE7QblOpNRw9I4a WjmeHTELsgvdIKURFxaBhzg3UZFoKGGZ6KGq7jiVsw9rxdIH6akPFyr7IMWPMyhrF8hrxJRnzy7hq NbjVi8cKj9so1EFFeNfrQvBcUXyKVGTnDJSburDRqKt7gGIdWdFeCRyghf+fMpcWvZEWdet2vO9EZ chUgN2uFCrxDtfqgN+1EUGbiVzymJSNzrMl32Qlg5X/hEFJ6KsEGsQSHag0k4wm5HCcQUYe9z4Pfm +vFWYRucEoV2RbYxha99nxTjY7Rwq7qfixx+bF2Fds2gEYcPbiHpeX6NROlrgEfNlR943fegN/MqG WGRegkaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soUz6-0000000B4RA-08Qw; Wed, 11 Sep 2024 21:34:44 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soUs1-0000000B3DJ-3m19 for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 21:27:27 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 728551C000B; Wed, 11 Sep 2024 21:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1726090044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YdYXHEU/uOE2Sd6g81/m5K7/IKN+TbDNAlXuginIRhQ=; b=YqRjlVvP2tfn8WuvsoeqBmym460fVkKFf8kd6eC/OkjfcI1QacbuoMIG4OtaX0CKw5Gi1K 18wD+303mrjKp/JXo84nmo8MrW/6IHm+BYMe2enxyLck1PQVnLRZT1A88dKqBZzhZU+wRf VCVDovDAOu6vfg3szPxGBTtEmoQt+5XumzwVyUZ/xxs3k2RDofD8z4x2GF5W5wIQicJpaX VWyDyGv6+R0sAWamdWpwpJkPZeXq2HssIGDJ1l88/qNkOtzV9hiaUCnUi+lxEat+f9EBPP GU5iVN8motal+hpm70qPIxAhInwHLQod22uDMmMdnKUkAsJPEqBOJjuaWRjk0Q== From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?K=C3=B6ry_Maince?= =?utf-8?q?nt?= , Oleksij Rempel Subject: [PATCH net-next 7/7] netlink: specs: introduce phy-set command along with configurable attributes Date: Wed, 11 Sep 2024 23:27:11 +0200 Message-ID: <20240911212713.2178943-8-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911212713.2178943-1-maxime.chevallier@bootlin.com> References: <20240911212713.2178943-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: maxime.chevallier@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_142726_105433_B0D27C96 X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update the ethnl specification to include the newly introduced loopback and isolated attributes, and describe the newly introduced ETHTOOL_PHY_SET command. Signed-off-by: Maxime Chevallier --- Documentation/netlink/specs/ethtool.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 6a050d755b9c..f17ddd8783f7 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -1132,6 +1132,12 @@ attribute-sets: - name: downstream-sfp-name type: string + - + name: isolate + type: u8 + - + name: loopback + type: u8 operations: enum-model: directional @@ -1950,4 +1956,18 @@ operations: - upstream-index - upstream-sfp-name - downstream-sfp-name + - isolate + - loopback dump: *phy-get-op + - + name: phy-set + doc: Set configuration attributes for attached PHY devices + + attribute-set: phy + + do: + request: + attributes: + - header + - isolate + - loopback