Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp40899rdd; Wed, 22 Nov 2023 08:56:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IH86Ns/zlKh8RKia6QTPNidCgBuknVGkjLsV4f+bnfTy9cxAtwCeztPvZEFu1ZNpOByCj8x X-Received: by 2002:a17:90b:4d8b:b0:27f:f9e5:b8d6 with SMTP id oj11-20020a17090b4d8b00b0027ff9e5b8d6mr3199978pjb.41.1700672186110; Wed, 22 Nov 2023 08:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700672186; cv=none; d=google.com; s=arc-20160816; b=Nldvz/zkqLRwdWlylySUCdQvftIZ5trA0Cs3jt4Bhyt88yVCbBPWltsYUEiAdxqaK9 jFjyRtQqxtHF4kat6bYwMqptSRbjiK5O0w3KyH6+PHz9Ts9LwC/RJsTyb6uCHEwprjOV /kfednIH5LxSpXVqbJUL6ttWmcml16WXw9mqIo1n4/oPOUtdmQdYGUEoWhJkqmajfkzn WZLI834Nl5SSVKJ9NLV94LgSwruKVqIVgxvidfRwAt9LKr+IeYFM3HXZjdYrr5oXZi06 VLvDoLgMQCSh7rlDmaZ3THMOG+CsvCB6R/Tj4Jx3fOf+EOsd0cFFgv3A1Ald6azKEH1l WB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=t+iM7ecGlKQchlnHoi9w8T7jJjqipa1mFWMarEf5aEs=; fh=R5kBmJySSBdAH4m2RtTvd5gBSup+rk9XN+LvkgmMOaw=; b=hr0HLXbqbsV5/wk300caWR/pF49zFPlNRX/hfDA0jFzfeK7oQDSlbGtxP7h5QsaucB Q8WnM8WcuvDSzicQ7hsdf4uBY1psPgtXDOv979Z8EvNNmuvEQSBqhokFFCEF5eTqmxFP qi+RPUlrYvboq9IBmilLO8xBlpRo89ng1pcakIgOvfSd8bAf7r2fmarBqFIDO6lekaSn YTvJgDHYutqXuhfPa3pUSVpF9YH/mi0QTCqgoA/FaDZH1KmnDKOGX3zYBNhKY8AiMaNq Hwiei3p3f9hQT55uKgnariEpnvZahUoardlsIpR2XpewbLEwbrwx3aGFv7BCaPUQW9bq WF3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KR4e4C+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q6-20020a17090a750600b002850fcb1197si17620pjk.14.2023.11.22.08.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 08:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KR4e4C+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1E6D9807070C; Wed, 22 Nov 2023 08:55:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231357AbjKVQzG (ORCPT + 99 others); Wed, 22 Nov 2023 11:55:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjKVQzF (ORCPT ); Wed, 22 Nov 2023 11:55:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1973711F for ; Wed, 22 Nov 2023 08:55:02 -0800 (PST) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 08:55:20 -0800 (PST) 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.