Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp541251lqs; Tue, 5 Mar 2024 09:02:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4hQ0U9X1ELGSTdhAeJ9SAGSXKyynlMW96o/3hpB6oVx9FF/2v3LgWI49HST/ad0bhyjjVuQQMAP4LsYv7Sfo8YPx1SDd4UBKcwk3tlw== X-Google-Smtp-Source: AGHT+IEQ9KGxsxqfjjis9ZVsPNGnT8PyTBGEU49eV+VAnnMhu3FWEXVjXuHN5fERNB1OQiGOtIEb X-Received: by 2002:a17:90a:7142:b0:299:6b93:9d94 with SMTP id g2-20020a17090a714200b002996b939d94mr9119797pjs.25.1709658155939; Tue, 05 Mar 2024 09:02:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709658155; cv=pass; d=google.com; s=arc-20160816; b=JX49TRF213atjaLjw6qXjPby3++t+cCvDg/Gnt+GAJfTPdYTCtaE8ncDhG9KfYCR2f r5Ulhe3rAm5R9uJ88OMu+PFtjF4GrPzlknyon0UGWcRqlBv5QV91KssH2ziuPHoYLIu1 prkVLfsOAM0QlEepi1LnfgQhhcggGaDtPvdDKjz9PdlGBAKqw0oHRbbMabkZ3QvJO+Gl 8CkVzIqDFN8rC/xzCPMtAZNuBp4X+2TDbEcwiRcMujQcLopwzzoAgMB18apTJ2Ur4TM5 XhzpO3MXl0rV690rtpvFnJdlue3eEEadA4oQSIzeCb7x8OXMyQoJ6cX71V6VWZsFO34m /wbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=7vgMXiC1hDBo2W+mPCaSNE01HYivT5LVBqveRukvTZk=; fh=AJv+QdYTP4GhJFsAJK1I1XCCdE42867i76yF5KhIV6s=; b=FeQBTjBsC3hwmy6UppNDqhe5A0epGpGSbywE+7ggnohpP7go6U/OhtyudBjX0XomDt 3euDeo6RAhYySZbaJMmKhB7zMEXIDuKXQIgitQhi+matXw1ayWIW8ql6/FC7admiY1mR xx6xThgbTeKI27yDxe2bM9+O7VeLUaSt/a8cqcYxJnUMOFcR762L1isH6KbbgT3+aamj jAkQ8d19PDMs/a6qiYXcBEU0vBGwQ/gz2RpNMZUnXMYLSB8ebVc0gu/4in2hDJ+SMKQy yvrZiDzV3WHFn3pXuf5vGJseVyuyT7wv24UFt2o9rqKDNFnl6jv5vA8CJfXAe5M1cXW1 2K2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e+50sRCA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l8-20020a17090a850800b0029935017d7bsi12155130pjn.10.2024.03.05.09.02.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 09:02:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e+50sRCA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2304DB20FDD for ; Tue, 5 Mar 2024 16:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C6E8C157; Tue, 5 Mar 2024 16:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e+50sRCA" 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 59D6F8BF7; Tue, 5 Mar 2024 16:39:40 +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=1709656781; cv=none; b=lAqHptvHMLO3/QrmVpcBh8JYnQU/sP0M5v/Zkb3c/pBI+XOtouInU3JFB4gRlbmUkMG2/jgTTZvZtykknafcYV3RfXRDut5eustL8WcP++dPWEgDHJPUa274IHUxysm9rEvfynPWnr10kGo5A67OZSoxh8T2V4CTeNvEarZ0lKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709656781; c=relaxed/simple; bh=7vgMXiC1hDBo2W+mPCaSNE01HYivT5LVBqveRukvTZk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PvCvnLJx2jGu8PSXs7qdYl5zNgGmY5GF/VGMiDQjR97jOrTRuDmiyTma3FrTA8KtreZ2b48AU0HthXa0W9XB/ou37e0j6nely8B96xGpYz9RKY0oEfTW4+d3DQWjPAqBOVnnDeb5dGvi4Q7kc2XKTaI/tYO4voRuryy9W0eLtlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e+50sRCA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81467C433F1; Tue, 5 Mar 2024 16:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709656780; bh=7vgMXiC1hDBo2W+mPCaSNE01HYivT5LVBqveRukvTZk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=e+50sRCAFYr9qssxAd2CCEJWSD8uQoONX21r70DvAh5vq/CV13lCDJ9kLNl/G08qi FbNe0AyeYDE4BTW6WG1J3ljJh7aOujNuPjGA6nbQRi9vyBA30MnY3m2PLTUTYms4LY gX0EUGQUBevvHchQpSM4v6ruUlfxhd0FXES/YJhbxhzLpmdzel/OCAM3LlzoNE0NaK mw9hp0COR3vTDCfGssJG8fv/Hi2mZNudmwrMzD9eo6FleRcHPbGzlR4ui7BDKYG/vT erQ4EKSrMJNEjVekC356EL2lA1/LJ0ve26ybTMK4pCfZX3V3NJhha2UD7AuNOKpXyn LXSWK5g0EXaOw== Date: Tue, 5 Mar 2024 08:39:38 -0800 From: Jakub Kicinski To: =?UTF-8?B?S8O2cnk=?= Maincent Cc: "Russell King (Oracle)" , Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , "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 , 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 v9 08/13] ptp: Add phc source and helpers to register specific PTP clock or get information Message-ID: <20240305083938.6977335f@kernel.org> In-Reply-To: <20240305163546.3b9f3ed9@kmaincent-XPS-13-7390> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-8-455611549f21@bootlin.com> <20240304185734.5f1a476c@kernel.org> <20240305111021.5c892d5a@kmaincent-XPS-13-7390> <20240305065939.2d419ff2@kernel.org> <20240305163546.3b9f3ed9@kmaincent-XPS-13-7390> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 5 Mar 2024 16:35:46 +0100 K=C3=B6ry Maincent wrote: > > Still, wouldn't it be simpler to store all accessible PTP instances=20 > > in the netdev? =20 >=20 > You are talking about something like the phy topology but for the ptp? >=20 > Then when asking information on a PHC (tsinfo or hwtstamp config) from et= htool > we would have to look at the PHC topology of the netdev. This could work.= Not > sure it is much simpler, do you see other advantages that it could have? I was thinking just an array indexed by enum hwtstamp_source. But you're right, once we can express more than one phy per netdev we're basically back to doing similar walks. Fair.