Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1536394rwo; Wed, 2 Aug 2023 16:12:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOVVaMtT/OqBeQgcBc8HLJuCTphJ83nr52ZEHtTmvvHu3GewqCQDE+/ZjilxvwrFkgkY4r X-Received: by 2002:a17:906:18f:b0:994:4ebe:7a6d with SMTP id 15-20020a170906018f00b009944ebe7a6dmr6610276ejb.19.1691017967519; Wed, 02 Aug 2023 16:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691017967; cv=none; d=google.com; s=arc-20160816; b=ikR/JAv7GYWwIYKn+0GDuk8TXzsunRhu0NQ3gQBsY0D2d5QUj+d3M2mBPLsu4472BZ xSPSR7HVfgVosXmHJ+fycEB7JO+uGUOqbfVT2KZD3VgWPcyUfihuqSny+hRMwgS0NUEu gaKCnQ4uaxRM3+VpHCJB5adsTm4LpMyWRHxPuCsQi4O7rsX5h+ev7QVM6hZ074uqurM8 hxDsjS1bBLAGLUmpdb0qN0zoElPBKbJogGv7RcH5nhw5Jhe+CpSNjAwqHL+5eECE88/B lbYzAtbS95ZDgl/WsLwX64QLCxrxmzRGud4XIkNAuIbYtOPQx8oFUABvB/v/ctpgTkor P9ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DSZP6s8E87YIozKHHuno/d/txSVRFI7AHAk3fEQT3oo=; fh=IjZK83wAN/z+qpBwyIlU7xQwYXiQDcTpO5bSNLkplQQ=; b=mW2l6IyIHDnn4f+r2pYsJ6n8SA+ls4sqQruICFwKetIFOSj71KCzQkPTcQdgS/F76i CH/Iw+r5Cn0Wb5ocxgiF4v1ByPufQUZsoZKw0EbJ8Ar5fE4IU7mdX3xVoOI45Z8vHYYf dyR7ghltHH5jURqUjo/nW7Lu5spaGESc7fDTMdNpofUMb0p2s2NjmEVr32QnG/qjXDK1 WDP+hwGqxulLpCv5qGyorQRlizxw+XxAOa0lr0zXO1MIEOf5ZKwxDtbpeMswwQbrfzF0 1oQF61v5ya4vb9uO6KuugSgNpht+HD83ruCyCA61MiGVVecC6RDzLKjiR92a7M3swYA+ R/OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 ci18-20020a170906c35200b0099bccc6164asi1944791ejb.503.2023.08.02.16.12.23; Wed, 02 Aug 2023 16:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231941AbjHBWu5 (ORCPT + 99 others); Wed, 2 Aug 2023 18:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjHBWu4 (ORCPT ); Wed, 2 Aug 2023 18:50:56 -0400 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921A89B; Wed, 2 Aug 2023 15:50:55 -0700 (PDT) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-686f8614ce5so300275b3a.3; Wed, 02 Aug 2023 15:50:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691016655; x=1691621455; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DSZP6s8E87YIozKHHuno/d/txSVRFI7AHAk3fEQT3oo=; b=QbZOKhR3PWBARSvzW1NZN7USu+BXZj4uutwyCwIutvUqKuNeJSvrER2r8Mlt2CmIEq LhY5Qmf35B05TAGS0ITQQrvsiWiNhMWcBw+uo6QcfjnnAcxd7fhdKSASsfGhf+CYtUuV CRf1lLjFluFu6KMs8hbaegRxh0zISof9jHIOSRsE58nphpjXsgsWp+n0PECvkvPTLfvE Ueq94L44zfkbjyhE7+opy6sSrqKKAva7qk0mommmmrSHghFg0xQaCuhIVG7zbOhLUAJv k7oofj6aySnB3oBelnjWChr6uS7t65k2m3Mu7oQFJMAIL1a92DYDa0SgFc71MtQadJjl r1Eg== X-Gm-Message-State: ABy/qLZxp+Bd/Ccjm8Q0EtgYfRQ6HjD+v3ebI7fYgV2099VcY+cV0LG3 X6IIQXiOFAofXK1bBpD3pK8= X-Received: by 2002:a05:6a20:a10e:b0:13d:b318:5c70 with SMTP id q14-20020a056a20a10e00b0013db3185c70mr13020943pzk.19.1691016655000; Wed, 02 Aug 2023 15:50:55 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id x26-20020a62fb1a000000b00686e6e2b556sm11467645pfm.26.2023.08.02.15.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 15:50:54 -0700 (PDT) Date: Wed, 2 Aug 2023 22:50:48 +0000 From: Wei Liu To: Souradeep Chakrabarti Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, longli@microsoft.com, sharmaajay@microsoft.com, leon@kernel.org, cai.huoqing@linux.dev, ssengar@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, schakrabarti@microsoft.com, stable@vger.kernel.org Subject: Re: [PATCH V6 net] net: mana: Fix MANA VF unload when hardware is Message-ID: References: <1690377336-1353-1-git-send-email-schakrabarti@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1690377336-1353-1-git-send-email-schakrabarti@linux.microsoft.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 06:15:36AM -0700, Souradeep Chakrabarti wrote: > When unloading the MANA driver, mana_dealloc_queues() waits for the MANA > hardware to complete any inflight packets and set the pending send count > to zero. But if the hardware has failed, mana_dealloc_queues() > could wait forever. > > Fix this by adding a timeout to the wait. Set the timeout to 120 seconds, > which is a somewhat arbitrary value that is more than long enough for > functional hardware to complete any sends. > > Cc: stable@vger.kernel.org > Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)") > > Signed-off-by: Souradeep Chakrabarti Hi Souradeep. The subject line of this patch seems to be cut off half way. Thanks, Wei.