From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 575A3B67F; Sun, 7 Jul 2024 08:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720340656; cv=none; b=nMqbReTsJyfF5HlF0rBDJr7snc0PmXgsvu/0vw9SoM124cfagCaRQOEsDYyoSDw93cozguQTVeibfpamgnBVBHGWBcn/jzz2aam187WOCpF8+l160DWYeG7KKveARugUxkHCXLzneCFYfMS9qejhUyumfGrUvAzzFeFrK17/Urc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720340656; c=relaxed/simple; bh=LXMrQ3C7YtlFtAjJOecI8T+KbonpE2eQ/2SoojEsjro=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PBpR0ewBFV4CvqtIFA6tfxS76whXjLIsXyIuxsOZWDCsCexKz5s+q6Md8X5cGlk/KyENfSVXPt4ZkAtF+l7urXKzae8GQsDAXYbZIXwER91UU3qlnEkaoeRg0WaN8rHixHQlzMP8uugPaXQoYCT+NUKKBw6QMjk8akhDy4CseVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q0tlN9Rv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q0tlN9Rv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD89EC3277B; Sun, 7 Jul 2024 08:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720340655; bh=LXMrQ3C7YtlFtAjJOecI8T+KbonpE2eQ/2SoojEsjro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q0tlN9RvsrAdNKblfVOHB5mvrUOCxtJdjHDmMBc1VUHoUioVpDG+3c5alUV+PoD38 Z8/7UP/u9bMSlLgyaeTfLk11h/z7y5riZMCMzSRH1Pn3K2vjhCv17ldAU4Qzd8N5ba IwwBfT0i/pjP9zRJrQ5mSAQawIDoXx7FjOELalKNS51o2gWe0jGZ2ZpGoog/FE4ceU J6Pwc0WFEBLZnygXN0Pn2sqkhnT9cf1DIAZmtYkgBvoHB0VW5XGtX6iWZ7mj7HGIVg gWQqLrlMaP2Sj0j9/RMLzC9AaM53wqRcFlqXxwRh23Uss8dFURUkdoTg++aUopEGXX nIo4sRzbdw0Qg== Date: Sun, 7 Jul 2024 09:24:08 +0100 From: Simon Horman To: Kory Maincent Cc: 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, Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu Subject: Re: [PATCH net-next v16 13/14] net: ethtool: Add support for tsconfig command to get/set hwtstamp config Message-ID: <20240707082408.GF1481495@kernel.org> References: <20240705-feature_ptp_netnext-v16-0-5d7153914052@bootlin.com> <20240705-feature_ptp_netnext-v16-13-5d7153914052@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240705-feature_ptp_netnext-v16-13-5d7153914052@bootlin.com> On Fri, Jul 05, 2024 at 05:03:14PM +0200, Kory Maincent wrote: > Introduce support for ETHTOOL_MSG_TSCONFIG_GET/SET ethtool netlink socket > to read and configure hwtstamp configuration of a PHC provider. Note that > simultaneous hwtstamp isn't supported; configuring a new one disables the > previous setting. > > Signed-off-by: Kory Maincent > --- > > Changes in v16: > - Add a new patch to separate tsinfo into a new tsconfig command to get > and set the hwtstamp config. > --- > Documentation/networking/timestamping.rst | 33 +-- > include/uapi/linux/ethtool_netlink.h | 18 ++ > net/ethtool/Makefile | 3 +- > net/ethtool/netlink.c | 20 ++ > net/ethtool/netlink.h | 3 + > net/ethtool/tsconfig.c | 347 ++++++++++++++++++++++++++++++ > 6 files changed, 411 insertions(+), 13 deletions(-) > > diff --git a/Documentation/networking/timestamping.rst b/Documentation/networking/timestamping.rst > index 5e93cd71f99f..8b864ae33297 100644 > --- a/Documentation/networking/timestamping.rst > +++ b/Documentation/networking/timestamping.rst > @@ -493,8 +493,8 @@ implicitly defined. ts[0] holds a software timestamp if set, ts[1] > is again deprecated and ts[2] holds a hardware timestamp if set. > > > -3. Hardware Timestamping configuration: SIOCSHWTSTAMP and SIOCGHWTSTAMP > -======================================================================= > +3. Hardware Timestamping configuration: ETHTOOL_MSG_TSCONFIG_SET/GET > +================================================================== nit: make htmldocs flags that this title underline is too short ...