Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp393276rdb; Thu, 19 Oct 2023 07:31:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSdlwc9G/DR/zxxQCJcWa4ZoXaVhKBToByujkgJjt6/F8/91iiaSfqNNI6+wxxeDqkHRp3 X-Received: by 2002:a05:6359:28c1:b0:168:a18d:da05 with SMTP id qb1-20020a05635928c100b00168a18dda05mr1979445rwb.4.1697725904570; Thu, 19 Oct 2023 07:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697725904; cv=none; d=google.com; s=arc-20160816; b=0aDo2hm5YwoOhSM9A/lSXrK6Q/jqFYA1Z+K9ybZMGRRnF9Wykh3D1txN9hOsM1H67O 72uQcuB+ek5l5r9wKQX9YiNwX7j8LW/8hhu+GtbnXnmAhAa+rgWEWhSy/t9Jf85ZWWdB do8jEql52pgd/rO3DlaioxQ8RD1Zhw+dGi3SNPqO1glgICo2gkDolpRbMvbYJl6vYSYi AOfZmi0YEo1DajYSnA+h4MdQngGd6DY16gMlR2r5G6QxUSnglGUeya2hnuuOQyqG/1Zy qRJ5XZLgcamFIqKkK1CAlooHqGtVSzMVdlt9uvWwsLYOxsmqEK2n15+4QqqtfG1tNC3i UlJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=fOSgXCQ1eufYILoSDYjDEVxI1OePejpExOW8kSLC0lg=; fh=IL4Om7kRbYP5ILTMWk7kzVj5RVF0+t2ztL6E2Yzsl4U=; b=CzK7Od5LWFapSo4zCdu72VthQqn1i4TL05bpjQRKSgU/71XzHvGDL0y5GWhkMcJIuz Ap+naJ23GdBFaKheGJt5y91I+1CmbCwDSLbCPZhQ3YZDH4zGqbqKbBH+1L4P4cYEznO+ 7cg9yGzoNKcRpLmGdNUlA5XjOMU2jevq5AtlW4yv8qaH+FNY1WOHMrxLqTlArnmTTQQ7 vTbbXxWDPOchZJYcikBVwjOzjAjEgQS8uohPIr5SXamV5Cn1JnIPPXGmlZD5b8HZKx6u i/zHNEoVkJtX12RMQSjHE8WQy/fX5Abc9NOo/jDFur9qb6W8E0PphMvvvl8xujxGieMd kbAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HsNMiuIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y16-20020a056a00191000b0069023e4bca8si6886470pfi.214.2023.10.19.07.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:31:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HsNMiuIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 36D1A80A7E79; Thu, 19 Oct 2023 07:30:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346209AbjJSOal (ORCPT + 99 others); Thu, 19 Oct 2023 10:30:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346194AbjJSOaL (ORCPT ); Thu, 19 Oct 2023 10:30:11 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0382185; Thu, 19 Oct 2023 07:30:03 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id CF47F60003; Thu, 19 Oct 2023 14:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697725802; 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=fOSgXCQ1eufYILoSDYjDEVxI1OePejpExOW8kSLC0lg=; b=HsNMiuIF66nEyXtvLt2d1ySlhaEeqleKXPD9NqDxbwIC8gJjEzX0MtMhSdr2d2zm7ARPvq Wbt2aXrSRgE0rmdDISRcQ2SkPhHgNFBtIKzZYy3idYqaxMmfi3BZXFcp+guK4XeP+Hldf5 mmmmnoS4uf7dwZaUVbLX7X6KOPqoiL1ZkmdY8HlsSC0Tbns/as5V59w//5jTHRPUNqelXQ nlgrabhhsJkvfJSKqWVkX1voPOpRH/NlDK0u9ut2BhmRDlZFxxD34cmsvsSIJYYJeNxjZD fuunUkAFbSPoVkva6E+0DiGD6abP7yd1rIxNGRunCeNvgxwgOSUp2ZnT4Tegdw== From: Kory Maincent Date: Thu, 19 Oct 2023 16:29:31 +0200 Subject: [PATCH net-next v6 16/16] netlink: specs: Introduce time stamping set command MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231019-feature_ptp_netnext-v6-16-71affc27b0e5@bootlin.com> References: <20231019-feature_ptp_netnext-v6-0-71affc27b0e5@bootlin.com> In-Reply-To: <20231019-feature_ptp_netnext-v6-0-71affc27b0e5@bootlin.com> To: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Kory Maincent X-Mailer: b4 0.12.3 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 07:30:52 -0700 (PDT) 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