Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp852582lqm; Wed, 1 May 2024 19:10:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiEcGbQb6MWoa+pidh7B90P7hWW2WbjH7QlJksUsFbStNQbQXu7iekrib36pEgVMxjGyvn5Wqj7RFCdzxteJjfL58H0HJMMbRcGtM+Yw== X-Google-Smtp-Source: AGHT+IF0u8eArWxS7u5c8rBX0Ym7ekXkj81GY8KwswioGinSsmMEGJbNLnRSo+S3Jpk9kZoeF1Y8 X-Received: by 2002:aa7:88d6:0:b0:6ea:b69a:7c78 with SMTP id k22-20020aa788d6000000b006eab69a7c78mr976898pff.14.1714615828449; Wed, 01 May 2024 19:10:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714615828; cv=pass; d=google.com; s=arc-20160816; b=IJRyDoys0tbPew8VLWBM4K/H3CBF4ZyJiPyRq0HKn9jYLbP8Yc7HoupcoUAoUSacA2 oaN6pGYHIz8X+Ud8VrW2bjFEQw/ihTFP9V6wxQH6ePPaBDfIoR0H40oHmXyEUj8/m9BG MpPHnYVeb+RxVNY87XlcUYo8Ox3sCal2jphq4K+Z+98cPf7NuzTKlal/qRCQai7G46lR 8kPtI8qzFyjH9gFdhxJCpHh9mpULbDTUyv9VCOE0xhZ2jD4Lnq7koM1TU2V9yQZB5frH 1+D4ZQdS1TuCdaibOAudNOpK6lLJJI+IdNnhbXRkXOz083dbW9XQbpOivTBLQtyclgtC nYeQ== 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=mW20QYS2ARguo/2mMGOC8TM5dZVfnEaeYrcbfzh6WHs=; fh=AF8u3Hq2LCAR86VDBUa9qi/2kjQJaPvHiqWvnKg4Z08=; b=VpqYFnI5AMx9V85TdYF+PsSVl4af/w8rXVvNRwlCfCYkYgOGwhfy+h7Oo0w/A/pEK2 GtPlEAbH6rLwCRPB1IIjtun5J2jjGxN8G6h1zWOapeSnT0VKpI1dI5KtcEn682yveZPF dWTgCmkeuKudWhUY9wzUwUO0MYBZpP+ioq7SfOlEuhrw+NZdlVwvgQJ7ysPNp9w+NQDr Zw8r/tQrCzdEkCVtP4zlAPPIfgy8ulWFhfH/uH+vSeCdtJGEaOI5vg8GzgH+uDq/FbYM j+aPUms4WThgH39/ipdNoThZbDcJHY7isn/gvtLJhRm7hYp4B6eau+uwhvMPCSgLKvrW k1RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fEwDVHr4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s13-20020a056a00194d00b006e558b4e179si105567pfk.235.2024.05.01.19.10.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 19:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fEwDVHr4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165913-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 198BC2841CA for ; Thu, 2 May 2024 02:10:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2130D17BAB; Thu, 2 May 2024 02:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fEwDVHr4" 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 3C6DC10A24; Thu, 2 May 2024 02:10:18 +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=1714615819; cv=none; b=BZZnDqNkkfjYbbc7xZBfqTyF3ciQSUwyzDsL9DVMZnP5irNTNV4nNaIDDuGuQsPOv3rUko9tdaz+v5YoUwEQOjJ/0NZcnTaHBr4Uhc5GsK1ArLHPxVOYTgBh4/EvC84bwHlfNSBqh95Ifi0mhQ03GyCLs6dY1SnEI28MauCf1c0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714615819; c=relaxed/simple; bh=UwkbNJ/LhEqQDshzKbZr9srvN+VwiPAypEJ5b7aSen0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Orf9YucxefwtnJeOJxkxHBHj7GUAZ1KhDpmOmh62LAKbuOYwyQp1+BT9ROER6qqr51mxHVXLX60CQ3QdMrjGEUKjqAfOZ1CToO/gjeCo2pt7fiMcq/pXxBC9McfwUpxeelCRS+sTDfeiIKTF9EbVFWbr57sOQ+ggoTVC13ccOwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fEwDVHr4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A0FFC072AA; Thu, 2 May 2024 02:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714615818; bh=UwkbNJ/LhEqQDshzKbZr9srvN+VwiPAypEJ5b7aSen0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fEwDVHr4+Ss+Eh04xyBCaN8FBaK72OHECX0VAB9ibAy8X3pmCSx8ak9Xxf2qZy1nW Yh5wtqCh4h8DSUD8wr4I+l90PHvY8VLVOzAEsgzTbmqiX0/pCfTLK/pSOT/13aHIen NHRSQMnDSGzaseIyCd6EY266KB+ziaYK5JN0lPCqgyBfVtfEKoeF/EhsAj3au3IbVy rEStbASdHIy5Ptm6jxJXiF4JIN6kmHI2SQHUDmPxGMZgbWPAWXeWahnsD4WMgNfpHr iX8si+GSgLfPxRR9GUKWR9GWYLcIK3MQuMXh8+9IB/IaP29iu81CoVlVkiwA+Bly2x oTvPnQKJBEj0A== Date: Wed, 1 May 2024 19:10:16 -0700 From: Jakub Kicinski To: Kory 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 v12 09/13] net: Add the possibility to support a selected hwtstamp in netdevice Message-ID: <20240501191016.52b5c92f@kernel.org> In-Reply-To: <20240430-feature_ptp_netnext-v12-9-2c5f24b6a914@bootlin.com> References: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@bootlin.com> <20240430-feature_ptp_netnext-v12-9-2c5f24b6a914@bootlin.com> 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=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 30 Apr 2024 17:49:52 +0200 Kory Maincent wrote: > static inline void hwtstamp_config_to_kernel(struct kernel_hwtstamp_config *kernel_cfg, > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index f0e4572cdad5..f6333b8a630d 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -46,6 +46,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -2026,6 +2027,8 @@ enum netdev_reg_state { > * @dpll_pin: Pointer to the SyncE source pin of a DPLL subsystem, > * where the clock is recovered. > * > + * @hwtstamp: Tracks which PTP performs hardware packet time stamping. > + * > * FIXME: cleanup struct net_device such that network protocol info > * moves out. > */ > @@ -2400,6 +2403,8 @@ struct net_device { > /** @page_pools: page pools created for this netdevice */ > struct hlist_head page_pools; > #endif > + > + struct hwtstamp_provider *hwtstamp; > }; > #define to_net_dev(d) container_of(d, struct net_device, dev) Please avoid adding includes to netdevice.h. IDK if you have more dependencies in later patches but for a pointer member you don't even need a forward declaration, let alone include.