Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp908126rwb; Wed, 9 Nov 2022 10:04:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM5ebrt5uiNHSiLZSgx+9oRU/S1ROjt4F7thiQnhhrqcQ0Jl4lfSUu2jMY52qX3YCgGa1uZ+ X-Received: by 2002:aa7:8b13:0:b0:55f:69de:d17c with SMTP id f19-20020aa78b13000000b0055f69ded17cmr61127314pfd.20.1668017085697; Wed, 09 Nov 2022 10:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668017085; cv=none; d=google.com; s=arc-20160816; b=EZyPT8aZ8s/mUoOD5sntCOfBYRNQ1EpQO0JuTFpt9PWfuZtJsM67EWsorCPDTmyGzO 5OTIT6TfW8fxbBr2py0eYOB4LrSwuwhAWZM4EUzIZeyqTTr6ugllsX9DahidDqvYekvu 4U9N2eDmjhtiZ7NGX8U3RlEIGURQtgMbxZ4nvN9HFvyDqX+/umuArmjnaSXVIZfDZt3M G//whhxpgrOpAsExfjDFqOR0JpW3zzbTHrye9xKv/EO9u9S96zDd/TOm+LNhrVgYhpWx jl6a/fYA1FXHeguOJN++3ESG2ltzKG84rzNpJ9F8/19RJKGzxj9QagGNkg2LnJ2A1EjE cGUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S9BJm9umYJ+3ehxPivktTY+ps1jg+AXbvLPG2o811VE=; b=cZyRs4LvS1oSX8H6UmgtOoCiV7nMI2fTNrEN+gZPaGIgafV9yjhM/UWouYFUzYLAzR F9gF7Nf0P98+RVXYZb8X9cCXt36iljty+SjXwdiDHemwYHbJJHLrEEjlXH5/ibQjc/dP I8QttmhLdZ1dkI5gFgwoAiuLrPt6h5vAad7WwTZpxNNPX96UPgocI5DaZpCJ52xAIS1p bmoMyeXhOAuG8mt/16ETEcNu2D6s1EBRAtpK5YlHT4tczz/VGpWVL7zztotu5H+UfCdk 6v3KIFLeQoj5YmmWAupRK4AvxYDUSbhte0sW7pg9d5byom/Gg/A9stSxbqtHBnPgxN9W xsMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="m/VflAVs"; 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 oe5-20020a17090b394500b0021305bbcb6bsi1997978pjb.90.2022.11.09.10.04.33; Wed, 09 Nov 2022 10:04:45 -0800 (PST) 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="m/VflAVs"; 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 S231194AbiKIRwU (ORCPT + 92 others); Wed, 9 Nov 2022 12:52:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiKIRwT (ORCPT ); Wed, 9 Nov 2022 12:52:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B8BBB3; Wed, 9 Nov 2022 09:52:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2292161BFD; Wed, 9 Nov 2022 17:52:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02531C433C1; Wed, 9 Nov 2022 17:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668016337; bh=Ono1kNVfR6Namsb8ySxxpO8fNUGXE2tq+pYK2FjJB8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m/VflAVs4MSTQcGLOSsqCL33hBaOHQTgATIF8SXG8oZ8KsTmUoSJMsa5HnDXiaBov G9lueQZnLwXTLZQWDnWcYmXjrWNO99inXrbiFcAWSzf9MMNaThu9ZWGrZsiZQpEvLl 0+1Kag9+Ucpcprd4AqPoMWNfcK2a2d3KoMk30bMSnTpFYGkYbihqJK2MneeVRGJtZv wVbdqxk/DprHE5r9ZRxJj4HOfE5RuOK6/16gzqXzXVbTMtA8ZB4rZ9D1vwlBLZyXC7 355/fAjp9GXrq6XRiifQpUjkN266RFe5SON3vMebYS8oZqc3XG0qbARS7OfO0K/SFz 2NAERFy8Hyxdg== Date: Wed, 9 Nov 2022 19:52:13 +0200 From: Leon Romanovsky To: Vincent Mailhol Cc: netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Guangbin Huang , Hao Chen , Sean Anderson , Tom Rix , Tonghao Zhang , Wolfram Sang , Marco Bonelli , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v1] ethtool: ethtool_get_drvinfo: populate drvinfo fields even if callback exits Message-ID: References: <20221108035754.2143-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108035754.2143-1-mailhol.vincent@wanadoo.fr> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, Nov 08, 2022 at 12:57:54PM +0900, Vincent Mailhol wrote: > If ethtool_ops::get_drvinfo() callback isn't set, > ethtool_get_drvinfo() will fill the ethtool_drvinfo::name and > ethtool_drvinfo::bus_info fields. > > However, if the driver provides the callback function, those two > fields are not touched. This means that the driver has to fill these > itself. Can you please point to such drivers? One can argue that they don't need to touch these fields in a first place and ethtool_drvinfo should always overwrite them. Thanks