Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp642510rdb; Fri, 8 Sep 2023 11:26:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6eEHv0RH33HBl9KPW2hOlfAR1qss3jXlYqXOhlA5YotfcNl/rY26GlD367R/advyaXUAL X-Received: by 2002:a17:902:cec1:b0:1bf:fcc:d047 with SMTP id d1-20020a170902cec100b001bf0fccd047mr3178442plg.17.1694197582867; Fri, 08 Sep 2023 11:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694197582; cv=none; d=google.com; s=arc-20160816; b=jZii6d86rALGhGslWYQQSc/kNapjOMuORraz7PMpHd/5yEFJtRIduBNBbfguseWTK+ cZOUuGyae17rzPRNVR2nlI1/DjwPf8XjjoR33MSTWJgyd7tZtFVEIlBLS854TcmHNVa3 X5R8Uk7RuhH8KRE064hxpkhhdhgbIl0QqktPbAk15nr0IK0CjAvIPDNHjKi/Edqu3/US aY8iO3JPJsdTHw5pqcMb+y9XlIgfuh8lsZy5eD+FRZsWE14AQDtBtezRcg0k4C+6Z1z2 Xx72dEi0Cd1YUe5FjST1cLvrzywCN3bxs2YWTYYz5YWt1bmES1wGoceZ6fH53A8hoB4I i3Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JpT705GPeIxs3GVJ87mLk0mx88F7R/7Cing+iZDe5h0=; fh=1qoJiNuv7rW/+MVreLARwL+n0J+8hSH4W+HpyIk2D18=; b=TQbeNtgXF6jXurHsCWlYRtffFuj48AKnYs5ufm1yA02mhtoBchxE2YyztbV5vrFOAX G2awkCZ6X6+H6cXk7NlWHbJ5h5WBZm+eEyyTCJojJq2Qmw8c2T13GjcCgA1+TjSfcHDS ibOdXlyBMX4ox4/cur2BnBECCKnF6QWsUS4/oaqLx/24SOOPVDFV5q5DovtPZ8MLKqrF 6WuNy5mvqzsfR6gP0z+2lBjIglyJ6vMf9elw3tKtA0LSgK9UwMioC4rT5JqAVIALA8nG DTl6OZ7iAL+aqXfscoABGo9Q5SAnZjK91QtLz9ajBb0xoyr5I8TZdjRSCXoRVlPJ5qGH HodQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+NDGlJV; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ld12-20020a170902facc00b001bb95a5cb9fsi1861325plb.522.2023.09.08.11.26.09; Fri, 08 Sep 2023 11:26:22 -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=@kernel.org header.s=k20201202 header.b=W+NDGlJV; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244455AbjIHPqS (ORCPT + 99 others); Fri, 8 Sep 2023 11:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235890AbjIHPqR (ORCPT ); Fri, 8 Sep 2023 11:46:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 346ED1FC4 for ; Fri, 8 Sep 2023 08:46:13 -0700 (PDT) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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, 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).