From mboxrd@z Thu Jan 1 00:00:00 1970 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 15B1A4C93 for ; Fri, 8 Sep 2023 15:46:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 085BBC433C9; Fri, 8 Sep 2023 15:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694187972; bh=VNbazyRE370gNZi/pHSUlpmXcMceT96Fm7hfdqN6qm0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W+NDGlJV7b50NBiPVfSJUusyYpzLVAcE2elkubEwzBbLd6BTsm4n2noLzVcIJDinM 8N/F1KIUkj8eKSRy5mAXBRcBqE5Mrx1/IF65g+6x0vf8xUQI+VX2lSX1Syaiw0EKIE Ca+fUBcUOFFlwmmMk1BUy7B/LghUxcD9rum750l3LwylSlqzQkQaPv+EncszfZxLo1 vfp12Bygewy/qQnhG8vMxwWEvRbmFoVvRpadgV9pu5RCl3yAFYuoMgNDbeSnziYQV2 4ZjTUgjo6Gih931sjhnKHwtsu8r/CyUwlAJi99zK5p5HgzB4IEibQWI5AyEFFR3eY5 CkfZjTt472MBg== Date: Fri, 8 Sep 2023 08:46:06 -0700 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , thomas.petazzoni@bootlin.com, Christophe Leroy Subject: Re: [RFC PATCH net-next 6/7] net: ethtool: add a netlink command to get PHY information Message-ID: <20230908084606.5707e1b1@kernel.org> In-Reply-To: <20230907092407.647139-7-maxime.chevallier@bootlin.com> References: <20230907092407.647139-1-maxime.chevallier@bootlin.com> <20230907092407.647139-7-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: netdev@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 Thu, 7 Sep 2023 11:24:04 +0200 Maxime Chevallier wrote: > ETHTOOL_MSG_PHY_LIST_GET, > + ETHTOOL_MSG_PHY_GET, The distinction between LIST_GET and GET is a bit odd for netlink. GET has a do and a dump. The dump is effectively LIST_GET. The dump can accept filtering arguments, like ifindex, if you want to narrow down the results, that's perfectly fine (you may need to give up some of the built-in ethtool scaffolding, but it shouldn't be all that bad).