Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp862826lqs; Fri, 14 Jun 2024 07:49:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzdaOEV/KCyy0j1CJO+ceoUWaHXSxazybKNI+tVYDs4K7JTjMFvDv+FeRB4s0sGp1RsHc18hbLfzEh5rM52JBknSIu1y3sJiz+uv6pig== X-Google-Smtp-Source: AGHT+IGOGQf9N6fGLRhk+9vR6BPtLV9S00xgoFaG5jtjCG1TUySCIlevw1iDD7niOHypk/X8LOSu X-Received: by 2002:a62:e719:0:b0:705:9c08:c913 with SMTP id d2e1a72fcca58-705d7119ae7mr2989617b3a.16.1718376556182; Fri, 14 Jun 2024 07:49:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718376556; cv=pass; d=google.com; s=arc-20160816; b=fPxbtdTjbj0tjBtzDFXR7DAXSm2O8adLxprgAgG0Asp1Xr8UDHl/3ljcT1dzPOyemG r9SsZcf/AFGQtCL5gXI7rt/Ik6NEezkkIrifME7l9AkIJ5wC1lc8fr+wxmnFj33SEe4w L6K+W97wLAqQL9SP2uU+I94Js7bHrWpUFk3h2Ha3xGTGR4+QCJOTBw/oRhDNL1hALGU2 PH4N784ZKLEsSR14f4FxHX/tPDRaaJkpw0vHqpiZi8AzxUzldwC5jBhp7+yyFCgUc7z8 VXY+Gjp8gnD9vR1PA7f/8VTCrCrKotmjafgtz/iTCDh37ESoWg5BtlpUD93UXIecKFE8 msFQ== 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=QkG6RpZbzfXvfICRvD13tiB6Kv59EFMrLUsvNmv+uIg=; fh=bkuuwL0IG6Vujou5YptfTbPV1KXOCWyLyxvloMSGjxQ=; b=TB0FbevoAuGaf4PBxxyhh/YA4+AsMi1aebP0yRUTp2/btTVsrcUGy0f5mLrqkbJsz/ L3j1dEB5UEVjjn9LChhsvdpTl/JZTpAczT8TCI7oiMJXDwgB5RE71kgdAvQCgRSuYSqX Pchg0+r5mBccZ1yEdDB5ax6FIr8QNDT6S60KfEidCemmI9wFbFFWgFWfo/7Q71lpU6tS igQzqvWZ6InDFSfBOBS7+PjH6iwQz12QGUbJ8WVypD9Ulz0QsPRa7Q6uts/kfYDYeBxk kUWz/wHDtkEzgcCX/dQu3mzjryYBi4a5z2yXfKO/CG/qMko0fDhc55FblJeH2PsWFh56 2ItQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CO0J5ohb; 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-215032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb787d9si3622421b3a.291.2024.06.14.07.49.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CO0J5ohb; 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-215032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215032-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 69DC0B274B7 for ; Fri, 14 Jun 2024 14:34:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B24748CFC; Fri, 14 Jun 2024 14:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CO0J5ohb" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 3BE3617BA9; Fri, 14 Jun 2024 14:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718375614; cv=none; b=NjdSjruhBl1ah3B+Il11ld+pCqBO/9aAXQjHXGeDCmtoNM62bPw502bGGy5+sbup/Vnu/HUaWxn98f3+XLT9bvHSk0q1IbAj/bfCWVJ9liLaIUYq3s9jZAcCbD4HVB4hxn1xa6K+HRMzFK1exULnTGEWL08/Q4T+xB6ZbdzDz0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718375614; c=relaxed/simple; bh=e5zYsTaJrk4SUYcjlDEypMWqkh919gIld7NRsaQ1M9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G68Ea+hbi20cGDNEkPtM2RG5pCMWB3sar3hXyiFYhqrW2JbTq8VmwoqEPKMWYBlhpcX88JIEbGWrk3vKEY1N4OGPcff3T4tGtJtQEt9zzzMd4PeukmWtUOk1lw0Ik+R09atWQd9o5nF+tfXeeGmVI78owc5lyMRy55UvY5XB3Sw= 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=CO0J5ohb; arc=none smtp.client-ip=217.70.183.197 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 52B431C0004; Fri, 14 Jun 2024 14:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718375604; 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=QkG6RpZbzfXvfICRvD13tiB6Kv59EFMrLUsvNmv+uIg=; b=CO0J5ohbjq5yzJlGTqxHJLhQZY5o8ZEObuvS9ruKAdrIMPG5oyHDio1QDCgtHvzGt2SDDi LkUTWpB2z2FKGmiGRZpAUmHLCkuU9nJFMuB1TDdYvmtV/k/1m9k3sgpiVybpLDmSbhRkmf mA0o/2IW/e3qAqTh2LHbKimPsRUvMKSd5wZ8YDiPTsQVdd285x/O6kNPOgXOlLkDoj9n+Z 6ZBLJ0MiWFYxT5u5yPrRod3mhtiVpl7y4fW8VZVvMGaMrwCHHmKj5Cwnzbds/YBNtdpQeS A+k/z36Jzr0mRhEFu1qz1DDE4AUQ3scPTdRdbWDxIBjXWADlbJcNLau+76eDIg== From: Kory Maincent Date: Fri, 14 Jun 2024 16:33:22 +0200 Subject: [PATCH net-next v3 6/7] netlink: specs: Expand the PSE netlink command with C33 pw-limit attributes 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: <20240614-feature_poe_power_cap-v3-6-a26784e78311@bootlin.com> References: <20240614-feature_poe_power_cap-v3-0-a26784e78311@bootlin.com> In-Reply-To: <20240614-feature_poe_power_cap-v3-0-a26784e78311@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Oleksij Rempel Cc: Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dent Project , kernel@pengutronix.de, Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) Expand the c33 PSE attributes with power limit to be able to set and get the PSE Power Interface power limit. ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth2"}}' {'c33-pse-actual-pw': 1700, 'c33-pse-admin-state': 3, 'c33-pse-pw-class': 4, 'c33-pse-pw-d-status': 4, 'c33-pse-pw-limit': 90000, 'header': {'dev-index': 6, 'dev-name': 'eth2'}} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-set --json '{"header":{"dev-name":"eth2"}, "c33-pse-pw-limit":19000}' None Signed-off-by: Kory Maincent --- Documentation/netlink/specs/ethtool.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 0ff27319856c..d5a91265cb85 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -953,6 +953,10 @@ attribute-sets: name: c33-pse-ext-substate type: u32 name-prefix: ethtool-a- + - + name: c33-pse-pw-limit + type: u32 + name-prefix: ethtool-a- - name: rss attributes: @@ -1646,6 +1650,7 @@ operations: - c33-pse-actual-pw - c33-pse-ext-state - c33-pse-ext-substate + - c33-pse-pw-limit dump: *pse-get-op - name: pse-set -- 2.34.1