Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15374234rwb; Mon, 28 Nov 2022 10:48:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf44CVB9DbhFB8NBwFUyLqd3SgGczkPsNtuZd44sG8aTDr7He6M1GybhKx4GYe6LT6Ck7K7D X-Received: by 2002:a17:906:8493:b0:7be:a769:2f41 with SMTP id m19-20020a170906849300b007bea7692f41mr7987548ejx.690.1669661310018; Mon, 28 Nov 2022 10:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669661310; cv=none; d=google.com; s=arc-20160816; b=mrfzvFpibRKzru7YMQx5BdLOptFPetgqUXEvYc6qFEg8GB2FMcNOIHq4Mnif7ewRXw QRuto8acTLci5f0Bd5WZIQYbfZOg1F6j7lq+GzEAhNJ7/fWJQLHBifyyyATstzzIOe/3 nGl6nG4kjqAxS3VMXwrXiC4QAw8IqzK2LQS0fYlUnuU0/P+rKdtf5BgWGiHlBeP4Ssbc HYKID7hi2JDd7P8z6zzlkcn0oISCaMIbCIxxDnzUkyuLooWWf8DaQiNPIzPh9KyN4ZnI gCH0hdNsJqrA1lUe7hq8NMxcGnahlNwGyIJDjo/qZ6cEwX1JyiRKqfQor3WpHWm7q/3C olZg== 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=GBLXNybYmWhfGlO8jrn8SIBwabL6cAczqvCzN1elJBs=; b=k/Ttfz8bOYUHlUQALvxN/XuE59dZDSgPmFlBiD6bCrUe+g4zrYja7I6uLhHT6sn0YY /4MBM5OC+YRjH0zbunbSLk2qrY57GUcZgJvEIqgqNXXUmRdHZA+C8jGE3N6w/hfCwzL8 CDgRwVtV3vNgHqL7Kf+Dg+NZfCbvKtdgkhekEISH5PZcNh46KxdxKE4g2DkxSgNdCfPV fykGOv/RzBqdBHpAfY79DhiC1fywbSxmdLNSDWKxGlu6/CjyCUiQ4cVF4DzrsE2mllP9 2mlnJVbk7sGe/ut+xYukBBhy8jWwSiQU5qKe1vUfONLTEAbPGsS1IbLdUtkOJpkwH4cx Nc1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ggtZa/EX"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 dd9-20020a1709069b8900b0078d48e06641si11079204ejc.393.2022.11.28.10.47.59; Mon, 28 Nov 2022 10:48:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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="ggtZa/EX"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S231860AbiK1SmL (ORCPT + 99 others); Mon, 28 Nov 2022 13:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231743AbiK1SmK (ORCPT ); Mon, 28 Nov 2022 13:42:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BFB65FA; Mon, 28 Nov 2022 10:42:09 -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 ams.source.kernel.org (Postfix) with ESMTPS id A0E81B80E9E; Mon, 28 Nov 2022 18:42:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B1DC433D6; Mon, 28 Nov 2022 18:42:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669660926; bh=c/Kya75Gow4UGO+kWaBvGk9V0lZ53wcA1385i+8THwU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ggtZa/EXaHIafcJ28igxOSiRe6MpAjEMroyUUXUKor1ZOYtErOk9h4Pg1uPxHTxPJ 8uAReJ0QZbagmOuMZEltNe1MCOovSlZ6aKjAFkKJBjOktJHPOOcJUdIGoDPi6uUQ20 MXyNg8MjRmfA8OWJbemROMNNwero5+hww9jG3uqbHEl6XgfqMRA95nQWL2mU4WLE38 Hta0auaTwNimuhOfvVFOfz8grj/MzLiZ83WQRvmPdQ///4aXS7FjPvsfYQLqXw3cOa FzX7m1h0inABUmO0kFCTG9vaaUHpJAcoA7JqFSsdD78EQAPQM+He4ME9C0JSq2ajri +/RYwrUokWRUQ== Date: Mon, 28 Nov 2022 10:42:03 -0800 From: Jakub Kicinski To: Vincent Mailhol Cc: Jiri Pirko , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, Boris Brezillon , Arnaud Ebalard , Srujana Challa , Kurt Kanzenbach , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Michael Chan , Ioana Ciornei , Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , Taras Chornyi , Saeed Mahameed , Leon Romanovsky , Ido Schimmel , Petr Machata , Simon Horman , Shannon Nelson , drivers@pensando.io, Ariel Elior , Manish Chopra , Jonathan Lemon , Vadim Fedorenko , Richard Cochran , Vadim Pasternak , Shalom Toledo , linux-crypto@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, oss-drivers@corigine.com, Jiri Pirko , Herbert Xu , Hao Chen , Guangbin Huang , Minghao Chi , Shijith Thotton Subject: Re: [PATCH net-next v4 3/3] net: devlink: make the devlink_ops::info_get() callback optional Message-ID: <20221128104203.079ce802@kernel.org> In-Reply-To: <20221128041545.3170897-4-mailhol.vincent@wanadoo.fr> References: <20221122154934.13937-1-mailhol.vincent@wanadoo.fr> <20221128041545.3170897-1-mailhol.vincent@wanadoo.fr> <20221128041545.3170897-4-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-crypto@vger.kernel.org On Mon, 28 Nov 2022 13:15:45 +0900 Vincent Mailhol wrote: > Some drivers only reported the driver name in their > devlink_ops::info_get() callback. Now that the core provides this > information, the callback became empty. For such drivers, just > removing the callback would prevent the core from executing > devlink_nl_info_fill() meaning that "devlink dev info" would not > return anything. > > Make the callback function optional by executing > devlink_nl_info_fill() even if devlink_ops::info_get() is NULL. > > Remove all the empty devlink_ops::info_get() functions from the > drivers. > > N.B.: the drivers with devlink support which previously did not > implement devlink_ops::info_get() will now also be able to report > the driver name. These should be two separate patches, tho. Please don't post v5 in-reply-to. Otherwise looks good. Kinda risky but good :)