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 5200AC00140 for ; Sat, 13 Aug 2022 00:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233668AbiHMANY (ORCPT ); Fri, 12 Aug 2022 20:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiHMANW (ORCPT ); Fri, 12 Aug 2022 20:13:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E31D68FD56 for ; Fri, 12 Aug 2022 17:13:21 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3AF66618C4 for ; Sat, 13 Aug 2022 00:13:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E543C433D6; Sat, 13 Aug 2022 00:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660349600; bh=0eZDSAkMX5BjvUFFPp1/nITX/fIEFpOwCALWaMOB4z4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fsPuxNg1c57thLkorZ+A8T9C7Jv2ihGv1NPGk3ThUpYhBpUJctZtF5+zwc5HoVeJz D6hLq0cQjNSywDzReX+jM9GmRJsWZneajviKm0gyJSeLza/VJcr5JRr35Yn107emFw bMi1Uv7+9YBzycnru+mCMcRR+N8KZgfLuoaqghXEgqhXtFPvo7Z5kLknasATity82t DfsYhNf6YfRhpt8nXuhBTChSMj6dh3ZwjdXK8bAyeRojikxe+7Ip2iiDZvyPQH490U Z7tAiC4fc0eQHBwigW8IsapQ7MBaGYNzUVRv8+b0jCwwAGkHA4fNuqRX08w8HSOXMo sG0l0YligXo8g== Date: Fri, 12 Aug 2022 17:13:19 -0700 From: Jakub Kicinski To: Tony Nguyen Cc: davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, Michal Jaron , netdev@vger.kernel.org, Jedrzej Jagielski , Marek Szlosek Subject: Re: [PATCH net 2/2] ice: Fix call trace with null VSI during VF reset Message-ID: <20220812171319.495e33f5@kernel.org> In-Reply-To: <20220811161714.305094-3-anthony.l.nguyen@intel.com> References: <20220811161714.305094-1-anthony.l.nguyen@intel.com> <20220811161714.305094-3-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 11 Aug 2022 09:17:14 -0700 Tony Nguyen wrote: > This WARN_ON() is unnecessary and causes call trace, despite that > call trace, driver still works. There is no need for this warn > because this piece of code is responsible for disabling VF's Tx/Rx > queues when VF is disabled, but when VF is already removed there > is no need to do reset or disable queues. Can't you flush the service work when disabling VFs instead? Seems better to try to keep the system in a consistent state than add "if NULL return;" in random places :S