From mboxrd@z Thu Jan 1 00:00:00 1970 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 F3E5A7641D; Tue, 26 Mar 2024 14:04:58 +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=1711461901; cv=none; b=m0Ez1fijpyOiZohWn4wN+/YhhsZIlgrHsUeJu1Mn/FpFhUSZyMVHAynwVs4vaS7DxxxrJ2jExKy+hYStKyi/RxH3EgoNjf8jvobdSj7lvNZ49cEK9Y8tIZy0fthgiVknPoXscgzOK3lrQVRR0XEhFJ0nf5fgHbj4BFFXUxKotpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461901; c=relaxed/simple; bh=hoxk5E2wfTQEnDLGp0m0reIgQgoq6LUKdDUMql/JYS0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l9WHcICzM78rdiiBtxebldWQhVN41NEm5UbY8Tee+73yd+RuG/xRKWfBS2T66e5/KWHo63UxUywL0mnNkIMuMFmk/1HMaeOiD5kFnn95F7CjL7qNlM5L6n9fzQnfTDkKlyqMVFStV9y5HTsM1Bv5MPAx2VSzriEJ1Au1vHuByt0= 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=BlbVyBB2; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BlbVyBB2" Received: by mail.gandi.net (Postfix) with ESMTPSA id 56EAB1C000D; Tue, 26 Mar 2024 14:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711461897; 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=oLblGQlakkqreOqL4f7yvoQVhLxA5VJ4cIE037WqWTA=; b=BlbVyBB25kLeFNCEIqVoYKYxthJTqlvUn0YocuaM8EaPKbsBNYXn+3qDruUv1WDS2QVmF+ 62iHjv8e5WFfYlnybTjyYGykZR1OfekX6OPDc0X+gSOKB4MhnvJTfY4f0HqGAV4mGYSuOR pflCkgw5Rk9TfekE+9aLd3NOMoSN0U/4jD1p1d3vwM6o2dJMG8aHaHdWZCALk6fMAq1M0a XA1NhGRsfXzbp6kHWKv3yTw1qyi1kWBbVyOyEusY7YzZ5wJQ4n0frPjVXUM9BBp6TD5oHW i7kbByBSFBlkWNfcJRsiWE3ko+UmQipm22hhiCB700/OyPZafA/hdmJp7DqLVQ== From: Kory Maincent Date: Tue, 26 Mar 2024 15:04:45 +0100 Subject: [PATCH net-next v6 08/17] netlink: specs: Expand the pse netlink command with PoE interface 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: <20240326-feature_poe-v6-8-c1011b6ea1cb@bootlin.com> References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> In-Reply-To: <20240326-feature_poe-v6-0-c1011b6ea1cb@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 , Oleksij Rempel , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) 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'}, 'c33-pse-admin-state': 3, 'c33-pse-pw-d-status': 4} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do pse-set \ --json '{"header":{"dev-name":"eth0"}, "c33-pse-admin-control":3}' Reviewed-by: Andrew Lunn Signed-off-by: Kory Maincent --- Changes in v2: - Follow the "c33" PoE prefix naming change. - Add the ethtool auto generated code. Changes in v3: - Remove the ethtool auto generated code. --- 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 33e81fa189ca..beaab9f0017f 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: c33-pse-admin-state + type: u32 + name-prefix: ethtool-a- + - + name: c33-pse-admin-control + type: u32 + name-prefix: ethtool-a- + - + name: c33-pse-pw-d-status + type: u32 + name-prefix: ethtool-a- - name: rss attributes: @@ -1574,6 +1586,9 @@ operations: - podl-pse-admin-state - podl-pse-admin-control - podl-pse-pw-d-status + - c33-pse-admin-state + - c33-pse-admin-control + - c33-pse-pw-d-status dump: *pse-get-op - name: pse-set -- 2.25.1