Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15873686rwd; Mon, 26 Jun 2023 02:30:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4B9bwUex0yzGs6hFaPjEHHmhLiWXj4FU4U0e8mXECSFvKF6OY6AthxG3s/2E6x3hPAhB5Q X-Received: by 2002:a17:902:b289:b0:1b7:fb17:2edb with SMTP id u9-20020a170902b28900b001b7fb172edbmr1718019plr.18.1687771834316; Mon, 26 Jun 2023 02:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687771834; cv=none; d=google.com; s=arc-20160816; b=wit7GD7eqJV12QhBmY2yF37xn/z81X+y+T0xjxVfPJEzfQ3A0WneCYcRj9b6NQTlxA WNArgoTKjfaGS4Za8WGuuu9s5M66WWMqOenOnzpRFZYYawhNcYAbYP52wlHwuYcrP2EO hkrbXaVGS716DVyAeIN17pKRIbvcqCmcoTIpBBOBIDsRjx2tQ0f/l0LoAv8BB+JX6A6h g2GRGGskDEBNNePNybcFO0qlKSuZ/yfHPkm6roz4nkIQ85+C4CZ1nLda0DHC3RCF6aZk YJTr3QUGiE0ccrTnjK6+Ban7+4jvExQr2Nh27TUcmuurYsybttWOU30PIak1Hy5KLkNv sQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=rOKa5FGhb2DtzgJz+qz23ZNtLP6CMkP1uTRy0DPG8qg=; fh=qKGHJM/OaNHTo96+1HG2BqACTjy4q9C0dbufp/+3Ef4=; b=UKmi6QkD6VK9iJ+5Urv4vdc0h45/pijLmDEFsximsmdfwQJAA/govb1syZA64pM5Fi znHk6S+3T0RoVj0+NDiOEh7Q1C6K688EvpkNYGYIR/Bgt7FU5/59sZcxR1dbjdLkodas UmX5mfd+I70pvmJbk0uGyUQzfDuwfAFnpr9nkAY04syP3VzBBe6QSbZJ7tKV/5tC1Rn2 CL4wDQxQj651tb/MN3oSOk0789xMm4GApJRDcijE9fPvo4HJfbJFtFJ1vnglr2AMn4Zg 02I2S+ThEC259BKJRVBAoknUrpm+fQl0WuE7IrHFcgnXPvVI4dlMTJi22ieue7OZ0KtI IOdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=JPMkNncr; 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=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a170903410200b001b7e6528c6fsi3640439pld.108.2023.06.26.02.30.22; Mon, 26 Jun 2023 02:30:34 -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=@linux.microsoft.com header.s=default header.b=JPMkNncr; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjFZJVD (ORCPT + 99 others); Mon, 26 Jun 2023 05:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230457AbjFZJUG (ORCPT ); Mon, 26 Jun 2023 05:20:06 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 16ADC198A; Mon, 26 Jun 2023 02:17:44 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1099) id 609A621C3F2C; Mon, 26 Jun 2023 02:17:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 609A621C3F2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1687771063; bh=rOKa5FGhb2DtzgJz+qz23ZNtLP6CMkP1uTRy0DPG8qg=; h=From:To:Cc:Subject:Date:From; b=JPMkNncr0F9+kMGbGy3r+uJw6J5PmxpUkfNh75rAVDhqIn94+OaL/rYidImL7t5kd XDk3QI158Q0CzvAJkiILrBXFQE4RFN0Bvm7UNoqZwFzC7VU6LQVDaa+Xtw2LAB46rU 2dU7ysn4L57YNwJ/jh6a59rKn13kHmWRRYbYNwAA= From: souradeep chakrabarti To: 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 Cc: stable@vger.kernel.org, schakrabarti@microsoft.com, Souradeep Chakrabarti Subject: [PATCH 0/2 V3 net] net: mana: Fix MANA VF unload when host is unresponsive Date: Mon, 26 Jun 2023 02:17:38 -0700 Message-Id: <1687771058-26634-1-git-send-email-schakrabarti@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 From: Souradeep Chakrabarti VF unload gets stuck in MANA driver, when the host is not responding. The function mana_dealloc_queues() tries to clear the inflight packets, and gets stuck in while loop. Another problem in this scenario is the timeout from hwc send request. These patch add fix for the same. In mana driver we are adding a timeout in the while loop, to fix it. Also we are adding a new attribute in mana_context, which gets set when mana_hwc_send_request() hits a timeout because of host unresponsiveness. Souradeep Chakrabarti (2): net: mana: Fix MANA VF unload when host is unresponsive net: mana: Fix MANA VF unload when host is unresponsive .../net/ethernet/microsoft/mana/gdma_main.c | 4 +++- .../net/ethernet/microsoft/mana/hw_channel.c | 12 +++++++++++- drivers/net/ethernet/microsoft/mana/mana_en.c | 19 +++++++++++++++++-- include/net/mana/mana.h | 2 ++ 4 files changed, 33 insertions(+), 4 deletions(-) -- 2.34.1