Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A85E3C64EC4 for ; Wed, 8 Mar 2023 22:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229717AbjCHWyk (ORCPT ); Wed, 8 Mar 2023 17:54:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjCHWyd (ORCPT ); Wed, 8 Mar 2023 17:54:33 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7047EB4F63; Wed, 8 Mar 2023 14:54:31 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id o12so71934743edb.9; Wed, 08 Mar 2023 14:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678316070; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=+J0b8VSa/m7CpwvWD16+VUtDl7LeR0FAxAMR+W7ckJc=; b=nTJ0zv0CYJkHIUxwc6QFze1Z7fTuDKOX3WhFNdJUvFRbnnu4P0YoFvcJNyh+8qKg+a 9SQaYQvHAnIMo7hu9JLWrhblRyozZNPe/6qMHmI39gSez0wZdOk8iWb8OvYruLhydk4h RqRmCxMImh3W5wm9xrJQLX7acssLQDXDkBpOG35fWSOKD3AZriAvXM5NGyE/ShKZ2y3E uD42gkqrpIULtfb0oRfCrJewfMSrtEjWsHlIzA9i5BXVMbK3gyfV5ZoRF7aTnKvuFQyY p5+n42JUCJGP8up/SRgYZco4ZLZ4lmkTGs8NYb5LHbuP0F7EkuJzCWIEEfeHOtYNk+O6 Q47Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678316070; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+J0b8VSa/m7CpwvWD16+VUtDl7LeR0FAxAMR+W7ckJc=; b=8Ark+Ck0I4HqqhyX9n9jor+p7+muxq3eHHAFfXUAq0dSuxFQ+fTXjaUdhQUqyvRyKw gaoG3alFF4MBUV2d6cFT//j5KfdC3/js0eEvlLYuLCaQ+6WbtXd4g4dCuAHxGddwnFYq ei3f+o0cRCw1HS+l2FeaS0bRHLJfT0jV3nqeHWxHZnp44rDXuIyXCrTyQw8/XWPNw59+ 2CN/Xtno0drMHVvSR7sBpXm1xeeHV+Am/MBld12tz75P0SUOcg3lVcpZub4jiZjy1GUw k+t+qX9PBo68oqR/4oeyIXadhA0G/yISJQacRqA+nSdZdMKcG47uWQfK16XEAqvpQx1e bX1Q== X-Gm-Message-State: AO0yUKXvRjTtH13jHxzqv8RRQVvDA2ezezyfKKGd7ZEeXARIxlvMBjuC ZqtMU/Sro/f7F9nfefMIOGSjl1XSriQQeg== X-Google-Smtp-Source: AK7set/J2a/dCSAr+3ZD7kva5xaOieFb8KurXmVhg0eTSxMT844CdYCsJxox9jvOqm3Y1muk4FXh8Q== X-Received: by 2002:a17:907:cf48:b0:8e0:4baf:59bb with SMTP id uv8-20020a170907cf4800b008e04baf59bbmr21320047ejc.22.1678316069809; Wed, 08 Mar 2023 14:54:29 -0800 (PST) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id lo2-20020a170906fa0200b008e09deb6610sm7995732ejb.200.2023.03.08.14.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 14:54:29 -0800 (PST) Date: Thu, 9 Mar 2023 00:54:25 +0200 From: Vladimir Oltean To: =?utf-8?B?S8O2cnk=?= Maincent Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-omap@vger.kernel.org, Michael Walle , Maxime Chevallier , Richard Cochran , thomas.petazzoni@bootlin.com, Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Joakim Zhang , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Grygorii Strashko , Minghao Chi , Guangbin Huang , Jie Wang , Oleksij Rempel , Alexandru Tachici , "Gustavo A. R. Silva" , Sean Anderson , Wolfram Sang , Alexander Lobakin , Maxim Korotkov , Marco Bonelli Subject: Re: [PATCH v3 2/5] net: Expose available time stamping layers to user space. Message-ID: <20230308225425.v6q3dglfz7me44ht@skbuf> References: <20230308135936.761794-1-kory.maincent@bootlin.com> <20230308135936.761794-1-kory.maincent@bootlin.com> <20230308135936.761794-3-kory.maincent@bootlin.com> <20230308135936.761794-3-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230308135936.761794-3-kory.maincent@bootlin.com> <20230308135936.761794-3-kory.maincent@bootlin.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi K?ry, On Wed, Mar 08, 2023 at 02:59:26PM +0100, K?ry Maincent wrote: > From: Kory Maincent > > Time stamping on network packets may happen either in the MAC or in > the PHY, but not both. In preparation for making the choice > selectable, expose both the current and available layers via ethtool. > > In accordance with the kernel implementation as it stands, the current > layer will always read as "phy" when a PHY time stamping device is > present. Future patches will allow changing the current layer > administratively. > > Signed-off-by: Richard Cochran > Signed-off-by: Kory Maincent > --- I'm pretty sure that all new ethtool commands must be implemented through the genetlink socket interface. The ioctl interface stopped being extended and is in maintenance mode only.