🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15735

Re: [PATCH net-next] net: mana: Add CQE polling as first-level TX timeout recovery

#15735
From: Sahil Chandna
Date: Fri, 13 Nov 2026 08:34
42 lines
10446 bytes
On 12-11-2026 17:37, Breno Leitao wrote:
> Hello Sahil,
> 
> On Thu, Nov 12, 2026 at 04:57:18AM -0600, Sahil Chandna wrote:
>> Implement a graduated recovery approach: on the first TX timeout (or
>> when the previous timeout was more than 2 minutes ago), schedule NAPI on
>> the stalled queue's TX CQ via napi_schedule(). This triggers
>> mana_poll_tx_cq() through the normal NAPI path, processing any pending
>> completions without relying on the interrupt and recovering
>> missed-interrupt scenarios without queue reset.
> 
> Which interrupt is being missed here?
> 
Hi Breno,

It is the TX CQ completion interrupt. After NAPI finishes, it re-arms
the TX CQ. When a new CQE arrives, the hardware post EQE, which raises
the MSI-X and schedules NAPI. If that notification for the TX CQ is lost
, NAPI never runs for the TX CQ and pending_sends never drains and the
queue stays stopped,  so napi_schedule() polls the CQ, reaps the CQEs
and re-arms it.
>> If any subsequent TX timeout fires on any queue, within 2 minutes of
>> the previous one, escalate to the existing port-level detach/attach
>> reset, as the CQE poll did not recover the queue.
> 
> How was 2 minutes chosen? mana sets watchdog_timeo to 15 * HZ, no?
The watchdog_timeo is TX stall timeout setting i.e if a queue remains
stalled for this much time, it trigger watchdog timeout. Here, 2 minute
is not timeout/wait. The 2 minutes here is for deciding whether a new
queue stall event is a repeat of the previous incident or a new,
unrelated one that should get the cheap poll first. For e.g. if a queue
gets stalled, 15 * HZ sec later, timeout occurs and this patch trigger
manual NAPI, if another stall occurs (it can be on any queue) within 2
minutes of last one, the existing recovery mechanism of mana
detach/attach will be tried.The patch is adding a first level less
destructive recovery first.
For selecting 2 minutes, I do not have any hardware basis for it afaik,
but I can confirm and check with our host team as well.
Hope this helps !
Regards,
Sahil
Technical Details
Message-ID: <fc2ae552-86ee-40af-a997-454c2d3b176d@linux.microsoft.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362498-linux-kernel-netdev=dewy.ru
References: <20261112105752.978446-1-sahilchandna@linux.microsoft.com> <avWrMQK_DuZ1hAwD@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362498-linux-kernel-netdev=dewy.ru
From: sahilchandna@linux.microsoft.com (Sahil Chandna)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: mana: Add CQE polling as first-level TX timeout recovery
Date: Fri, 13 Nov 2026 14:04:08 +0530
Organization: Usenet Network
Message-ID: <fc2ae552-86ee-40af-a997-454c2d3b176d@linux.microsoft.com>
References: <20261112105752.978446-1-sahilchandna@linux.microsoft.com> <avWrMQK_DuZ1hAwD@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network; logging-data="1347727"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jeDN1x6WUZjkm4SQTOguKt7ORgY= sha256:CIecI7zY8rMvmGYeAMIkET9fy3ygJG+tC+2j9/HeJRY= sha1:i9sioX1/K9K+64797OxboaQDNjo= sha256:Ox7Aj9yFHPEPG+TSdgHUskctvVxGsVudP1hvSq7HPOI=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 2A7BB114539; Fri, 13 Nov 2026 16:11:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.microsoft.com
X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zKeUbiPRH_Yl; Fri, 13 Nov 2026 16:11:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362498-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id CF95B114538; Fri, 13 Nov 2026 16:11:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1CA8C2A3C0B; Fri, 13 Nov 2026 08:35:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794558857; b=WFVNIxqvwtOG85yxR5EDBiwSPEfpoy7nLsRYzqU4/pXtnnEisunRCyJM7cFopbrYUerK xi+tmNcYU39FbSokPpsGOltLc4OmlOFBRw81zok/LhJg2vtUbfs/WFwcPqnG5Ulv3CkpG VHQv6i8PIL9ciTm2aZJaElp7wLjzcbPX+wkik4pSnMj8EbN8AFzbhxBejW7R9nc3c8+jR RBjymqIIOIhDjBjws22GAqM06+wlIhGzfD54vt6KlM8lXAyyYB8K2BGb92M8TYlJnj4zZ w41zF3V8GoKjKYLh/WB2Gppmso4T4JEcLS830MeZiGbGSjdhtYR3Nug4OxjxCR2TrKg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794558857; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:Message-ID:Date:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=PqlGlQac1A9N90ytvOpZM4/ZXGtYzdUrvraQxFDjpTI=; b=t4t6WWg3221POF+ffjzZBvq2/3XCMZ3m/VSb1rrRuChThMilCxhmQq4amMSGyl8ueuNE /16cDX/AzCl4aYFuwxs4Q+IYTvBzxWVrJO2Gogs0zGufars9ujh3WHJ9DGWRBC8j+fX7r k43bf7kcbMGW5a+gi6gB7cXzPXC3gIkXJ5yuxnkoi/ynUp3Vh8I605HAVBV3iVdRjzLTt O0g3Bv8FE6f3hwWCu13augyRj1es3rIQbbRqaZSeb38XcSAoU5wZXGtH22LR2JpDq7J+6 TFRQF9rMygnxt/Qc6f2IuJvlZsMAnmerS+ZkJh65YjAotwMFMASjOsZv0mBcrzV7RYg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b="mr1FJ/U1"; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A055606A8A8; Fri, 13 Nov 2026 08:34:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=mr1FJ/U1
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794558856; b=RHH4VzGX4fyefTjlX+xQc39WOxvgI68N1ndBVlpgAxa0ZAl3zUSbuzoI7gsW/notAArK ByXBbapP0HUFdH3E7MmffH4QqC8RW/x9FJ8aRVCwybBalwvqi+xZpc5OGui0AE9JLMoBu e/SysPrOtbG0fsk7d21JnbgWcdevDpm3rVWd8DhHlJF6I3h/RAqTPOK+2RAupO/83nhRo 6Yxk9dwgU+VsuZ4N/f3hEviquzWFyols4/5WAprAPuPXB7hhzAp4z/oAKGGfm9yqIjvOK kls8aMM6zBG90pJynmHCTKv4HKibLr4nSzukoyNAa2h0aApQQXOEcgoBfO21mK+p04w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794558856; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=PqlGlQac1A9N90ytvOpZM4/ZXGtYzdUrvraQxFDjpTI=; b=x0H/ji7syxnAKfLbHCnHcvkSUrGB6xcyuqMsm1d4Abd/ukPSsOaCRuCT2Lr5YB7xZR2I n2k1kvYMyZhwCYgnAi/P/Lrwla5JSofqER6heZyyiDq1eealbKrD/frTBKuOOYD5EuCGu lbQnT8aCYX7iWur1kr06IMe5/Grr+cNOTHUJJWAe9nl8P6xxgMKHIsT5i4ku3Ut/FsCl0 byH3ruBh5GD+SVdnY5tmtxKQzonbtXTI1jcEcKGjOqhUkgH79kiGPLghXmE3CCwsYAs5i WOOdDaIiqqysqcFv82PFHTEZF59KiBlV2Cjz6KePHUTys1OVSu/f3u+AcNMrDNSjjCw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b="mr1FJ/U1"; arc=none smtp.remote-ip=13.77.154.182
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE9B606A338; Fri, 13 Nov 2026 08:34:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BE9B606A338
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com
X-Received: from [10.26.7.43] (unknown [4.213.232.19]) by linux.microsoft.com (Postfix) with ESMTPSA id 465FB20B7166; Fri, 13 Nov 2026 00:34:07 -0800 (PST)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 465FB20B7166
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1794558851; bh=PqlGlQac1A9N90ytvOpZM4/ZXGtYzdUrvraQxFDjpTI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mr1FJ/U11L6/0Syh44CR6HPl52bAyo6Kzg9D/BAgOx8zTtJ/Np5/GAG5d3yn2hkHH vHLqLD0hEm1yc/MPMObiiwtrhFt9xg07aceKwWJ7ap8whlTdQNo6LeWf1uhpO1uoIQ /i+Og+wxX61FJ5loIU0qmLjvUekpu3h6PNvFjUkQ=
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, weh@microsoft.com, kotaranov@microsoft.com, horms@kernel.org, ernis@linux.microsoft.com, gargaditya@linux.microsoft.com, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org
X-In-Reply-To: <avWrMQK_DuZ1hAwD@gmail.com>
X-Received-Bytes: 10249