Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1191666rdb; Fri, 16 Feb 2024 07:57:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmmY0CX1q2Oux+b9zeH+QjbbimGEl3dZxy+Kpm2zsH82v1Sc0cEwrJFP0GbW7ApE93hlY8oqHMIn1wkmVn+xNXWk5VpuLwwG698EaYOg== X-Google-Smtp-Source: AGHT+IHV+vgQNLBfwpfcfk83wwnb39WHK/7U5VytTIGeNwv7Hd+dXzEfp3oLNjXHdHyKuZ6MNqO1 X-Received: by 2002:a25:a04a:0:b0:dcd:b76f:36de with SMTP id x68-20020a25a04a000000b00dcdb76f36demr4880536ybh.1.1708099056389; Fri, 16 Feb 2024 07:57:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708099056; cv=pass; d=google.com; s=arc-20160816; b=biiblaX1noxX1vRJNP0yevF2EIHhxr1Sk22LkAtVy/DtZW1gJnkyy3LSyPOVabdNVx ygrN7ND9ZTQHfkhyq2x/os3aYFsdqqo6dzM4mbBoSrjyF7+G2mac5/r+SXPmmW0FlQ5G sKp0Z03nbP0//X4k82NVLl0JyeTYPez091qbGgaBFtiHAKyPgZGeHhfIjNSzHJXHVmUT b3KUFCtCb8sI9AI0lfEiRKk63o110ikmH03NHsLmmwtvMpCOeXUeCx2ZAm3A/lAMIWys tSu4GNK8wVrxu8R/FHGHcAnEz4FS5OoFfnIDkBtGaTrth5C0LZQMFUJE0196uffRcWMO fqDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=hrBO2wzt0J4arvEYzmCu+K7sTUcd+qHj9mVz8SibBag=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=SZK4WRZc1N1W8fVSsY5aUMKaUpmpY04QHhEHaY9r14qLBevdpf5V5nXMTp6p+37dtl W91oviyUJwlA9LMNmd6DAOk0mCeOtKqe5mKZee9a6bogmSAsoxlxluJ6UvrkHjKiWWor qZeSST7OqSChQuzqMyFUtuTc+P3+fCFN3zYzCDTiCpr8tF3/EtEPuv7OB8hBrDIl48iT R2BGr9vq5CAm9+usbh62w2AYAM2lL1Py/cxKBqIfAnCq5IB+01ynLPmSSypfKj+0W04z R6RykXnC0Jv2o3dqIxcni5T66fmwhqV3dP/b9V2LV5DGJR8pcrIPZoYGbExXfnF/hm9i MYdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=U72O1Mzd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m12-20020a05620a220c00b0078735bbfdaasi123391qkh.694.2024.02.16.07.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:57:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=U72O1Mzd; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2758A1C22670 for ; Fri, 16 Feb 2024 15:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7E181369B3; Fri, 16 Feb 2024 15:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="U72O1Mzd" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 896411350CC; Fri, 16 Feb 2024 15:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098795; cv=none; b=MV/oj3X6EkswvswqKAgFSzufZMt+wzmMoUSktqTPFRbY2F0RTbWzNS3AW38o5k58+YQM84QCliB4E3vfCoQWKvB250Zg05heomzpjSv+MCvksykEUIOLX2Rf0RO5ma4/WG7w3qhiZiyn7PHJhLX5vkZ/NZyQJbiBIWmmyJXX8UU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098795; c=relaxed/simple; bh=mxBFK4Fb71lyE8xT3cEVQg0kPCMLh4VSthxx6LrQ+zs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EcYcDAHoIza8vTGxN9oAiT/G5C7lX3leUmfMvACwNXZzmM51rtfKspojuOfxYhydOebXpytlqLT4jNGEDhF0c80ddrAY8mHU5AugEHqaEAeHcNSidXBT1z8zA2UoN1+KCdz3H9Z2tyof7/J5i87RNLhSWUPhZgK+ESeErzYvI2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=U72O1Mzd; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D1B35240014; Fri, 16 Feb 2024 15:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708098791; 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=hrBO2wzt0J4arvEYzmCu+K7sTUcd+qHj9mVz8SibBag=; b=U72O1MzdaaSHoWqTPgTIH721SmoYlSoYg2d9SFUS6k6i6ZfPCN/QdxB6fxw2Zzj2UXCeen IzaF3/1jgZ7eeULzsawMjo2jaT2mzNyCTGjN0kEQrIdmOnb7VaHiE/No0KjFwXVqUlAXWm j9JQSZ44jnJ8Zax7vUOsO7yosbeLOs4i4j0kRV8PnvI0OUuykB/vXwCqlViK30nR778S9m yNOne0ScrADlRW8lbt3iRkiln+mRu/j0orwYpJTpd+VIlMbyM2XHsg4F41L9Vhnzmlgg4G pMGR9PgdQ41HifmBIaXzY233i3/Wm1NU1ynQo8HRtUlOmMQU8p+df2bZDPrHcQ== From: Kory Maincent Date: Fri, 16 Feb 2024 16:52:31 +0100 Subject: [PATCH RFC net-next v8 13/13] netlink: specs: tsinfo: Enhance netlink attributes and add a set command Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-feature_ptp_netnext-v8-13-510f42f444fb@bootlin.com> References: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@bootlin.com> In-Reply-To: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@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 , Rahul Rameshbabu , Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com Add new attributed to tsinfo allowing to get the tsinfo and the hwtstamp from a phc provider (composed by a phc index and a phc qualifier) on a netdevice's link. Add simultaneously a set command to be able to set hwtstamp configuration for a specified phc provider. Signed-off-by: Kory Maincent --- Changes in v8: - New patch --- Documentation/netlink/specs/ethtool.yaml | 35 +++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 197208f419dc..cfe48f8d6283 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -559,6 +559,15 @@ attribute-sets: - name: tx-lpi-timer type: u32 + - + name: tsinfo-hwtst-provider + attributes: + - + name: index + type: u32 + - + name: qualifier + type: u32 - name: tsinfo attributes: @@ -581,6 +590,13 @@ attribute-sets: - name: phc-index type: u32 + - + name: hwtst-provider + type: nest + nested-attributes: tsinfo-hwtst-provider + - + name: hwtst-flags + type: u32 - name: cable-result attributes: @@ -1373,7 +1389,7 @@ operations: notify: eee-get - name: tsinfo-get - doc: Get tsinfo params. + doc: Get tsinfo params or hwtstamp config. attribute-set: tsinfo @@ -1381,6 +1397,7 @@ operations: request: attributes: - header + - hwtst-provider reply: attributes: - header @@ -1388,6 +1405,8 @@ operations: - tx-types - rx-filters - phc-index + - hwtst-provider + - hwtst-flags dump: *tsinfo-get-op - name: cable-test-act @@ -1693,3 +1712,17 @@ operations: name: mm-ntf doc: Notification for change in MAC Merge configuration. notify: mm-get + - + name: tsinfo-set + doc: Set hwtstamp. + + attribute-set: tsinfo + + do: + request: + attributes: + - header + - tx-types + - rx-filters + - hwtst-provider + - hwtst-flags -- 2.25.1