Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1983084rdb; Mon, 9 Oct 2023 08:53:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfBJ3LH7EiR4Kmcop8eZM473BRb5Yl9KCiNRe7IEYOOqfjoVcTRte2HfSaMa1WtQyiUu8F X-Received: by 2002:a17:902:e5d1:b0:1c6:362:3553 with SMTP id u17-20020a170902e5d100b001c603623553mr17880279plf.31.1696866829553; Mon, 09 Oct 2023 08:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866829; cv=none; d=google.com; s=arc-20160816; b=hhIA/G8if+IT9hIR92047JJdnaEUxKcL2n8N1UAoHDjOgFsb+XtC23MIxo7bvxS780 kdSDz4L/sVct0gqczc/qx0ArvteMxUVaVLRMCaLhxt7URtZQgsKMKK7Vbeb5ua6uFZcL gm5GMrl0MnKYFnhH9ZCZEfk5QDW3Soch0lzQPfN2HRuOH9vBWgwCjxjdX1CbwHmMCTDG AsygowzAbBBNvKrU6IYZxvERo5jQeUGsJUxu1nnLmmxhUBzF+5VNO23/OSSEyUd9XQyB bIp1fTaECMAtGYBRxYEYw1mf25/kQx+iW+82ahzeHyLPBlwBC8ZWG1uaSrCo1iD578YM rSCw== 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:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id c12-20020a170902d48c00b001c62161b18esi10241722plg.580.2023.10.09.08.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; 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:3 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 lipwig.vger.email (Postfix) with ESMTP id 2BD528042B41; Mon, 9 Oct 2023 08:53:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377885AbjJIPx0 (ORCPT + 99 others); Mon, 9 Oct 2023 11:53:26 -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 ); 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=20Maincent?= To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Thomas Petazzoni , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Horatiu Vultur , UNGLinuxDriver@microchip.com, Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Richard Cochran , Radu Pirea , Willem de Bruijn , Vladimir Oltean , Michael Walle , Jacob Keller , Maxime Chevallier , Kory Maincent 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:53:47 -0700 (PDT) X-Spam-Level: ** From: Kory Maincent 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 --- Documentation/netlink/specs/ethtool.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.25.1