Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1982685rdb; Mon, 9 Oct 2023 08:53:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3m+Z/7Pn+mEI4jkhfluPg8Nr4X8S97hczVl6XvOvc+2HHRFER7zD6X1aN1f5hscNoRUn6 X-Received: by 2002:a17:90b:1989:b0:25f:20f:2f7d with SMTP id mv9-20020a17090b198900b0025f020f2f7dmr14233694pjb.2.1696866788798; Mon, 09 Oct 2023 08:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866788; cv=none; d=google.com; s=arc-20160816; b=kqOa/7LVRsMf1djlpmMqmooelXhHGDCzCLVSisG2nGXMPEj8vCqXaHOQzEf5Gk8La9 aWO2qRGbz14aohfmUcSp07faZcjEaMo7Jxyv+T5aIMB4w3/MnQQcFcgp3pJXalD361Im X8yIpMtVs9aq+RMO1hjYgOg9bP5jPnAz1NkLf4m7Ht2fiHGeD+MbRgP0Jcp8MXMgzK58 XKuHIWx07jurW4WI0YhR2EUt79PMREczkORZIhRqtJl9+ivOsDPI4Rwctl8yC9/phTSP OHEdeCp8fP47ZawI/WQtJtrSbuBxZ+C2hOLW1qfAZnnyYgxv4ANXq9t9Fe0kj5/XIqqF xZbw== 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=kiv+yxDSpeeBqHfOwRUQw3mS7Lf3CBbyGOYxIaD7WCE=; fh=G6KN1zqmJBGIhpPSq1AWsD4aWgSLDy1jBh7tZkBaukM=; b=CPqTijZauh+uoRhB0WXgcNw05XW4PaVCd9mBpr7gXct0qiy4/n5kuEqGf9yjTtMxTR 7rmnZ3o3VsGAv0lQWiPUmtJhvBNhfd6JWyRxgH7Nvfm7VSGjmG6e2/wflQAB5tArI114 HIRcgUr7FuZJPNUCoea77zaKFz2sytuCgGfgX0XGlbL+WiVd+4HByNu86SLS5WYfG1De By0CtQ1nNNlkVFhPYRmRoPnwxyTEPh2FvldGMpImlhujvVt7RG+Yn2rpqHxkJbsG+Rhj 1ICe56fjsCdZV1P9w/C5h6CxO2+GgVXFSUTguuMhS1WloCrFsh1wYg3fh4mLCDaIX9p5 4IXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=flLpiW9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l9-20020a17090a660900b00263f3d759cdsi9677421pjj.78.2023.10.09.08.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=flLpiW9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 6C0E5805F5C9; Mon, 9 Oct 2023 08:53:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377870AbjJIPwq (ORCPT + 99 others); Mon, 9 Oct 2023 11:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377789AbjJIPwb (ORCPT ); Mon, 9 Oct 2023 11:52:31 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B79711F; Mon, 9 Oct 2023 08:52:19 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4785A1C0012; Mon, 9 Oct 2023 15:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696866738; 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=kiv+yxDSpeeBqHfOwRUQw3mS7Lf3CBbyGOYxIaD7WCE=; b=flLpiW9HxWrEEDJ3VIZB37TnzkKrjuWnVmK6tZ2Gb0w6wDpRpRSF3sEndafzvcQuVOmlRC hEKNJdrLeYWBSfbBiXX41cPeNyaN/RAzS6+Ljxv9NKPxXJWJN73kSoDL2chMfqMKVkIZM+ EwbQdtWes55EaDgUxRZyxoFGV7SJqZkn4fPL/FJzNQsL9JCLQsfNuoybXSpHYQLAY265LD 5gFIodeY3uiubSzmSzaeowfU4PWwaLz1i3/ynePtC0brzvAzyu3VN14eg6FzWJC4CrCHoP +4nzddMNDP2+8px2jTy3wbAtjEQ1vUSxrg55QfMms59aH8B1i0PgeJ6gbGLMWg== 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 09/16] netlink: specs: Introduce new netlink command to get current timestamp Date: Mon, 9 Oct 2023 17:51:31 +0200 Message-Id: <20231009155138.86458-10-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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:53:03 -0700 (PDT) X-Spam-Level: ** From: Kory Maincent Add a new commands allowing to get the current time stamping on a netdevice's link. Example usage : ./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': 1} Signed-off-by: Kory Maincent --- Documentation/netlink/specs/ethtool.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 837b565577ca..49ee028e97ca 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -942,6 +942,16 @@ attribute-sets: - name: burst-tmr type: u32 + - + name: ts + attributes: + - + name: header + type: nest + nested-attributes: header + - + name: ts-layer + type: u32 operations: enum-model: directional @@ -1692,3 +1702,17 @@ operations: name: mm-ntf doc: Notification for change in MAC Merge configuration. notify: mm-get + - + name: ts-get + doc: Get current timestamp + + attribute-set: ts + + do: + request: + attributes: + - header + reply: + attributes: &ts + - header + - ts-layer -- 2.25.1