Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27270565rwd; Tue, 4 Jul 2023 00:10:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEVR8iNp3PffsGVcU7qW1Qx1R1FayXrnJDwYFlm8GxTui+TbG6qf3bNvhc8zRlpbvaUtJWO X-Received: by 2002:a17:902:7007:b0:1b7:fac8:51df with SMTP id y7-20020a170902700700b001b7fac851dfmr1744884plk.49.1688454612588; Tue, 04 Jul 2023 00:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688454612; cv=none; d=google.com; s=arc-20160816; b=f7NbtlHnUCJQTpRfCGtP/GqN2Nu1fjxq5A+PAQasGj8Yt4EBiSJjEZUpG0HeMs9t7d UEGVZkc9+bfN5nFVNHKMXjntavp2k3BjZlbBuAcQddvKzt7wABFJc+pZvvKos4ufdSGn /vk88m05ctySH/3y/cWvEtxIteyvcXRw1+7y2kChiFtNl8bKN4UqdknTSgcSscP+xUbG EVYC6IShDG8qHkShwoFqiOCKFJaQrOolPAE3g2eOdogaZubFtypOJOcTGWwSOQ2ZRE++ CHI1SIWk5XwxwJFB+K5QG3NsQI0vRzgyLWOiqCi0ByjId+l6KJ7NhgQKfIB2f/Ca/WSR GZKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=0IleIxpNn+PMHgV028qieppTFJnd95N2jqDTi5xYgrM=; fh=SAHdP2TDUOASREDHQ1KA4yu1gzHhmK/WVlhI3Zx08go=; b=0rszAyy8Zb9vXPduyR49rp2ZL0bmEIkwiEMAIGvRda7M8vSHE6y88RhaA/t4PO1L3E cPeB21Nc+8VW0MhLV46YPcgARVPb3/2RJF/Hj09fkWUNQfb28TJg+8SV8d77urEDqnnl q+lLW0WxG5QGh1qJjZla1YrnHZbYzAx/jrZ3AE0zD9nQeiiI0sTcW5MhFj2o0zJH/mLu MU5Q0hXgj6sMpZ0eLlEijy94wImL2TKFH7Gw9WNv17XtMpLGEF7u1TnDrDBMIQXG6L7V WLsn/OPCSziYaVi9siYjMgcqx1KCyPp+NzL66cWHPGSfVRhQ8QBNV1m8rMqzNfzCHLQB tgXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dyoTPU1i; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a170902e5c300b001b89ba798d2si3464173plf.498.2023.07.04.00.09.59; Tue, 04 Jul 2023 00:10:12 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dyoTPU1i; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbjGDG7x (ORCPT + 99 others); Tue, 4 Jul 2023 02:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjGDG7w (ORCPT ); Tue, 4 Jul 2023 02:59:52 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE9DEBE for ; Mon, 3 Jul 2023 23:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688453950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0IleIxpNn+PMHgV028qieppTFJnd95N2jqDTi5xYgrM=; b=dyoTPU1i+yLg1TBK0qS9gs8bouGEVYI6mK+xLnRhWpubxVTjVK668jrIQMwsvbxxq77OOy 8PP4h87x1fR3KmcJ0F5KSn/eTJgqn5SkCk4uHF1VEIWj3EAFuJ1YgJlDQuwU1BkLTuuLe7 zMntNOv+z8Xt+91o98rMoIdfmcs/2LQ= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-25-1D7gvFBTNbuDTCyPMe5kKw-1; Tue, 04 Jul 2023 02:59:09 -0400 X-MC-Unique: 1D7gvFBTNbuDTCyPMe5kKw-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7672918d8a4so154902885a.0 for ; Mon, 03 Jul 2023 23:59:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688453949; x=1691045949; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0IleIxpNn+PMHgV028qieppTFJnd95N2jqDTi5xYgrM=; b=MSh0/OXZ7ipCpd0NArJOrkumkYrnCkc+ZaLoZtofftgRS3aP6kNL03Xq0P8eMOeN/0 MUPZj/PlSUS8ZeKJT+X03XOZGoU/AmkubC/TD/sFalCJerfJXyINikK6AdhGsuG9b0bs tBqaQqvoiBWMIuJb53DwFbSH38eglhba4mlV3ZT672ubaVKZHak953O7MU2p9aD90Bas PEYSyeY6PkNS+BkAau49XrpDrs1O/ils+Zk9C44/+IQBOV/Z5nXLyHzYosFXR2Wqp9Xs 4xQQfhoZp+fhzYjQkMjfeNMcCxGqCXXlydKQGfZxw24f4pZ5/+21/gPqfEoKV2fUW+PH CClg== X-Gm-Message-State: ABy/qLYBcrnYB2uQKbYpdPpP6P0YtHKaw+fNINAXVL/RXtkVTKV8+xhe zkDYP9h4+LYhvRUYRww4mkt7Ty3+jSBalaVmu6BVDgElk56bN8lj3UiluNQA0hMmaz+lbLnqpaz Xqh/6qBD4lgXRaWvAEq7KQkAt X-Received: by 2002:a05:620a:1aa4:b0:765:58ac:9458 with SMTP id bl36-20020a05620a1aa400b0076558ac9458mr14719909qkb.7.1688453949234; Mon, 03 Jul 2023 23:59:09 -0700 (PDT) X-Received: by 2002:a05:620a:1aa4:b0:765:58ac:9458 with SMTP id bl36-20020a05620a1aa400b0076558ac9458mr14719893qkb.7.1688453948908; Mon, 03 Jul 2023 23:59:08 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-247-156.dyn.eolo.it. [146.241.247.156]) by smtp.gmail.com with ESMTPSA id pe34-20020a05620a852200b007623c96430csm9632974qkn.111.2023.07.03.23.59.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 23:59:08 -0700 (PDT) Message-ID: <8b0696a63d3f9cdcd4d9a8d933826e9ea1cb126b.camel@redhat.com> Subject: Re: [EXTERNAL] Re: [PATCH V4 net] net: mana: Fix MANA VF unload when host is unresponsive From: Paolo Abeni To: Souradeep Chakrabarti , Alexander Lobakin , souradeep chakrabarti Cc: KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , Long Li , Ajay Sharma , "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" , "stable@vger.kernel.org" Date: Tue, 04 Jul 2023 08:59:03 +0200 In-Reply-To: References: <1688374171-10534-1-git-send-email-schakrabarti@linux.microsoft.com> <83ef6401-8736-8416-c898-2fbbb786726e@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, 2023-07-03 at 19:55 +0000, Souradeep Chakrabarti wrote: > > -----Original Message----- > > From: Alexander Lobakin > > Sent: Monday, July 3, 2023 10:18 PM > > To: souradeep chakrabarti > > Cc: KY Srinivasan ; Haiyang Zhang > > ; wei.liu@kernel.org; Dexuan Cui > > ; davem@davemloft.net; edumazet@google.com; > > kuba@kernel.org; pabeni@redhat.com; Long Li ; Aja= y > > Sharma ; 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.or= g; > > linux-kernel@vger.kernel.org; linux-rdma@vger.kernel.org; > > stable@vger.kernel.org; Souradeep Chakrabarti > > Subject: [EXTERNAL] Re: [PATCH V4 net] net: mana: Fix MANA VF unload wh= en > > host is unresponsive > >=20 > > From: Souradeep Chakrabarti > > Date: Mon, 3 Jul 2023 01:49:31 -0700 > >=20 > > > From: Souradeep Chakrabarti > >=20 > > Please sync your Git name and Git mail account settings, so that your o= wn > > patches won't have "From:" when sending. From what I see, you need to > > correct first letters of name and surname to capital in the Git email s= ettings > > block. > Thank you for pointing, I will fix it. > >=20 > > >=20 > > > 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. > > >=20 > > > 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. > > >=20 > > > Signed-off-by: Souradeep Chakrabarti > > > > >=20 > > Where's "Fixes:" tagging the blamed commit? > This is present from the day zero of the mana driver code. > It has not been introduced in the code by any commit. >=20 Then the fixes tag should be: Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network A= dapter (MANA)") Cheers, Paolo