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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 64032C7EE25 for ; Tue, 16 May 2023 13:23:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 20ABA613ED; Tue, 16 May 2023 13:23:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 20ABA613ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1684243436; bh=SPlcIAPEqcmzhbXkuf+hg2HI6vge25pH2/xSVB2Psj4=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=mmdpSdGMwyY3Skj9HbAy7FtoNFmCbWiioLZFftzpAhIEM/N+KzxbaJs8jvtaxhMo3 m2zJyKfO56My7ULDo/mVhg44Oyd1uCiWZBozfMS0cCboPlkYfwGo1lVx4F/3RUsAj0 dTHo8ST8BtVbWfUphzw/cFpsiW1+vfHEe17L3unTopqYegJEjXRhiV65rO8/AUel8K IkHnewl9FtoRzoVUpeEf8KDIGzFUAbMj4hhBzNyIbOF/K1XwZVRqkNw+DRjFdkaBBk KU+in2/Z5Xv+WFu2QYqpjQYGSR7kc8fufsugjzhd4OQ4rLfuh86+O+fzAP3yV0EQbI zZ3IEAda/h//w== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6R2jlahgt_cw; Tue, 16 May 2023 13:23:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 3E1B860F83; Tue, 16 May 2023 13:23:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3E1B860F83 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E553C1BF255 for ; Tue, 16 May 2023 13:23:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id BD1F040576 for ; Tue, 16 May 2023 13:23:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org BD1F040576 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BP6MSLA3fLhS for ; Tue, 16 May 2023 13:23:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2E51B4056D Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by smtp2.osuosl.org (Postfix) with ESMTPS id 2E51B4056D for ; Tue, 16 May 2023 13:23:40 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10711"; a="350314270" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="350314270" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2023 06:23:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10711"; a="825560480" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="825560480" Received: from gklab-018-208.igk.intel.com ([10.102.18.208]) by orsmga004.jf.intel.com with ESMTP; 16 May 2023 06:23:38 -0700 From: Kamil Maziarz To: intel-wired-lan@lists.osuosl.org Date: Tue, 16 May 2023 15:23:31 +0200 Message-Id: <20230516132331.96017-5-kamil.maziarz@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230516132331.96017-1-kamil.maziarz@intel.com> References: <20230516132331.96017-1-kamil.maziarz@intel.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684243420; x=1715779420; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iA2X2CIZyNLge/iMWOMTftigNILKbuiMp+7Hcb9xV+Y=; b=K1FRXI6EWDUvhnPSj8Fqo/PsVE1IAKspcTGX6vJ1G0SBXXIP5/D8H9wM IBTEvGYBLxBpMozA/37O2aGeyQwZeRRPvyE/gJwhlkA8wlgRrkgPf1csf ySeolfIZZdW3KjC3WHDpl6X3yD7AzVcQqFkYe19D+GIo26ikrEHFqrEgw kEeyGaZual8aoSf10tfTH1mFc9sn784lOv+wgR9F5sumJEHbyIKS2Btm+ CkqIw9PVrKGKO29zj8IFSULbnNi2oWRjKdI1K3LC9u4cf8WaWm2E9w3kh DJS8GZyilgVVtvFu46E5ENZVQFaN6UPak2x2OlvIxQQDKFhjFeQemRa+b Q==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=K1FRXI6E Subject: [Intel-wired-lan] [PATCH iwl-net v7 4/4] Revert "iavf: Do not restart Tx queues after reset task failure" X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kamil Maziarz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" From: Marcin Szycik This reverts commit 08f1c147b7265245d67321585c68a27e990e0c4b. Netdev is no longer being detached during reset, so this fix can be reverted. Signed-off-by: Marcin Szycik Signed-off-by: Kamil Maziarz --- v1->v7: no changes --- drivers/net/ethernet/intel/iavf/iavf_main.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index 3d439f9ac97b..771463e53135 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -2986,6 +2986,7 @@ static void iavf_disable_vf(struct iavf_adapter *adapter) iavf_free_queues(adapter); memset(adapter->vf_res, 0, IAVF_VIRTCHNL_VF_RESOURCE_SIZE); iavf_shutdown_adminq(&adapter->hw); + adapter->netdev->flags &= ~IFF_UP; adapter->flags &= ~IAVF_FLAG_RESET_PENDING; iavf_change_state(adapter, __IAVF_DOWN); wake_up(&adapter->down_waitqueue); @@ -3080,11 +3081,6 @@ static void iavf_reset_task(struct work_struct *work) iavf_disable_vf(adapter); mutex_unlock(&adapter->client_lock); mutex_unlock(&adapter->crit_lock); - if (netif_running(netdev)) { - rtnl_lock(); - dev_close(netdev); - rtnl_unlock(); - } return; /* Do not attempt to reinit. It's dead, Jim. */ } @@ -3235,16 +3231,6 @@ static void iavf_reset_task(struct work_struct *work) mutex_unlock(&adapter->client_lock); mutex_unlock(&adapter->crit_lock); - - if (netif_running(netdev)) { - /* Close device to ensure that Tx queues will not be started - * during netif_device_attach() at the end of the reset task. - */ - rtnl_lock(); - dev_close(netdev); - rtnl_unlock(); - } - dev_err(&adapter->pdev->dev, "failed to allocate resources during reinit\n"); } -- 2.31.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan