Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp478258lqe; Sat, 6 Apr 2024 08:58:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7OX+7q5uOzz7XP9NqrxohnBQUEPAVlxbdtyRyEEVdJcMgId7n2S62ozzoxgCKMPK1VtQvfDVFf4kuXMIIsYw5/WO9Qp8RYprNpo62pg== X-Google-Smtp-Source: AGHT+IFykLB/A1+51beqKyF5DNDxg1y5FmZnep3D4QeZvEEOVkggm4rT06mCacXJZJLkBMs7ATXc X-Received: by 2002:a05:6a21:3d82:b0:1a3:7de2:12b6 with SMTP id bj2-20020a056a213d8200b001a37de212b6mr4371434pzc.26.1712419136845; Sat, 06 Apr 2024 08:58:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712419136; cv=pass; d=google.com; s=arc-20160816; b=y6vt+Mqv7HifEfCl2f+8unnFQgIsGjOtxOvcbTGRMq8xI+nqN9rOQQNIbDw3Cdd/Mj djqDgj71Gz2byxWhpTbV6x+c3vfZBfxEj0K1tj7MSZFD+71RfmeyMRKDv/69Z2vEQ4k5 fYQU7AC9pLTII0f0V2yhcoPd0hUrsPjzlbOBqStGc62HTCrur8D9Q8kCHXeCZoVWNCSb zQjcWXUGzHALCgc8u5m3neEPBXc3GFBMNXaaqLWheREQ6t0Kj5zMHW5zbo5cjH/RWQjx zYmBW+eM2ehxtFN1rsPbzh2jPB2F9c+42W+RzuDYC4wVIuG1ynUnq+vMGHdn8RasLmu5 H5/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j4wsuCXSqn6uoRNQn7YbhCaXFnmRpqFl6kS8zFaXYgg=; fh=iFMvJPe5+iMz9fvI7Ro3QqHP2FRNSaC5Or4Przs7Ch4=; b=EkW5HXqrtWJyk6OT7f+ivFm5lScUpp4uN15Uj9vm8R0KWYH7TKyBUq+A18T7dzySE7 jEhWn2BI3Q4sNtMJmpInYznbc1jCC6YD2IFEyawF1TTmaBznLlazGpPbgkQmoWMz6Fn3 iVVyc71udYF+Gto80xLBi5m041DExo6zHZeDbZyTtFhBRZlm9x5CQ5qGwmjCcj6DbL18 QVFZeZxh+xskcG5RWtAm9QsDLWKk3Pgw8a8SMZscpQezoPrBYfcCmWqA4nnkywEsDpXA zhhnwPlus9OAow1scaDUdhvAX7FFX0xOPxz1pP8I6suuGk4bsVnbDbTJrjKhSaluEPoN dxPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fuKZqE5r; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e5-20020a170902ef4500b001db4f0f3698si3323371plx.458.2024.04.06.08.58.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:58:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=fuKZqE5r; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133992-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 4C5C62813BE for ; Sat, 6 Apr 2024 15:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EADD3BBEB; Sat, 6 Apr 2024 15:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="fuKZqE5r" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 0D77D38396; Sat, 6 Apr 2024 15:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712419126; cv=none; b=T6CUFoHLgIjs1DvJ2uyc8LG5H0xI10PhOvh+lcuHeI2ZFSvXV1RmD9/SDi1nU/I8EiBKxjBdD9aCgifoJwO0etZ+DiJgFdh0fH0pgWS4wygxot7H1Y2flTLemSyUgvTwi9GEY38lRpK3xPzil8k1G1AtHwzRBc3lIKJ50TfJ/vA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712419126; c=relaxed/simple; bh=nNdKTO1hqqrwsAK7J5UWvHyMQWy/DPFAecbNqFDFKx4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O8KZTHLlNgLAhNUwWNj++j03ek7noizh3AwFSbRWNaMhDN7XFVzYmXnq2RV0lkTJUGUpTkl3VTkxpNebIG8FgPVKJ2mNGPMryfJLUcPea8gDC3vvSvNuuEHm1pxhYd6grXeNNEkJ8BsrTJ9dz3wr7QrN0N+sGY8Jryf4FJldL9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=fuKZqE5r; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=j4wsuCXSqn6uoRNQn7YbhCaXFnmRpqFl6kS8zFaXYgg=; b=fuKZqE5r+3JLdPKZBwuyf5obJq 623AkBjqhSEu5NSgQRxygFKrQ7bklm/amGQR5jL+rr+DcaNnZxMMurdjPtZ7hBfG4TtpTCOnAfPqN +TuulBU7RRg0GBDvKN6Au9tHNM5SSjSLGn3v2QLJtQQT2kq4gBwezDEbxKHFh/EDni8E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rt8RF-00CNV6-SB; Sat, 06 Apr 2024 17:58:41 +0200 Date: Sat, 6 Apr 2024 17:58:41 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?iso-8859-1?Q?Beh=FAn?= , Piergiorgio Beruto , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v11 07/13] net: ethtool: Introduce a command to list PHYs on an interface Message-ID: References: <20240404093004.2552221-1-maxime.chevallier@bootlin.com> <20240404093004.2552221-8-maxime.chevallier@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-Disposition: inline In-Reply-To: <20240404093004.2552221-8-maxime.chevallier@bootlin.com> On Thu, Apr 04, 2024 at 11:29:57AM +0200, Maxime Chevallier wrote: > As we have the ability to track the PHYs connected to a net_device > through the link_topology, we can expose this list to userspace. This > allows userspace to use these identifiers for phy-specific commands and > take the decision of which PHY to target by knowing the link topology. > > Add PHY_GET and PHY_DUMP, which can be a filtered DUMP operation to list > devices on only one interface. > > Signed-off-by: Maxime Chevallier It would be good if Jakub reviewed this as well, since i don't know netlink too well. But: Reviewed-by: Andrew Lunn Andrew