Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2140770rdb; Mon, 9 Oct 2023 14:10:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQQybZG5HrD664kmJ1T8yRgjDALReqycXYqOa+CtxMDJOQQJZorM/zBThsTlekk2yBNFgl X-Received: by 2002:a17:902:ed54:b0:1c6:845:27c5 with SMTP id y20-20020a170902ed5400b001c6084527c5mr17501256plb.61.1696885803052; Mon, 09 Oct 2023 14:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696885803; cv=none; d=google.com; s=arc-20160816; b=U5VVbw8yt3SRz2yiUYp3c+DzwOR6M+j1P7NymJAxEITDxIH4VbnPhdFQE0YQJuc3Uk SLn2M8JTrnp4wEolNomcyIP6W5kIDY7Q6ZbQpFONNtCvAvBilUdm3PvjJyhaidCO8UyJ 7BNaNWDITDhsg6/Qbe35ivN9PVMUhLdQpb2zJ70PYXh75LwvYiEqzHsqmsV/lme4ImtX MqYwjTGNmVIlSwk9yuOflHe/DNM972tNEJA2Y+7vNFPcCRQSJsuUBI7ZUM1p0vnOFZr7 6PQ4AVxIUV7bDH/9Ypt2tqCAWK88u0uA6vDZm7ap/qZxiUKsVaL1CC6It1P0ouYa+AqX LgxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ouDqE5xqHuiZG4IdJK2v7hAXQoZnKygwFe+kQFd7jI4=; fh=hUBzOvYhukvOC/sbKg3LKCPw7tr1DL9hAv85Ll2pv8c=; b=B2sfWA0JQguADG1boZUO/D24A5I4tidkm4HEz7w5SqbY/H+Y+qOa9vb1gS2HB3UUoB d8alMvvIsTBa2vVvot7KVjesrtZ6OA+y46vO36EJnS8F8EezOGMJbsFKvoXvuoyvQJA3 Im+cOFG21nYTLDZYDqbcFBTa9peGuwDsUfvT1CFzpW7hkQAOS1iImuHz0uP6NfQpP9wq Og+Tk4Pea+b1vgiYvX/yyPAmmqw1blZiWOeGUbhLXpHzIcl8LJ/6KowgpFfX9x7SU3vI W0/n3bJ8hg4TVYs10FnyEJTVkBOyxIJirckIpRMroZ2V2f4nX5hD/BkNBlMcNzxsjCQi yXgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=j6VkUMYi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i8-20020a17090332c800b001c8920e3021si8632187plr.539.2023.10.09.14.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 14:10:03 -0700 (PDT) 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=@gmail.com header.s=20230601 header.b=j6VkUMYi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1D6F381E3BA1; Mon, 9 Oct 2023 14:10:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378652AbjJIVJh (ORCPT + 99 others); Mon, 9 Oct 2023 17:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378168AbjJIVJf (ORCPT ); Mon, 9 Oct 2023 17:09:35 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E0A93; Mon, 9 Oct 2023 14:09:33 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-77432add7caso284567585a.2; Mon, 09 Oct 2023 14:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696885773; x=1697490573; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ouDqE5xqHuiZG4IdJK2v7hAXQoZnKygwFe+kQFd7jI4=; b=j6VkUMYiuqTPFhoxsd8GuPhDp9I2aFWap6fTTFyBqC6xZXzOnCIpzNFJT0nw17j73+ 8QaovckyTY3ba3cPcBnvT67UtY6RK367eXiqUAzBqabJH9xa53ws9MqjbsDQFeH7VXX2 CKVPmFl8Jm2oiaSlz80FM7bppA+q+Wucf9VD0RFXEbnfI6GZf6wEm34A5qYIViM59bq0 TmQ//fwx1GuuA9n3hj2tveu6NuWdis/sC7DKLiWVdd+t/FlORQZgd6IVervZ1rrGboby vDM/WXCUTzwiEoLt0w1SYCls1x0SglesxyeKW5x5Wwnzp6p0Bir3Tt6+whhKVifo2c5R b9Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696885773; x=1697490573; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ouDqE5xqHuiZG4IdJK2v7hAXQoZnKygwFe+kQFd7jI4=; b=bFeOCvx5n4r3D+8JiQvnukQE8/JvWYGQeIyKtHPISlGkL4lvV1ExakdKKZrUHZsgax 5uwfdaHqr2fKMmN4NbZhdRcydMOO2OLmqXkMBG7vGulSWWzXoevGoy7Yj//pLzaq/EjP ZhVqIqHrhSJjSatRsxW3InhzdtKzkBnCl1VBNhVlm4+9+We3OzYRWMIXHZzBRxsHeoHL JWVjNwCEsTKvbasvY7U61JFNTaxwL3Dsf/tgU/UQGi110G5xEcvTudrUKwM7SHvxGX4a /yFk8GQiUyeWXhxo1cucr37GL8xlwY8LeHz+QhnviiOYU8Il8p5QZNDcdEaVyiT4gkFL 2XrA== X-Gm-Message-State: AOJu0Yy+VcigBCqOQ/2AwRfXAmnFybEtHXJlBfPGooLkNoU+yxbjeiPy OhNw5cSvq2xotoeASciXne8= X-Received: by 2002:a05:622a:1495:b0:417:b269:4689 with SMTP id t21-20020a05622a149500b00417b2694689mr17801086qtx.53.1696885772740; Mon, 09 Oct 2023 14:09:32 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id k24-20020ac84758000000b004199f47ccdbsm3956048qtp.51.2023.10.09.14.09.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 14:09:31 -0700 (PDT) Message-ID: <57791a7d-04ce-4d02-815d-7f540ea15b89@gmail.com> Date: Mon, 9 Oct 2023 14:09:29 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 05/16] net: Make dev_set_hwtstamp_phylib accessible Content-Language: en-US To: =?UTF-8?Q?K=C3=B6ry_Maincent?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Thomas Petazzoni , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Horatiu Vultur , UNGLinuxDriver@microchip.com, Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Richard Cochran , Radu Pirea , Willem de Bruijn , Vladimir Oltean , Michael Walle , Jacob Keller , Maxime Chevallier References: <20231009155138.86458-1-kory.maincent@bootlin.com> <20231009155138.86458-6-kory.maincent@bootlin.com> From: Florian Fainelli In-Reply-To: <20231009155138.86458-6-kory.maincent@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Mon, 09 Oct 2023 14:10:00 -0700 (PDT) X-Spam-Level: ** On 10/9/23 08:51, Köry Maincent wrote: > From: Kory Maincent > > Make the dev_set_hwtstamp_phylib function accessible in prevision to use > it from ethtool to reset the tstamp current configuration. > > Signed-off-by: Kory Maincent > --- > include/linux/netdevice.h | 3 +++ > net/core/dev_ioctl.c | 6 +++--- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index e070a4540fba..b9d0411836db 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -3922,6 +3922,9 @@ int generic_hwtstamp_get_lower(struct net_device *dev, > int generic_hwtstamp_set_lower(struct net_device *dev, > struct kernel_hwtstamp_config *kernel_cfg, > struct netlink_ext_ack *extack); > +int dev_set_hwtstamp_phylib(struct net_device *dev, > + struct kernel_hwtstamp_config *cfg, > + struct netlink_ext_ack *extack); > int dev_ethtool(struct net *net, struct ifreq *ifr, void __user *userdata); > unsigned int dev_get_flags(const struct net_device *); > int __dev_change_flags(struct net_device *dev, unsigned int flags, > diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c > index b46aedc36939..342a667858ac 100644 > --- a/net/core/dev_ioctl.c > +++ b/net/core/dev_ioctl.c > @@ -322,9 +322,9 @@ static int dev_get_hwtstamp(struct net_device *dev, struct ifreq *ifr) > * frames and not forward them), it must set IFF_SEE_ALL_HWTSTAMP_REQUESTS in > * dev->priv_flags. > */ > -static int dev_set_hwtstamp_phylib(struct net_device *dev, > - struct kernel_hwtstamp_config *cfg, > - struct netlink_ext_ack *extack) > +int dev_set_hwtstamp_phylib(struct net_device *dev, > + struct kernel_hwtstamp_config *cfg, > + struct netlink_ext_ack *extack) > { > const struct net_device_ops *ops = dev->netdev_ops; > bool phy_ts = phy_has_hwtstamp(dev->phydev); Missing EXPORT_SYMBOL_GPL() here? -- Florian