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 4F476C6FD1C for ; Tue, 14 Mar 2023 13:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbjCNNwI (ORCPT ); Tue, 14 Mar 2023 09:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232446AbjCNNvu (ORCPT ); Tue, 14 Mar 2023 09:51:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC86DA0B3C for ; Tue, 14 Mar 2023 06:48:52 -0700 (PDT) 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 3FCD7B8197E for ; Tue, 14 Mar 2023 13:48:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72A29C433EF; Tue, 14 Mar 2023 13:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678801730; bh=g/MW7ho0Z6EA41ZdxjXmYeBeOwF39pSWPbXYeHXztNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ckGZa+HiuHpuykecdKkqCePUHQe4nkGsFpZHHAEQh2w3hPh5vCEtyH94REfSApOs2 cnOIK8nTcMexx6rCWhSD6CN5bq+YSRvA+Ozecad99ivGjDfKsfGJ71nbnYMi7FTpC1 mXjQeq1IqsxQEUPR1xtyThCmvXCmZrsaGllZuQ+dXt2Tv6R4X2XRtqdNm9s74SQLx9 kHYKMYe1iZCbCPdbP6VlLx5vMpZwctHqw5K0YNqzjoqouISmd1tY7UQ2Zw8NG5J1dx d7462G4FmJIvDDsRTWrWLkmZvTF6jSVAHOoaZKRGO+8pG6DP0F6u0q22vIy3C5A9LN n2GOmDO/kJSaQ== Date: Tue, 14 Mar 2023 15:48:45 +0200 From: Leon Romanovsky To: Tony Nguyen Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org, Jacob Keller , Michal Swiatkowski , Marek Szlosek Subject: Re: [PATCH net-next 05/14] ice: remove ice_mbx_deinit_snapshot Message-ID: <20230314134845.GI36557@unreal> References: <20230313182123.483057-1-anthony.l.nguyen@intel.com> <20230313182123.483057-6-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230313182123.483057-6-anthony.l.nguyen@intel.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Mar 13, 2023 at 11:21:14AM -0700, Tony Nguyen wrote: > From: Jacob Keller > > The ice_mbx_deinit_snapshot function's only remaining job is to clear the > previous snapshot data. This snapshot data is initialized when SR-IOV adds > VFs, so it is not necessary to clear this data when removing VFs. Since no > allocation occurs we no longer need to free anything and we can safely > remove this function. > > Signed-off-by: Jacob Keller > Reviewed-by: Michal Swiatkowski > Tested-by: Marek Szlosek > Signed-off-by: Tony Nguyen > --- > drivers/net/ethernet/intel/ice/ice_sriov.c | 5 +---- > drivers/net/ethernet/intel/ice/ice_vf_mbx.c | 14 -------------- > drivers/net/ethernet/intel/ice/ice_vf_mbx.h | 1 - > 3 files changed, 1 insertion(+), 19 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky