Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1982844rdb; Mon, 9 Oct 2023 08:53:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwCELWnAieUzGFUJ+uGLMMPulERbvhUo+9g38bF640q4N1bbPcCxirpDBqtvziCfnxzZ4s X-Received: by 2002:a05:6358:7e49:b0:142:d0dc:a3ce with SMTP id p9-20020a0563587e4900b00142d0dca3cemr16456723rwm.2.1696866806485; Mon, 09 Oct 2023 08:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696866806; cv=none; d=google.com; s=arc-20160816; b=SE+8qPywzaRWSRE7P8YNeQome9Nn6jZDVCzbdbSw7Fy5F9tI8dr1tUNPFVGPEjTpUs OT15ZvRRII7Z6dOPyIPFUeX3GuslQ9D7+GC3Sb7eAckJYjmS0nbY326gXYFak8y8yWkg GmmgJcc45z6ZNV9FQwmV+aDkLhdtbTWvYzZbrb38dGzqk+LZ5JI+HbSDEoirdYwmWbWU G16JI03MF6ZwBjaqt3T5QbNdTDyqD8DKA5eCoWFPuNTlf8l9uVlY65GvYxDYyozSlS31 42KBX43i6pu1prD05mOxcjL6kr1gqQ1gtC4G06wD2j12VAXWTM0ygbtax6KYBneK1oVp e/HA== 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=bNVv7aXW4R7kMn/Y3UYMw4xmcy2L8JPMN/pu3cSuY3s=; fh=G6KN1zqmJBGIhpPSq1AWsD4aWgSLDy1jBh7tZkBaukM=; b=myr1rnATeEcpCLxAMVNDsKDPVcXtDQ70dPlw1GrKajQNLY7ohdU3ehCFVa+p15D/9p PxGz5p45YsUSojG2znPr07GciPKcQcwoJeb5V1nsT7jndbvRvS/sgW8dw3MCmyNqXJCg v7v7MK7MgleKwk0j1xsrfvZpMWlXyPkMDTWbMHBC4WaesR/dHJ6s2oPIQ8NmNXzZlC5n MiVSGV4qb2qP4PaIvX2KL9klyu9TxLcTwnQIgYIjxOeGNMqxGepSMhK2ee2JE+2dwzQ/ 543c+pm50OAim+rEpriZHh+7kSucm3sx464dakCCRptGVedb4DqlgP4qwfZNG9Lt/1Jy /CLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JjlwVlqY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id m68-20020a632647000000b00578bb707e70si9786606pgm.799.2023.10.09.08.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JjlwVlqY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 7C5AA8043C39; Mon, 9 Oct 2023 08:53:22 -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 S1377847AbjJIPxA (ORCPT + 99 others); Mon, 9 Oct 2023 11:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377790AbjJIPwk (ORCPT ); Mon, 9 Oct 2023 11:52:40 -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 CA40A1A3; Mon, 9 Oct 2023 08:52:27 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id B2ED11C000C; Mon, 9 Oct 2023 15:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696866746; 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=bNVv7aXW4R7kMn/Y3UYMw4xmcy2L8JPMN/pu3cSuY3s=; b=JjlwVlqY62tsqrxerlPjaYNBSUO/s2YW9hVsPmrHUS2t5FPVwdtp6Gn2F0bnn002sdbX+m QsrZNFrpxVJneMTAuaO7lL5Wclo2wQCfl123smr01R1PGWxBv1zM/WWTR5lh545hx10/OY d7WFEjOeRgpEAwMaXsDhNKVZrkVAaOVMoouA6z704JeJrpIVL+TTK8eUp9JVYIIPw2jL7F 8ne0Zb87q04AMjAVz2gvGpCjjaWrvyWNIVvkOgy8qnf9xdtashqfR8dabEQHR6G7uGelW6 pxQAyPw3Ql6JPFztGPxQ32ezr+9o8+PF/FyYYk3yc9IwIXyJB021OzEJ9btAgQ== 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 11/16] netlink: specs: Introduce new netlink command to list available time stamping layers Date: Mon, 9 Oct 2023 17:51:33 +0200 Message-Id: <20231009155138.86458-12-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:22 -0700 (PDT) X-Spam-Level: ** From: Kory Maincent Add a new commands allowing to list available time stamping layers on a netdevice's link. 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'\x01\x00\x00\x00\x05\x00\x00\x00'} 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 49ee028e97ca..81ed8e5f2f55 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -952,6 +952,16 @@ attribute-sets: - name: ts-layer type: u32 + - + name: ts-list + attributes: + - + name: header + type: nest + nested-attributes: header + - + name: ts-list-layer + type: binary operations: enum-model: directional @@ -1716,3 +1726,17 @@ operations: attributes: &ts - header - ts-layer + - + name: ts-list-get + doc: Get list of timestamp devices available on an interface + + attribute-set: ts-list + + do: + request: + attributes: + - header + reply: + attributes: + - header + - ts-list-layer -- 2.25.1