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 3B3164B5AD; Wed, 22 Nov 2023 16:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KR4e4C+o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DC1BC433C8; Wed, 22 Nov 2023 16:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700672101; bh=/HIV4nv7BwN/w2cy+QdtiFk+dKAvRZKKzDdyVmdvCTU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KR4e4C+osYMJhRZdNk+Z3tKtx/ELNllIcM5ctQ9iaKO/6UFJbizuxnjIiS2OOIIag H0G7j6JiBnn0YVPusnWuQpsYzxS7GXtTXiZ/eLmYWiCO5gvsmuxh8C0rPn9DQTTnqI thM63BtDn5Br5fHgqgFW0LtSOpSXNEGUV6/Iedzgumz8b9Lvksq8qM1nGp8QSTrkNa RntTFRZDf+9oG7HpE/SHRdxc/dI4lJfqd5ZGg/LSA7osksz1MiHtnGPbHsm4Y1ORKV LrOpnjkDbTvuM1lMh+rO9OBlFR2dXpkpAecUBmmyBogBNsDom/dhIw8KoXbCkM9ia6 fcci4vBjOdv8w== Date: Wed, 22 Nov 2023 08:54:59 -0800 From: Jakub Kicinski To: Vladimir Oltean Cc: =?UTF-8?B?S8O2cnk=?= Maincent , Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , 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 , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier Subject: Re: [PATCH net-next v7 15/16] net: ethtool: ts: Let the active time stamping layer be selectable Message-ID: <20231122085459.1601141e@kernel.org> In-Reply-To: <20231122143618.cqyb45po7bon2xzg@skbuf> References: <20231120093723.4d88fb2a@kernel.org> <20231120190023.ymog4yb2hcydhmua@skbuf> <20231120115839.74ee5492@kernel.org> <20231120211759.j5uvijsrgt2jqtwx@skbuf> <20231120133737.70dde657@kernel.org> <20231120220549.cvsz2ni3wj7mcukh@skbuf> <20231121183114.727fb6d7@kmaincent-XPS-13-7390> <20231121094354.635ee8cd@kernel.org> <20231122144453.5eb0382f@kmaincent-XPS-13-7390> <20231122140850.li2mvf6tpo3f2fhh@skbuf> <20231122143618.cqyb45po7bon2xzg@skbuf> 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-Transfer-Encoding: 7bit On Wed, 22 Nov 2023 16:36:18 +0200 Vladimir Oltean wrote: > @Jakub, for your long-term "MAC timestamps for PTP, DMA for everything else". > How do you see this? I guess we need some sort of priority function in > the UAPI between hwtstamp providers. > > And even with that, I think the enums that we currently have for filters > are not specific enough. The most we could expose is: > > MAC provider DMA provider > > hwtstamp_rx_filters HWTSTAMP_FILTER_PTP_V2_EVENT HWTSTAMP_FILTER_ALL > tx_type HWTSTAMP_TX_ON HWTSTAMP_TX_ON > > but it isn't clear: for PTP, does the DMA provider give you an RX > timestamp too? If we phrase it as "precise / approximate" rather than "MAC / DMA" - it seems fairly intuitive to give the best timestamp available for a given packet, no? > What about a TX timestamp? I was thinking - socket flag to make packets for a given socket request precise timestamps.