Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4894400rdh; Wed, 29 Nov 2023 14:01:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2WxJ8HLfX5pAqpXlhH/st9qvvyZt8RGzzALy0GEJyPkQRoZHjHvIrwkCNn+SNonYU2fFE X-Received: by 2002:a54:440e:0:b0:3b8:45a3:917c with SMTP id k14-20020a54440e000000b003b845a3917cmr21609158oiw.23.1701295285122; Wed, 29 Nov 2023 14:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701295285; cv=none; d=google.com; s=arc-20160816; b=NyA/PmzCmEFroOk2/DkoZCr6mwuFQupWFYzYIPCDK0fAZu8nFhmW7Zoi1v6g11pSM2 pBYMOntmZe2vOE4HhYgskIoha+811NQ0hykGbw4SneiMiiNEYDXoH47t3Wb97P3AGRz7 G3E721arfnYJeTDNzyt6qLk3xZd9ca8FRnBIXlP2KTRkD4hgO5gVk1hp6qUtNoxRtsWJ 55NY0+m+lHZPlLEnXqSMhiuFzK+yL/AfNPlT8EmY/L7voKHljJRkPN15P/RohVsGn3kn z78GeppNpxQbecvwxVUxfitDxARzEXjiRBt7Ysy7LD8G2LehLX+z7MmTFeLSK0uP2w8H Ob1g== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=JNjLQPYU0Y0cmtZZUI0sl+DvPdmEpXuqt+dY1EeZ7k8=; fh=HACJxHMRePd2FPNe/4s2UNMP+0OMsURbNViow8k5ZFI=; b=A6ey4unHK24DEuDdrMz1F/DYsIdp37m7PJ2hEJT46ZOW54ufg7fOBb6L26WZcbT0Tj 1MprI5d8s4InCGaoCNWG4adErI0rXhU9A2w4LrMmHTKwU+ssNa/pUWHrTQZv5dkFbZOS IyFN7DCZpJ4/JlKZV3ImH9ZSdGDLSbfbmhNu2aDlbw6jJs5UjJjN0vhEEnMedvAKRjzQ yhEJWH1ALozWSIlWzlcQdmeg6x6AgQBIJLxF0cxf9mKxA+Vg4NRia63Wc4JfX/dCtDy+ evtcF8bjfyWhh5eJsksp9yTCT/+g45KbHCboqadijPQaxq40D98TWSzWW2fl4RI5VLkT EBow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Xwl0hT+Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e17-20020a056808149100b003af867236fcsi3493907oiw.8.2023.11.29.14.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 14:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Xwl0hT+Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 DC61C804C622; Wed, 29 Nov 2023 14:00:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjK2WAg (ORCPT + 99 others); Wed, 29 Nov 2023 17:00:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjK2WAf (ORCPT ); Wed, 29 Nov 2023 17:00:35 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 419C7C1; Wed, 29 Nov 2023 14:00:40 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id F05AFFF809; Wed, 29 Nov 2023 22:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701295239; 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=JNjLQPYU0Y0cmtZZUI0sl+DvPdmEpXuqt+dY1EeZ7k8=; b=Xwl0hT+Zp0aePF+NZGO+bwf3NrCp914pDUFQyo3fz5tB50UMSRBPWfkQ6HFrwMgDBeYFPk e3mveqQNL9444KwCqPPTLxlxuzxWDl0x2CJXBSRNe6A44Fa9x+vZRcPDJOtC2JakC4pgeS NCl+Wr7jp8Lyy4Lb7nLcOKzrRws9+CTcbKEjREYwfgkEFIF/JwavN+zYCjTRNgKnxUjn3+ cPMfz8JhuQX9uDbARsc3OzsIsZ1ux04Z4xfgaTPClHYUAXhT1Tvh8QIRxeHbbuaC78iph8 vl9urFj+N/wWOtmp2wcuJuvmDdp4arPKsPlGvIfrgFxm8IZwkYGjBKh1s7jT/g== Date: Wed, 29 Nov 2023 23:00:34 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Vladimir Oltean Cc: Jakub Kicinski , Andrew Lunn , Florian Fainelli , Broadcom internal kernel review list , 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: <20231129230034.7301d8b2@kmaincent-XPS-13-7390> In-Reply-To: <20231129203700.ckpkc4r5bwwudwpf@skbuf> References: <20231120121440.3274d44c@kmaincent-XPS-13-7390> <20231120120601.ondrhbkqpnaozl2q@skbuf> <20231120144929.3375317e@kmaincent-XPS-13-7390> <20231120142316.d2emoaqeej2pg4s3@skbuf> <20231120093723.4d88fb2a@kernel.org> <157c68b0-687e-4333-9d59-fad3f5032345@lunn.ch> <20231120105148.064dc4bd@kernel.org> <20231120195858.wpaymolv6ws4hntp@skbuf> <20231120134551.30d0306c@kernel.org> <20231129210959.19e1e2b7@kmaincent-XPS-13-7390> <20231129203700.ckpkc4r5bwwudwpf@skbuf> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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]); Wed, 29 Nov 2023 14:00:51 -0800 (PST) On Wed, 29 Nov 2023 22:37:00 +0200 Vladimir Oltean wrote: > On Wed, Nov 29, 2023 at 09:09:59PM +0100, K=C3=B6ry Maincent wrote: > > On Mon, 20 Nov 2023 13:45:51 -0800 > > Jakub Kicinski wrote: > > > Sounds reasonable. Having more attributes than just PHC index works. > > > Given the lack of distinction between MAC and PHY for integrated NICs > > > I'd lean towards ditching the "layers" completely and exposing=20 > > > an "approximate" vs "precise" boolean. Approximate being the DMA point > > > for NICs, but more generically a point that is separated from the wire > > > by buffering or other variable length delay. Precise =3D=3D IEEE 1588 > > > quality. =20 > >=20 > > Hello Jakub, just wondering. > > I can add this hwtstamp provider qualifier in the next series version b= ut it > > won't be used as it is set and used at the driver level and no driver is > > using it for now. It would not be accepted if I use something that is n= ot > > used, right? Do you still think I should add this in v8? =20 >=20 > Not sure why you say "not used", though. Are you not planning to expose > the qualifier as an attribute to the listing of hwtstamp providers > offered to user space by ETHTOOL_MSG_TSINFO_GET? Yes I will, I was just saying that all the PHC would be set as precise for = now. Approximate timestamp quality won't be used because IIUC there are no NIC d= river supporting it yet. > Personally, I worry that if the qualifier gets added later (not now) to > the UAPI, we will end up having user space software (written now) that > iterates through the provider listing thinking that there may only ever > be one provider offered by one PHC, and will stop at the first such > provider found, whichever that may be. >=20 > With the added qualifier, there's a higher chance that user space > searches will be for a {phc, qualifier} pair (even if there will only be > 1 possible qualifier type), and the future addition of a new hwtstamp > provider will keep existing software working in the same way as before, > i.e. user space won't select the DMA provider by mistake, by ignoring > the qualifier attribute altogether. >=20 > Generally I'm against adding things upfront that can only be in a certain > way, but in this case I believe that it is necessary in order for the > future extensions that were discussed to be possible. The qualifier is > part of the user space search key and thus pretty important. >=20 > My 2 cents, Jakub can absolutely disagree. Alright, this seems relevant. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com