Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3295811rdb; Thu, 16 Nov 2023 06:02:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJ9Wjn9G7aZRWOCpYkxSteIM9M0b4nonaaFlq6fVGqHPVvPGQwPtCbqphCWWhuSvuHnq7x X-Received: by 2002:a9d:628b:0:b0:6cd:9f4:e088 with SMTP id x11-20020a9d628b000000b006cd09f4e088mr814944otk.5.1700143372729; Thu, 16 Nov 2023 06:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700143372; cv=none; d=google.com; s=arc-20160816; b=GK9p+ER7IRpxq/+hqIE+PBsZ/RYX9pFyww8C3bfy+qan8dRq2xdYZszZRHGyLpLvgD iQ1jhnt9qFhNmAMmj9sgAPsO8DYabcTNIaDm2+4iaFJeNA49CXtl1YHlK6zJovoP1Qlk N3rLcc9OugQYL7WLvtLEr40ZF9qJwWPGx6PQd59B40zZ+E89uExCcqq7VX+/Qi3ZtVVH pCbZ0qNpFIya7WcqI/R97HnFyUuJ/dwcElRhJTVkgMPaO8zG2cTCHrOgSJ2kZTTGB4XF YeX2QRY4HyVOodFkIdxWnzNEPnBhEd6A+8TcUkVqq1fv0PiNVkkhAO0WjcTz3mJ+uVxI XdvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=cNPrazhu8AiNqY48Bl5toVocfkCGjTYHAVgU1zKd2NQ=; fh=Pq7utEzs3KbaBDGtrjfUXzjEIBPT1l1o0fhVtCU5Oyc=; b=AYXylQBTksDIv4V8NkQ5XXDUocNi3eb71Be5Ym+CdnritS9DfcJEPVYBcZXrAUeaxD DaYEN7ERAXQVGPMKZ2kNVrY3KBe/wdptz3Ub/1R1wqrQezz441T80TD6nnoH/Bc6Ds7E 67UbVQXyLTE9oSJzbyFB9g+4rIWWpwvIm3c2w40rHYgtz+vxjO17hNdhWNKYiW1WvqTx KYkBxzBcQxV+mVK/RaZBdyBmIUJpSNJongyylpnDsrJBKB2V9yKeEnVdrWxpOyj8e/N+ eRSqSXG2gsWigLkLn2jwUeXOoKGnUVEiM1wf+5roio9XKkSU2/oQwf6VEM+LIbfNgwrY CbGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ApW/cO8s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d15-20020a056830044f00b006bc66ef4459si4299990otc.251.2023.11.16.06.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:02:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ApW/cO8s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 91EDE8212AA7; Thu, 16 Nov 2023 06:02:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345318AbjKPOCU (ORCPT + 99 others); Thu, 16 Nov 2023 09:02:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345302AbjKPOCG (ORCPT ); Thu, 16 Nov 2023 09:02:06 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B91D187; Thu, 16 Nov 2023 06:02:01 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id DE6E020013; Thu, 16 Nov 2023 14:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700143320; 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=cNPrazhu8AiNqY48Bl5toVocfkCGjTYHAVgU1zKd2NQ=; b=ApW/cO8sBs9PX2rfQ++9vxKM/0pt5rQXi7fDlCheLbVxPk38H8K/GA6cULrALdiSysBfTL w2eSnBPde+AWA0hf1CiuUCaFGi+MCBggavfbapSPTVpG8BnEqTrDAcZ+Y+AtV3wNpyxeQu U71ecg2SRujnMtrf3d8+7+dJYOx5dw00/QCt+Ua44RZGjQ+aOVMbPoc5nJ7ZAnb3ZtAWM0 sirA3awc2GnIzbC09Yjspzvb0H8Y2wh0P36SNBf0jaz6or7qoe2cjqfggn4HS1Zrwngp/M fAatE/79rIDRr+TqKGN2JkhWc9gaIDoWHwWzOar+bqBCR/IHYCCRYcJYl13DbQ== From: Kory Maincent Date: Thu, 16 Nov 2023 15:01:38 +0100 Subject: [PATCH net-next 6/9] netlink: specs: Expand the pse netlink command with PoE interface MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231116-feature_poe-v1-6-be48044bf249@bootlin.com> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> In-Reply-To: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:02:34 -0800 (PST) Add the PoE pse attributes prefix to be able to use PoE interface. Example usage: ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get \ --json '{"header":{"dev-name":"eth0"}}' {'header': {'dev-index': 4, 'dev-name': 'eth0'}, 'pse-admin-state': 3, 'pse-pw-d-status': 4} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-set \ --json '{"header":{"dev-name":"eth0"}, "pse-admin-control":3}' Signed-off-by: Kory Maincent --- Documentation/netlink/specs/ethtool.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index e1bf75099264..6e1525106a9e 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -889,6 +889,18 @@ attribute-sets: name: podl-pse-pw-d-status type: u32 name-prefix: ethtool-a- + - + name: pse-admin-state + type: u32 + name-prefix: ethtool-a- + - + name: pse-admin-control + type: u32 + name-prefix: ethtool-a- + - + name: pse-pw-d-status + type: u32 + name-prefix: ethtool-a- - name: rss attributes: @@ -1571,6 +1583,9 @@ operations: - podl-pse-admin-state - podl-pse-admin-control - podl-pse-pw-d-status + - pse-admin-state + - pse-admin-control + - pse-pw-d-status dump: *pse-get-op - name: pse-set -- 2.25.1