Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp605872lqs; Tue, 5 Mar 2024 10:45:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5t8q9YTpgPfjS+pk09PcG9gjbeRQqWuH+ffGLfE278RJTLE4/w/++uMgPbyTG8rxhOkTvqM+JK3/5/vASVrG9GOIeJZ6weBlm4mfwWg== X-Google-Smtp-Source: AGHT+IGO8ymQdaBBjpusJI6graxFdBBEfgy2O6ytlBVDQDhvK4Q1T5b6b155bHzDALElNDK0xwD2 X-Received: by 2002:a05:6a00:1821:b0:6e4:908c:613b with SMTP id y33-20020a056a00182100b006e4908c613bmr4660399pfa.8.1709664355648; Tue, 05 Mar 2024 10:45:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709664355; cv=pass; d=google.com; s=arc-20160816; b=nX9xVa7Q+7odx2MLyX+NWh5+qdoQ6KbT25CTPsEzFq0ZwMCD4jnN0+Vd4ygdafWyW4 tu21iYLmHk/9nBLkxFM0p4MU/ebU41imka8eki811QDtkUZ+fu00FJiIb1Z6AEY2s8ij 5CoCBld+xzzxm5sRLOaXi6HLvPkm7On0EpiZUjHHorRDIq7c+C0UdytCs10bokYFjKkJ 4w6x1Ifp0QSEpF5KIO//C0nkbPH+lAj6hZnBWL8zW1XhNH5/0q8BwHA1PiojdwMjeqI2 U/XcYrmbl58gg9ahg1rs/8LDYWgsUXKR/TpebUsKLiYdATilXoXWQlxSYxe9EnR4GxDm dRDA== 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=FycTN0uNqmyqLU7tGuHdp5UvAGNtmGUCZeEdZPILWi4=; fh=OjYomBzSJYKdQ8L4UhWFb+qH2yaTh6uN5Jk7JGZivU8=; b=oFhtHfUCIUrQL3PVCL4oFcQfzvDagAK6mqV7hJOxCRukt8TUNgA8ZHzlyo7D5icxeC 4iEwmNj4j2NbjrWLSTkbGdEde9DuaNicTYUuMWS817zrURahoMnqFF3ZJAtjm/NA5+LI uL7jkvicvqgDmPnt7dweUgh2THR0QuVJo4MKjWEsFmfmVNflZ0gYeTw3yPkyycL3phXn d2Q7LUb4KdYmH1VfhWtidfzlXjO5xNGwciW+rx+lfW+jVFiC9kKTfJTqjjVN2IlxEjda RZdDjOQqIq/e5RC7ZvSNBtxSzHtrXcLRDCLMETMgFvxrYd0eYz2+lWWE8Hx/zKz/g6SO OUAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uD+rzhRB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92807-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i14-20020a639d0e000000b005d8e379746fsi10069850pgd.469.2024.03.05.10.45.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 10:45:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uD+rzhRB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92807-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 E17FFB287A2 for ; Tue, 5 Mar 2024 18:05:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5173D1B974; Tue, 5 Mar 2024 18:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uD+rzhRB" 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 6EAB91B950; Tue, 5 Mar 2024 18:04:29 +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=1709661869; cv=none; b=eSDWaP1uZWbZ5SxhDTqAGbWMqA1P+7rccGLg8XWPdXcTwEJHOlH4UJ6CgF2FdqZHKgUOU25+S8NVVwT9rTTDQa/jwty1SDw7ADtAnvgASTEEIjfTNItgwMzfk1pMJRVt1Hae8AmsgceWxpYvLqW1AKhQO7Q3AfOR6w3DRgojGxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709661869; c=relaxed/simple; bh=8uBoflw7ylg6FwA/YZf/wgGJPgmGBD3bhaSObnhOsRs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BdgfTVdOEUfFRZa+TbZ2Djj57YEExrN6nTitEHJgFOFLBN6KhDxTTLgcXE9g0VPvIWEQ8bIpy0YFHLwRD98aficC+Yh6pS1RvStZ41ztqm+1L0thXf6q7kc23ym9jkubpQnrlKm8phpVb6qr+Drve/2F7w7uuESjZsDcwT9vb5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uD+rzhRB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4968C43390; Tue, 5 Mar 2024 18:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709661868; bh=8uBoflw7ylg6FwA/YZf/wgGJPgmGBD3bhaSObnhOsRs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uD+rzhRBR3WZRsGzIXZIPVQJnZzb6q6XALgHCnBmj2DvCfYQ7F4ewgG+YPHXxa/4u totVJc0mw9s8mQ6IpuaOyDciwZepaRg/MA1/KS75QfS9CZJcUSwJ70F6Aym4aoQW5h twn9tWsAX4FAga0kos0DAOwEtFc9TKbt+yWrhLzWAfaanQyt0teTLRIH3iTnYNNBTW ACoqVwWGYVxm0cw2ioVWkzSLGsh5X7GVXkmoJHO8DWQYGhvR8+/JRXl9jCzS/8NUWo d1aUreWkh8Mr1GEqeN+dsXGkiAOT2i8tE8Xbg1wYk7/wvy+lY9xZioq4zKQvPlfNuU b8FSYVWR4To/Q== Date: Tue, 5 Mar 2024 10:04:26 -0800 From: Jakub Kicinski To: =?UTF-8?B?S8O2cnk=?= Maincent Cc: 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 , 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 12/13] net: ethtool: tsinfo: Add support for hwtstamp provider and get/set hwtstamp config Message-ID: <20240305100426.5ed724f3@kernel.org> In-Reply-To: <20240305175253.764f041a@kmaincent-XPS-13-7390> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-12-455611549f21@bootlin.com> <20240304192733.1e8e08cc@kernel.org> <20240305175253.764f041a@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 17:52:53 +0100 K=C3=B6ry Maincent wrote: > > > + /* Does the hwtstamp supported in the netdev topology */ > > > + if (mod) { > > > + hwtstamp.ptp =3D ptp_clock_get_by_index(phc_index); =20 > >=20 > > This just returns a pointer without any refcounting, right? > > What guarantees the ptp object doesn't disappear? =20 >=20 > Could the ptp object disappears within rtnlock? I believe so, yes. > Maybe I should add refcounting.