Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp932833lqt; Fri, 7 Jun 2024 03:10:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxPZFc1TpL3FaIOAzaizARQrpFa4EPNIbKioWjtOnFpW1sgLbihQ7PLoE8Obz/eoDfmVWgwh2vRfMaF+4WhuvOrnHteDvOqkAsnr5KYg== X-Google-Smtp-Source: AGHT+IEtFeJiS8lCStPpQI7lVebcLCD3uG2HRIpAvM2g0tiyL6U5e1worJkIHMbTPuWR/VATjV4e X-Received: by 2002:a17:906:3e09:b0:a6d:ff12:5bd1 with SMTP id a640c23a62f3a-a6dff125c77mr67837266b.41.1717755028463; Fri, 07 Jun 2024 03:10:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717755028; cv=pass; d=google.com; s=arc-20160816; b=gA16XGPEMYyrW7XI/6TxjZzov0Y7IlbN6YPAqNr2OJBee8GykTeSVLF02aqHRJRXO5 bH7j+33tv7rYB9+YaBdbZlhXwSKIW/Rckkf61uGsoh6P8PeQCnfJKZIE25zFnze0uxdC DYzJJHkPClShZWHYx3AS3RtqEk3IRhw7DkztfWzOPn3cM9P7ztph594w0FdHVsjqiQxj ylzRWWGTjBzejHm2tzy0l39xSSSFuEEp8Du7orkBnjc4DQaA8qBHPwWVo9IdZcrLf4jY R6nTwBwWaSdH7VWWQdUwtLUpAPRLgrOlSXkk9yu6+VckgEGNBLolygkx3ixBPyZQFxbn fazg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:date:in-reply-to:subject:cc:to :from:dkim-signature; bh=9doJyVU9qxOkAk1maiwctIn/+b2qh/iJuF285ssJygs=; fh=dfiQlJmXShCLZjaIzduZwm2KU0VYIGZrDderYXsjdXQ=; b=d2yP64sMqaCyZoNGaWboIaknN3lGZHiM005aK8+lVPPe5iURZ87ly+e4RCvb3O8UBM VpZ6Joo5hlzNgvDwLYD4jD1lKPrGB6XV+Xod8Aesyd7ZnvepyRY6oZnbwJ6r/t+45TKB T7TLNHiHGR//lZEEc3XQp2ZwNchgH27ZZYp5ZW7gexju3NX3soGY+0DduURQGppQzdDA FQKqrmCfBiPjkwR92ZuucfrLjLzVFoFBpSu7xBf7V4FSe2Vfv8C8tMaL5IqochswX7bM vFFkEyHzsdzhuTa1AKvkFSlP5Q9BxhzuLDDOHhKVcDuDyXgo9axSLx03BXKeuj3UsB3o jhhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i2rYfswI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6ded30dafcsi49405066b.153.2024.06.07.03.10.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i2rYfswI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2A2551F21A31 for ; Fri, 7 Jun 2024 10:10:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68F8915B98D; Fri, 7 Jun 2024 10:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i2rYfswI" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F18261CA85; Fri, 7 Jun 2024 10:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717755010; cv=none; b=HauA/V73deMbyYH5TB+lq5KDQBc1DW21qslmKHA//Npk6rVo1prFLqx0Vk/jQ0bqmtY+/7FudhvgWjVMF9IKR34rZpsiOW/fBqleDuDhZDpabNyalSJ8X7rniG1BZbYD7SOcwrnt/rG0QtxFzOFqAoQ8VFBc5YUmkxxO2JYop10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717755010; c=relaxed/simple; bh=aE4eaP6bHfiBKjViBn6+Ujbx5P3RY+W8dBRi8lIgZgQ=; h=From:To:Cc:Subject:In-Reply-To:Date:Message-ID:References: MIME-Version:Content-Type; b=WBIERcymfeREB3K9q6Gv56sixA7Q/H+GciY/FxijneN0icYK1LcLIB62uCOBEYaL6rZT6Dxbi2ENLw0iQcS4YWcN7/c6IR2GdEYSmrDL0KCf2XaKI19mMm9Ofc16qLGydj8aaQ+L5Dr52J6iDmUO7A7GNSUBDghhEopBNJcyGBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i2rYfswI; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-354f3f6c3b1so1636283f8f.2; Fri, 07 Jun 2024 03:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717755007; x=1718359807; darn=vger.kernel.org; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9doJyVU9qxOkAk1maiwctIn/+b2qh/iJuF285ssJygs=; b=i2rYfswIaP4UR7EOonuz5WE0BfuFLaT/+6HfXO1i5tU0Ss7YB+g3L54syjydQQSWIy VTspKpdBrArmpNimjGZir45Nqv/9+ylcbSFaJXpHJZK8mb6U3BeCtCp8MJB9ma/lUXCu UXsRPx7LIlPsCjKCQjPQTrMZmE3jwjFhq3pqBl3acxEe6esS69XnttDAC7ufz9xE6qIt /GJWR6R/I8AgIk4130eRAxMZJr8uyQaDxy+nTqO+2gMQTiyvpP40N91pVeadKifm0kbQ bJoypROFLt3XaM65mGgayaPGCU647G2/Bp0Iudyt9u1KLBzxxMYB+LRgv4z/UI33sOfp +PEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717755007; x=1718359807; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9doJyVU9qxOkAk1maiwctIn/+b2qh/iJuF285ssJygs=; b=W6pJdKxgh56j0NVvZPQrsx0zJRE1DlpDWXCaCdFzOyG1d5NxPI/zk3UmRGVr37j2Wc rqz4qh2o596tv5RrmoKBTP06j9ysvIM4VnhemrxjAHa1dn/MkgRuT3Mhsn0fH3Pw3pqM JfxZEYb7HNepQ4lzPLPLAqsI+VLbdq2m97XMDRPw4vcfuk/zy+n+r+JyVzeuwIFu9OZN Z3Zq/dz7nEqHhMTTruTLJvQDi3fAEBJyN34+RyoZHUmLAMGGv5iPTjdL3rqLLUy6am/a a/AXl8Ygm7YbohU+wNX2gkzbGajb8ExYmMFWw8EwonRiWFXQypWPLJ4mYS6VWRT5pXAI 5G0g== X-Forwarded-Encrypted: i=1; AJvYcCXae4FOVdo8eAgixQFg5sFDHuAfcNTHiKGRlZ0/68z9YDQHMKmKW+Q0bkMJnBQz8ls4HdTSJm5ZJD9pMvhjgDwNE26IbSENwRwu43iEZo0R6QP0bDgbum2nI0gGbSVS5S45bMhA X-Gm-Message-State: AOJu0Yzl6zLAA9el8ElPeAOrh1HUKQiTYbUGrnSMMs/2bHQBlQWwFlpH AKGx8Sn52IAGG3fzTCKFi5J/vtXQ8Oa7ZdOnzVOvp1XOve7+740C X-Received: by 2002:adf:f00e:0:b0:35e:7dfc:345b with SMTP id ffacd0b85a97d-35efed65631mr1561970f8f.35.1717755007023; Fri, 07 Jun 2024 03:10:07 -0700 (PDT) Received: from imac ([2a02:8010:60a0:0:4d:91d6:b27d:6a1b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5e989c9sm3658427f8f.73.2024.06.07.03.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:10:06 -0700 (PDT) From: Donald Hunter To: Kory Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Oleksij Rempel , Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dent Project , kernel@pengutronix.de Subject: Re: [PATCH net-next v2 3/8] netlink: specs: Expand the PSE netlink command with C33 new features In-Reply-To: <20240607-feature_poe_power_cap-v2-3-c03c2deb83ab@bootlin.com> (Kory Maincent's message of "Fri, 07 Jun 2024 09:30:20 +0200") Date: Fri, 07 Jun 2024 11:09:38 +0100 Message-ID: References: <20240607-feature_poe_power_cap-v2-0-c03c2deb83ab@bootlin.com> <20240607-feature_poe_power_cap-v2-3-c03c2deb83ab@bootlin.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Kory Maincent writes: > 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- I see this is consistent with existing pse attributes in the spec, but are there enumerations for the state and status attributes that could be added to the spec? > - > 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