From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23BE4C5479D for ; Tue, 10 Jan 2023 00:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234821AbjAJApG (ORCPT ); Mon, 9 Jan 2023 19:45:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234800AbjAJApE (ORCPT ); Mon, 9 Jan 2023 19:45:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11F46E080 for ; Mon, 9 Jan 2023 16:45:03 -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 9A2F9611DE for ; Tue, 10 Jan 2023 00:45:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A404C433D2; Tue, 10 Jan 2023 00:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673311501; bh=CnkC1d6Xsjfkp4uMUM2eg4hYfglY7ggQ3tJi6S+7Ihs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TmAzrsfYBmFoXHfDSGaYddGKCsAlga+HYKXup0FFCCAuBQCXUcP22WcvXlO6AKmEP z1xm2n+bcRA4PBmhOhpLgceOYXUFiIuHAap/e+1IOcgTBCv9FoeOlgY3FEPAggD6bI h8s3OT+m/qYhmRkpD4GHZnXUPPsJXRDLbt3fpSBp86WHltGInmirSP0tCOt6T5/w+W e7UWHKzqgwbTIdC2pA+w3dJUo1LGiYBuWnJzv2YmwJypJj08FH4Z8ORTCMHSNmzs4+ tPprrRk/IlmuwvWF4TmM8lP0SOMO89tBLM64alK189X0jwN7jIP5fA+vgCWud3TkY1 c+ylXk5kTo1xg== Date: Mon, 9 Jan 2023 16:45:00 -0800 From: Jakub Kicinski To: David Arinzon Cc: David Miller , , "Machulsky, Zorik" , "Matushevsky, Alexander" , Saeed Bshara , "Bshara, Nafea" , "Saidi, Ali" , "Kiyanovski, Arthur" , "Dagan, Noam" , "Agroskin, Shay" , "Itzko, Shahar" , "Abboud, Osama" Subject: Re: [PATCH V1 net-next 0/5] Add devlink support to ena Message-ID: <20230109164500.7801c017@kernel.org> In-Reply-To: <20230108103533.10104-1-darinzon@amazon.com> References: <20230108103533.10104-1-darinzon@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, 8 Jan 2023 10:35:28 +0000 David Arinzon wrote: > This patchset adds devlink support to the ena driver. Wrong place, please take a look at=20 struct kernel_ethtool_ringparam::tx_push and ETHTOOL_A_RINGS_TX_PUSH. I think you just want to configure=20 the max size of the TX push, right? The reload is also an overkill, reload should re-register all driver objects but the devlink instance, IIRC. You're not even unregistering the netdev. You should handle this change the same way you handle any ring size changes. For future reference - if you ever _actually_ need devlink please use the devl_* APIs and take the instance locks explicitly. There has not been a single devlink reload implementation which would get locking right using the devlink_* APIs =F0=9F=98=94=EF=B8=8F