Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp393210rdb; Thu, 19 Oct 2023 07:31:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEu6dgxcTdlb0+nmn+S+cngO/mGsMBzwrwmGuiLr8Ema1bg4SxCvrlZmaz0MY76calYc8zi X-Received: by 2002:a05:6e02:1b03:b0:34f:6d6c:79bd with SMTP id i3-20020a056e021b0300b0034f6d6c79bdmr3077798ilv.28.1697725900118; Thu, 19 Oct 2023 07:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697725900; cv=none; d=google.com; s=arc-20160816; b=L9Ox2UPxLo1UbsIHlHYPyXkxp9WxgZER6Aw44hJzfEy7kVySYyuOhfAWgPs6yjEq7J 47TNBr0HNRSZxmhyN1xYnZDYUQnLLzoFyPQzTobdUrXHX6YWDYImmRtvYM0GOArkyXo3 mg+Cav0pfdmHHKeMxwIGcu/DyhuDEXdPY4i0YTDo4xAPhSKwFmjh8nYi+qvxrx4qhGJw AdbErKHJb4n5DKifkxHyjFmjOcq5I6CgjmOge997rqCqk2CySdChYZ36+oQQWkAUl2ee r0cpsE23MAjgiGOqYxgPoYLaAlOq90G9ZVdIrarPiY7ka9flt7pIZjAA4gskzTc6b2A9 Gl5Q== 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=ctQqRyF0VKpba4qDoD9bfkE+XzRdvDu4EZKoEFJZ5Y8=; fh=IL4Om7kRbYP5ILTMWk7kzVj5RVF0+t2ztL6E2Yzsl4U=; b=Xfe3UMLSKKFfmsTxVxZztQLh0+ZKcZ0pSGADynfX4r0vA+P8jWPiyM6UC9if57UPjy WmxeRXCPQciOU7qMnEhZFC2bK0PWV5QpYPkeRjsVOMAc443JdANpp9cGVKlRD6Gd9Qea zc/CDm/xGGgWF9WZvN5F2dngpweKHjjGf7Q9Ip5eacno+PNGvUumezYHqJ/jUVfQUBjN DhGAsOCHO2nc/6oeo4k9wu7JuD6mRuisPEINkrRERjCv2+aSOEjpHDJsxb7/qa6CXuSc J7dTJvMK7srv4ZDaUCF2GhWBFEcJGLDm8ZKf+R0J59uPw9yybmwJJIrY5obJirzXf8E4 L//g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZwkAqxoo; 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 bs191-20020a6328c8000000b005a0788d4a50si2911418pgb.376.2023.10.19.07.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:31:40 -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=ZwkAqxoo; 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 48BC6805DC37; Thu, 19 Oct 2023 07:30:44 -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 S1346147AbjJSOa1 (ORCPT + 99 others); Thu, 19 Oct 2023 10:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346128AbjJSO37 (ORCPT ); Thu, 19 Oct 2023 10:29:59 -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 8FF8A182; Thu, 19 Oct 2023 07:29:56 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id D976260007; Thu, 19 Oct 2023 14:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697725795; 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=ctQqRyF0VKpba4qDoD9bfkE+XzRdvDu4EZKoEFJZ5Y8=; b=ZwkAqxooU+fvld0S9DTZQdLs/SHO4YlQHDJ17vJfZE9XulwB7WkLfItcN6kO174entp4hr reDx7Pur2OHObXNdshmTQ4j9ZzhNcFes9XPLG2L6y9PpTJdVvlPPMQAWwLsOPqQuByG618 jCquTcIUWMrts0Jp0ei1Rad0B1OaV+83XV2NPg/py19RXqpnDmn1Nj2s9AYEQBLAxIafd+ hcUl+IcEPy2qaE3XNxtOH5FIeLTq+/NHfz/6NU6nWGKQgJ4IdqD3FtRcb66Q1rA13OsIaj EnXDMe27K9wolTH5J2L7Tujpj07ZNQiosGSRouwN/b8Ok4AsTzjA2OLXCNVfFA== From: Kory Maincent Date: Thu, 19 Oct 2023 16:29:26 +0200 Subject: [PATCH net-next v6 11/16] netlink: specs: Introduce new netlink command to list available time stamping layers MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231019-feature_ptp_netnext-v6-11-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:44 -0700 (PDT) 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