Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp868796lqt; Fri, 7 Jun 2024 00:32:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwg/y/rKFt2M8ElHJH9VrD5O8tvglTY3QTv1Cj8MzHGZXVfmh3A11iqiU0KGLm+k86MgXvItSeOPIl5QVW0+Rf4A+qMZ51+LVdy+CkWw== X-Google-Smtp-Source: AGHT+IF+4VWhv2VIdJja6YROOrNlA28ZLMS27jbqyptFPsuo8KYPzedpSMnXY23IKi3IeoB4B+eU X-Received: by 2002:a05:6830:1553:b0:6f1:249b:25d1 with SMTP id 46e09a7af769-6f95730db18mr1626252a34.37.1717745548666; Fri, 07 Jun 2024 00:32:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717745548; cv=pass; d=google.com; s=arc-20160816; b=tjLvcXRSHJQOhAlsqRvzK8EnbmDRwBNbGfMXz0JEZIAdzqzIzKhnUpjQALOhWc+FJL xALtTiMLA8HDxX1xQhNWDyblUYjW/KcOLzJ+o/VB2PIVGrdjx6pAkaHjwRLT1p3a6ASa m8RjDAADbUFKxcB96ekAkaxXYjAi/hjo5PwXTIGCpPdlYBI77eI1/7n+0vlWSB/sQZzn T9TU8EjgpOAP5YhaOuxRaM9bsFfLErjkfIE7Oz4swKh6bpg2Yedhf3k7M9nZcwgFyJjZ Mku3zqQd+AK0o52cfO8BXTtTFJZ+SGAtEIjlmFb1D/zv2/Ttg1xGS4PMVpqtE+yDPZre Nhbw== 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=1vU/AedogyJdjRHzhE1ZYEiKhLlkByPwNNkJwKzcRaE=; fh=bkuuwL0IG6Vujou5YptfTbPV1KXOCWyLyxvloMSGjxQ=; b=vPUktWzAUlX40Ni3OZi7q6Nwvx4bvOY1cUebUlTZYsQz1zMfT3srEvpHZxKw42vfZe Yz+tvwySyuDXqZHye+UJjaRNXN/XOxOWgDh6XPaXkwKw0Ft6dsqBF7kwnQm41yiqWiMh SH7ZNadhCSe+0eCE4qNuApWd0Y06NzMdWErP+sNomUVoT7IZl8V/Y/uVQedx3s9ixxJ3 6EO6OWQt1G6ZTWgKu5pkGZ8wTK+Q+DIpKdAdnm2grJ0dGIIGA22b+oQfiJXjUxaaC6/m Qwtk+OFc2/OPkLXYiGRPU1C59TKMFjQ7HFwnikODgZIm8k4UcB35SUaryR2U5BEWQ7vZ l4JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iATodo3g; 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-205532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205532-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de275fe292si2598554a12.467.2024.06.07.00.32.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iATodo3g; 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-205532-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205532-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 64437283CC2 for ; Fri, 7 Jun 2024 07:31:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54845155344; Fri, 7 Jun 2024 07:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iATodo3g" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 B103879DC; Fri, 7 Jun 2024 07:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745442; cv=none; b=U7kYfXrYgxWmvm/HTTy7LWzvjG+EQQSWanLtPfvdg22apdjsCk0E9IJa6UEKHODk7dywH/cHrZfqlSGKWKbj9mvczPZeXjOWCcliACrWTxmda5Uj/sgksVxxGje57XykkMoixLZfr19hEiymbrMMZznmmeQyUabDLro3pxQS30o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745442; c=relaxed/simple; bh=k1fwHIPAYc4O0HyC1r1Yd/I+nKqa1dDfQpwzGjUQX5A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=liEH1EPm8nS0gUHrvpXVlnAdeFLqJWY49Vyt09Ab8CfIx7Um+WX7ej9G2cjhnppE0cS+Hv9pJp/qvA+IciOoFppAOtCx5jfjgNPb/f58JO+FaXCYtAR457AU/1NYYHPkkCl6GreZSxY4qCizUsvOLaHTnS3k5udi29sy3ZkaUdM= 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=iATodo3g; arc=none smtp.client-ip=217.70.183.194 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 77D9B40005; Fri, 7 Jun 2024 07:30:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717745439; 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=1vU/AedogyJdjRHzhE1ZYEiKhLlkByPwNNkJwKzcRaE=; b=iATodo3gdBUkZ33m29OSqMpgMD0r/ojk2FpbhgAaf0P+Ltpy4srfg0t2JcOsu53wf+4Mju 28PlVvkbVYJQfPcWkW1hnVAw60SaCn0JMknpTKNZkli5vLKGoIWNsg24tsmdk7VZEiqy+0 V0geQUXgVPM5M4FjTRfn/aSZJZHMNFACnysX7iEJKhBXo6x1xxnmQneJi6Wm7ktD7QJ2dt jKsT+d0IKjhP1sf4z4DHytmJM0P0h+HnfcSuL8oOIF0yc/iU6df02MZnnvH+fRnRVeXsV5 WQg4oAsWPj4Pd1g/4x9e+adwC73cLuWlUsyZwjn3rC260z8PLbs5mdPCa8fPdA== From: Kory Maincent Date: Fri, 07 Jun 2024 09:30:20 +0200 Subject: [PATCH net-next v2 3/8] netlink: specs: Expand the PSE netlink command with C33 new features 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: <20240607-feature_poe_power_cap-v2-3-c03c2deb83ab@bootlin.com> References: <20240607-feature_poe_power_cap-v2-0-c03c2deb83ab@bootlin.com> In-Reply-To: <20240607-feature_poe_power_cap-v2-0-c03c2deb83ab@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 PSE class, extended state information and power consumption. ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth0"}}' {'c33-pse-actual-pw': 1700, 'c33-pse-admin-state': 3, 'c33-pse-pw-class': 4, 'c33-pse-pw-d-status': 4, 'header': {'dev-index': 4, 'dev-name': 'eth0'}} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-get --json '{"header":{"dev-name":"eth0"}}' {'c33-pse-admin-state': 3, 'c33-pse-ext-state': 5, 'c33-pse-ext-substate': 5, 'c33-pse-pw-d-status': 2, 'header': {'dev-index': 4, 'dev-name': 'eth0'}} Signed-off-by: Kory Maincent --- 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 00dc61358be8..8aa064f2f466 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -922,6 +922,22 @@ attribute-sets: name: c33-pse-pw-d-status type: u32 name-prefix: ethtool-a- + - + name: c33-pse-pw-class + type: u32 + name-prefix: ethtool-a- + - + name: c33-pse-actual-pw + type: u32 + name-prefix: ethtool-a- + - + name: c33-pse-ext-state + type: u8 + name-prefix: ethtool-a- + - + name: c33-pse-ext-substate + type: u8 + name-prefix: ethtool-a- - name: rss attributes: @@ -1611,6 +1627,10 @@ operations: - c33-pse-admin-state - c33-pse-admin-control - c33-pse-pw-d-status + - c33-pse-pw-class + - c33-pse-actual-pw + - c33-pse-ext-state + - c33-pse-ext-substate dump: *pse-get-op - name: pse-set -- 2.34.1