Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4840823rdh; Wed, 29 Nov 2023 12:10:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFno7PbBxj1wNI8mYSZjae1seyL20PvHDvQKiernwhEqlk5jHN5KgR2VK0V6uxHz6QPkBrl X-Received: by 2002:a05:6e02:17cf:b0:35d:1ea0:f25a with SMTP id z15-20020a056e0217cf00b0035d1ea0f25amr7094625ilu.31.1701288628159; Wed, 29 Nov 2023 12:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701288628; cv=none; d=google.com; s=arc-20160816; b=ftR1oEXwBGdxU4XK1UgcGIK8b3lDBz+Wa0h6mOiUhfMfp9AiCRaLUL6Cb9Yt9/ovmS PEqJAc2P8TSsaaOmgSMhhwfvDSxMdri8ci7a1Ms8ShYMMKzr/bM2eXs0fne9oO2NPHJ6 0v4xk+5YYfZdv8izZkZkwdlOZrI4plp9dubGiQG9+eLRQkb0VOX5pGE326qbECuF+fNd slVNUXgsctm4042blaYanP9GTFEWCd2ovNB+6x8VfI6Fbv/DvvMtWK6SExmnUSdpD5+V WhoJQbQ0BHjQ828sS3lT8cMuMf6J6oh7nF8wrf5/EKK4SvM30ro0uaKMqJQxEMGLODhG /t1g== 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=zgC5dpTfYgWKVDzyM3hqpBbueVl62650K6Ip1o3x970=; fh=4VKJ1J3hpDhauPzzmtyLpGwv9VoWwJTC9aA1CyU6g8o=; b=atzBynycMcsTdsFTOrxlyl9VR9/Tm8/COshv2PB/f5jGwL/3pWr2zZZkmGVyJCcBRT bKUDPB/TMuXG5TZ9DcKLG7Zpm6bl3RHgbvnb9xsUvDUfuySzEMFn0ySStYjCzZlg6PH6 uJ/NgMWLJYVh/zkyYC6yfLfJVrCRw8HWBfXxHgJJjVSPylNpAlY7RRTScRp/PtVIJkId ecCUR+/yONcPMsPnhiU6sbZ32Pw10rbsWOBXyoM0X+XNjnxYK4uTYsTCaDyx11unkVHN PqOqvArsYX2GmxqfJ6Pmgt7cyQLhgUgC8Sv1ghT0196mp7mLzN0OHU5Nu0dtjlko6wzJ SJzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HehMCBn4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h13-20020a63530d000000b005c1b2d279f3si14983684pgb.342.2023.11.29.12.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 12:10:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HehMCBn4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id D3366804883B; Wed, 29 Nov 2023 12:10:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233548AbjK2UKC (ORCPT + 99 others); Wed, 29 Nov 2023 15:10:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjK2UKA (ORCPT ); Wed, 29 Nov 2023 15:10:00 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7765AD67; Wed, 29 Nov 2023 12:10:05 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A64A320002; Wed, 29 Nov 2023 20:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701288603; 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=zgC5dpTfYgWKVDzyM3hqpBbueVl62650K6Ip1o3x970=; b=HehMCBn4xGNBo1aP0K6yRMQV81PbEcGfN/2qgpw7YOXEkU68jK0yqBNT+sVC7xC73Rn8j5 Z9563tmOQVPae1xffEyes0GBGlXrluP/z1PQbNujRXDDFuOSM5PLB9AZ4pnTb4KFHVRVgr jqw50hfjBA2th4CEwwrBWa01Y2Tw8+4UNo6cDOOyuiZgBVv9AWneHbKHcgnEIXFaRgvBIQ h+t4yz6wCA3+zh13v+tbvW7G8WruDenxo/iX0f7MoJlpFf05y+gh4YRjR52qH6M/rNiidG r8PbdpcmWTYDT5Or94xlOsPhyMUICW3Dy2XAi40fJWZ7G2VXL7VQCCanTYun1A== Date: Wed, 29 Nov 2023 21:09:59 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski Cc: Vladimir Oltean , 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: <20231129210959.19e1e2b7@kmaincent-XPS-13-7390> In-Reply-To: <20231120134551.30d0306c@kernel.org> References: <20231118183433.30ca1d1a@kernel.org> <20231120104439.15bfdd09@kmaincent-XPS-13-7390> <20231120105255.cgbart5amkg4efaz@skbuf> <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> 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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 12:10:24 -0800 (PST) On Mon, 20 Nov 2023 13:45:51 -0800 Jakub Kicinski wrote: > On Mon, 20 Nov 2023 21:58:58 +0200 Vladimir Oltean wrote: > > I'm still waiting for you to fully clarify the "per socket vs global" > > aspect, but independently of that, at least I understand why this is a > > counter-argument to my proposal. I need to tune it a bit (ASSUMING that > > we want DMA timestamps to "look like" hwtimestamps, and not like their > > own thing, to user space), because the PHC index would no longer fully > > identify a hwtstamp provider, so we need something more. > >=20 > > I imagine both ETHTOOL_MSG_TSINFO_GET and ETHTOOL_MSG_TSINFO_SET to > > support a new (nest) nlattr called ETHTOOL_A_TSINFO_HWSTAMP_PROVIDER. > >=20 > > This would contain (u32) ETHTOOL_A_TSINFO_HWSTAMP_PROVIDER_PHC_INDEX > > and (u32) ETHTOOL_A_TSINFO_HWSTAMP_PROVIDER_QUALIFIER. It could be > > extensible in the future, but this is the baseline and forms the key. > >=20 > > The latter takes values from an: > >=20 > > enum ethtool_hwstamp_provider_qualifier { > > ETHTOOL_HWSTAMP_PROVIDER_QUALIFIER_MAC, > > ETHTOOL_HWSTAMP_PROVIDER_QUALIFIER_PHY, > > ETHTOOL_HWSTAMP_PROVIDER_QUALIFIER_DMA, > > }; =20 >=20 > 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. Hello Jakub, just wondering. I can add this hwtstamp provider qualifier in the next series version but it won't be used as it is set and used at the driver level and no driver is us= ing it for now. It would not be accepted if I use something that is not used, r= ight? Do you still think I should add this in v8? Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com