Message ID | 20231009155138.86458-17-kory.maincent@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1962251vqo; Mon, 9 Oct 2023 08:54:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwdntsYYYaYUVf1urGs2ymFCPbPckdPmq1Z4RGz8C978V9M8XnvFJ3kf+U8PGnYDWVUC/b X-Received: by 2002:a17:902:ee42:b0:1bd:e258:a256 with SMTP id 2-20020a170902ee4200b001bde258a256mr15408790plo.32.1696866845276; Mon, 09 Oct 2023 08:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866845; cv=none; d=google.com; s=arc-20160816; b=GufM+D/2/Z7oLZltdAcXkety+smCoII2P2CELgp6QZIPhxZgtP6L3n4EmlDlqd9l1N eARCC0kOw/A+DakcV7DqsSfvTIwRvgYFoEiT7fwkfza7FZ31JAOwKMiQwLD+rvY7u9FB ConL55e9IQ/3LvuT0wGkBCItxnH9NZbaMvu9ulxgcmb7CR4s8OZ0C3NtqcwN6lxnnN29 2eeHhB0n7piItspVs56e9lSBNsWBX8EotnYpgnVt/8pRZW9mTS4uhJeKB8mKHrGTtjOb R/IloovHw5ID4PmWeNIeIGrfNnV/DgnslLDkcQb7PoygZ4Tv13NACqAv6kBHzbPUeVgp QWGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4AMtsZa6zVIHzUbCNgP42uJl6NOiPb2XmqHr6qtSOk8=; fh=G6KN1zqmJBGIhpPSq1AWsD4aWgSLDy1jBh7tZkBaukM=; b=oCrP9FDGo8iBauXD3OyVg+mwLaeKkO0S/hcWsfr8ImYL8/k2lV9L3pPPNt4kcvOL3H L25llmn87LTO5gDXStE9t9D5qvJ1z2/ETUluyPJpng8YeiWaUTHq4bFppbWqNMEfUr4k b55O0D72uUQYA6DgzFC5Qv0o3CGLYUCw1/3Zs/XOOYDOVmIU3vV/89kj6bim84c63KET cRwsmJTqjjDbS438bnPP4EtmAjow/jn4HHP18ijT9/rB7WA2zLQQBfwKjvfgjee1Kjh2 1vsVfIBetd1gzkHl9x1Dd16/JUSSLRQvylWOT5o49F0/HnHJarYgoBt+0f9wxAHGIJyv wJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OUAu5uUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ij7-20020a170902ab4700b001c88fc3c5a6si7452995plb.485.2023.10.09.08.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:54:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OUAu5uUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 2E9F880D1590; Mon, 9 Oct 2023 08:53:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377905AbjJIPx1 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Mon, 9 Oct 2023 11:53:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377908AbjJIPxA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Oct 2023 11:53:00 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387DD12A; Mon, 9 Oct 2023 08:52:44 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id DB4AA1C0006; Mon, 9 Oct 2023 15:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696866763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4AMtsZa6zVIHzUbCNgP42uJl6NOiPb2XmqHr6qtSOk8=; b=OUAu5uUl10rdXK/kSRABGinxUBYAX0tqKnedXwm6mighiWm1QSlQlqoTxYxvz4VoRNw+X6 +GC7juiFx+TR0VYScrXq/97Q2dv2Dzl9MF/B81611FPWxuQop/2wQoGEy7cLG4YzjYs78C gvGGfgZ0baXDziXYNRk3AxftqLciQ1kGrZ1zNnCv4avWMHoe76zMvmBxM/LjLNuPabjnM4 3sFM1LUimU7s0KTrX4FS9I52co5M/5DapRRJ6xDLXYp8YCbkxrCl7myWEwnO+X8Z6enWT+ WCooxd5IdXTV/d903kMGVk1Go2Hiqo/puV7fndPWmtKHteGy2i8inv7xPysBCA== From: =?utf-8?q?K=C3=B6ry_Maincent?= <kory.maincent@bootlin.com> To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Jay Vosburgh <j.vosburgh@gmail.com>, Andy Gospodarek <andy@greyhouse.net>, Nicolas Ferre <nicolas.ferre@microchip.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Horatiu Vultur <horatiu.vultur@microchip.com>, UNGLinuxDriver@microchip.com, Florian Fainelli <florian.fainelli@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Richard Cochran <richardcochran@gmail.com>, Radu Pirea <radu-nicolae.pirea@oss.nxp.com>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, Vladimir Oltean <vladimir.oltean@nxp.com>, Michael Walle <michael@walle.cc>, Jacob Keller <jacob.e.keller@intel.com>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Kory Maincent <kory.maincent@bootlin.com> Subject: [PATCH net-next v5 16/16] netlink: specs: Introduce time stamping set command Date: Mon, 9 Oct 2023 17:51:38 +0200 Message-Id: <20231009155138.86458-17-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231009155138.86458-1-kory.maincent@bootlin.com> References: <20231009155138.86458-1-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:53:59 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779293849364506439 X-GMAIL-MSGID: 1779293849364506439 |
Series |
net: Make timestamping selectable
|
|
Commit Message
Köry Maincent
Oct. 9, 2023, 3:51 p.m. UTC
From: Kory Maincent <kory.maincent@bootlin.com> Add a new commands allowing to set the time stamping. Example usage : ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema \ --do ts-list-get \ --json '{"header":{"dev-name":"eth0"}}' {'header': {'dev-index': 3, 'dev-name': 'eth0'}, 'ts-list-layer': b'\x02\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00'} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-set \ --json '{"header":{"dev-name":"eth0"}, "ts-layer":5}' none ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-get \ --json '{"header":{"dev-name":"eth0"}}' {'header': {'dev-index': 3, 'dev-name': 'eth0'}, 'ts-layer': 5} Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> --- Documentation/netlink/specs/ethtool.yaml | 9 +++++++++ 1 file changed, 9 insertions(+)
Comments
On 10/9/23 08:51, Köry Maincent wrote: > From: Kory Maincent <kory.maincent@bootlin.com> > > Add a new commands allowing to set the time stamping. > > Example usage : > ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema \ > --do ts-list-get \ > --json '{"header":{"dev-name":"eth0"}}' > {'header': {'dev-index': 3, 'dev-name': 'eth0'}, > 'ts-list-layer': b'\x02\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00'} > > ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-set \ > --json '{"header":{"dev-name":"eth0"}, "ts-layer":5}' > none > > ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-get \ > --json '{"header":{"dev-name":"eth0"}}' > {'header': {'dev-index': 3, 'dev-name': 'eth0'}, 'ts-layer': 5} > > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Likewise, probably better folded into patch 15.
diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 81ed8e5f2f55..cfee4bf32128 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -1740,3 +1740,12 @@ operations: attributes: - header - ts-list-layer + - + name: ts-set + doc: Set the timestamp device + + attribute-set: ts + + do: + request: + attributes: *ts