Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5065830rwp; Sun, 16 Jul 2023 18:35:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZGuW9qxoEPzIFQ+jpNeebDWEZeIVIR5NazMpfdctLcGcqTttrq1sBkmLJpJPNgFQUFShR X-Received: by 2002:a17:906:10ca:b0:994:47a5:a377 with SMTP id v10-20020a17090610ca00b0099447a5a377mr8736968ejv.24.1689557743475; Sun, 16 Jul 2023 18:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689557743; cv=none; d=google.com; s=arc-20160816; b=y2Op0PIB72N8gzUojTKxdbmyzJ5+ipKzVGbls2MAis2iB6Nip2Uh51kmGpSo5/HzsY QL2gnT8OAh8pqmwSLy0UdXeMah4OMov8lsWEqQHK0xrqmOAYgB8w8VWhl+VDvvkroN7n XjmuXb5uXLx7xmIT94G0S0nhJWDWz4GMGoekNd6/ceJuel7mPLOo3TWxqpkb6AYTPFWv w+QM9TvVEVb1pz+z2/MAnPqvv/IsnLHn5oLiDDfO2TPpa9J0kwi4em7N2+eHz0+qAWr0 43zTzrQp4KIILokUKXD+7aLoTGZk1NRzdj+lJPpaQ0OIpW19s2eNSrdzBY26fplgE4I/ dggg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/xsec41khvstwojfKKnVijK7VZDVczRFwtjYPna4+YI=; fh=xng0g/t8rgKBso+v9eRj9VXz8x51fTovdN1GY7pvxCc=; b=vCQDrNyeka2Mg3Pp7zX3imJ1zicyHFtSazzd9evyrAl+oafJZX6E9E2OBF0RrdCEQJ wnlTwwVHFfZ12bEs1TdxYSFHdoqV3eXfR2c9RJf5yn15Vfa2oyy+wr0wH2MOVckf4GMO ZMpcXvzf9tMTlGrl++cZqzLFBmubY59Kdj9vqUxzwwysx9eX7nUrsU/aDDYuiAPLbTiY F9J/InYjY1FkU0NLhdJDvqn6pPjl81GuaOZ+gv5ELu4P73lGTi6asI4G6PDK+kDHnH9Q PS/9UoXNWlyjeC8KqWZXRgF/QOd+GV9slUBqeDaB2ArSAslpe3S1un0+07HE9JKyBjFQ WK3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=m8bLTGJa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq5-20020a056402214500b0051ff0e743c7si7325429edb.397.2023.07.16.18.35.11; Sun, 16 Jul 2023 18:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=m8bLTGJa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230218AbjGQBWh (ORCPT + 99 others); Sun, 16 Jul 2023 21:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjGQBWg (ORCPT ); Sun, 16 Jul 2023 21:22:36 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6D8198; Sun, 16 Jul 2023 18:22:35 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-55be1ce1669so2461493a12.1; Sun, 16 Jul 2023 18:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689556954; x=1692148954; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/xsec41khvstwojfKKnVijK7VZDVczRFwtjYPna4+YI=; b=m8bLTGJauMxUKVyDpIlaNkk99Hkb+YrGDvRf063B3eaNisyPDM8bt6nLngAqrdQW/a H6rH90DitEebLR89aw3P0xUCS48+ZsoDiVbhp6qGW6m3rKskw3hPXlZrt9wXeKYDQuDE BWLuQBMxMRANjydYyzmV0JZhatFgmidRIqZ98uZkaKVxXGqUTGFZh/VNQxzmkEj5pkxp qU9wvNtbGaDeiMLQMkyUpbRqjfj+gAJ9VT4sRERXhbqG5hzGrj/ASHtamDQDRS0P+ZVO 93d33GWxNzrdl34anhtasl2t0lwjTYRFW/VYtdWqwIeoPsMEqLyHbZbcbLJzmuUCz6iG mAxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689556954; x=1692148954; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/xsec41khvstwojfKKnVijK7VZDVczRFwtjYPna4+YI=; b=HXqpI9lFKGGKjgqx/fhAbLZASlSzZ6iEAkftCGxfEsXK6NgSbMgJO6zqXoboVUruX5 ly2f/Z+EuaurNpb5kl2RM5/2+7z1N4VfBqbBly1sMUzMHYlc+M7lDeNhCBWlxSi4+OVI S/2nQDVoHU8VATFWMUOYv23nTnEdZwOMeY7Mt6sMFikZjOyQo1N+WrNHwOqfvbW1ZN0Y qZksMT0tm91AeLJhvPtfdbWDNub48j3ZhpDWd1TbxFNdPlKMYgoW3UKATZqjhQQm6GPD QAiyqoh3HyqJ3MKcUola7nJYbZjxCF4DkxbyV5rz+nLGybGyqTg//GAFQK8/GRxFlIXu tEdA== X-Gm-Message-State: ABy/qLbPDJ/6Y/CG5ARg5xOc21AFHhzO4dwxqE5u7L8Tkwl7saA2y7HQ VEXD53ZJEtw8/jV8Snn2Dmlb8PytMttPnSwOJWs= X-Received: by 2002:a17:90a:fa16:b0:263:1af0:5541 with SMTP id cm22-20020a17090afa1600b002631af05541mr9985566pjb.32.1689556954509; Sun, 16 Jul 2023 18:22:34 -0700 (PDT) MIME-Version: 1.0 References: <20230713121907.3249291-1-vladimir.oltean@nxp.com> In-Reply-To: <20230713121907.3249291-1-vladimir.oltean@nxp.com> From: Max Georgiev Date: Sun, 16 Jul 2023 19:22:23 -0600 Message-ID: Subject: Re: [PATCH v7 net-next 00/10] Introduce ndo_hwtstamp_get() and ndo_hwtstamp_set() To: Vladimir Oltean Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Florian Fainelli , Horatiu Vultur , =?UTF-8?Q?K=C3=B6ry_Maincent?= , Maxime Chevallier , Richard Cochran , Vadim Fedorenko , Gerhard Engleder , Hangbin Liu , Russell King , Heiner Kallweit , Jacob Keller , Jay Vosburgh , Andy Gospodarek , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , UNGLinuxDriver@microchip.com, Lars Povlsen , Steen Hegelund , Daniel Machon , Simon Horman , Casper Andersson , Sergey Organov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 13, 2023 at 6:19=E2=80=AFAM Vladimir Oltean wrote: > > Based on previous RFCs from Maxim Georgiev: > https://lore.kernel.org/netdev/20230502043150.17097-1-glipus@gmail.com/ > > this series attempts to introduce new API for the hardware timestamping > control path (SIOCGHWTSTAMP and SIOCSHWTSTAMP handling). > > I don't have any board with phylib hardware timestamping, so I would > appreciate testing (especially on lan966x, the most intricate > conversion). I was, however, able to test netdev level timestamping, > because I also have some more unsubmitted conversions in progress: > > https://github.com/vladimiroltean/linux/commits/ndo-hwtstamp-v7 > > I hope that the concerns expressed in the comments of previous series > were addressed, and that K=C3=B6ry Maincent's series: > https://lore.kernel.org/netdev/20230406173308.401924-1-kory.maincent@boot= lin.com/ > can make progress in parallel with the conversion of the rest of drivers. > > Maxim Georgiev (5): > net: add NDOs for configuring hardware timestamping > net: add hwtstamping helpers for stackable net devices > net: vlan: convert to ndo_hwtstamp_get() / ndo_hwtstamp_set() > net: macvlan: convert to ndo_hwtstamp_get() / ndo_hwtstamp_set() > net: bonding: convert to ndo_hwtstamp_get() / ndo_hwtstamp_set() > > Vladimir Oltean (5): > net: fec: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() > net: fec: delete fec_ptp_disable_hwts() > net: sparx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() > net: lan966x: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() > net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from > converted drivers > > drivers/net/bonding/bond_main.c | 105 ++++++---- > drivers/net/ethernet/freescale/fec.h | 6 +- > drivers/net/ethernet/freescale/fec_main.c | 41 ++-- > drivers/net/ethernet/freescale/fec_ptp.c | 43 ++-- > .../ethernet/microchip/lan966x/lan966x_main.c | 61 ++++-- > .../ethernet/microchip/lan966x/lan966x_main.h | 12 +- > .../ethernet/microchip/lan966x/lan966x_ptp.c | 34 ++-- > .../ethernet/microchip/sparx5/sparx5_main.h | 9 +- > .../ethernet/microchip/sparx5/sparx5_netdev.c | 35 +++- > .../ethernet/microchip/sparx5/sparx5_ptp.c | 24 ++- > drivers/net/macvlan.c | 34 ++-- > include/linux/net_tstamp.h | 28 +++ > include/linux/netdevice.h | 25 +++ > net/8021q/vlan_dev.c | 27 ++- > net/core/dev_ioctl.c | 183 +++++++++++++++++- > 15 files changed, 480 insertions(+), 187 deletions(-) > > -- > 2.34.1 > Vladimir, thank you for taking over and improving this patch stack! I see you dropped the netdevsim patch: https://www.spinics.net/lists/netdev/msg901378.html Do you believe it's not useful any more since the rest of the patches in the stack were tested through other means?