🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15121

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

#15121
From: Breno Leitao
Date: Thu, 12 Nov 2026 12:07
18 lines
9472 bytes
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?

> 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?
Technical Details
Message-ID: <avWrMQK_DuZ1hAwD@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361787-linux-kernel-netdev=dewy.ru
References: <20261112105752.978446-1-sahilchandna@linux.microsoft.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361787-linux-kernel-netdev=dewy.ru
From: leitao@debian.org (Breno Leitao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: mana: Add CQE polling as first-level TX
 timeout recovery
Date: Thu, 12 Nov 2026 04:07:06 -0800
Organization: Usenet Network
Message-ID: <avWrMQK_DuZ1hAwD@gmail.com>
References: <20261112105752.978446-1-sahilchandna@linux.microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1084405"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WpKBMW0FI4Xf9I5N4UPhfhrLDzA= sha256:weXP8CXrt7WFpsdsiPwmasKuMMcrLY1W2HNZRXpF1ns=
	sha1:gtC1o4PooFhI6e+2n+dgd1GNqrw= sha256:axqQj2r+67pY0UARMxIt3Z8rvybT4iCoYjtAABTI+Tc=
Content-Disposition: inline
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 8943A114218; Thu, 12 Nov 2026 15:32:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.052
X-Spam-Status: No, score=-3.052 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 (2048-bit key)
	header.d=debian.org
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 VHK0NKSJye86;
	Thu, 12 Nov 2026 15:32:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-361787-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 765E21141D9; Thu, 12 Nov 2026 15:32:07 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 54B33E3F0C; Thu, 12 Nov 2026 12:07:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794485247;
	b=ELiIgmEU6lRGMdMujI6K4U8GQaXX+CBfaA+UcQGfoL7e4rchB7l2guJ6EnMRwsEIXywr
	 prz5Fog2Xt+QWMbo3ftQXBKf4TcoH6jbWRZJ9mI8oIJCJ3cH5K0WDpzzLE8HAQDnGCQ/G
	 8IjOvXZvk1xlscC50GuwcVIEwC5LDP4tkhM4lg353dHFhyX+F2NsB8hTfGrxm++p6NfkW
	 hhrP2J6tSFG0zvnLDCF0Vns3i8RDoVy0wTJF/VbVekv6/DhCadpADh8dTLeAONCWdv9J8
	 WpE7ik0wd09BISqVJOkz1e75imt4owNCbLYE9uqwev+vhgCwhudwdOuFtR9FnL16zuA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794485247;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:
	 X-Debian-User;
	bh=s2BpDYD2o1GF2JbXETSuauSs2W5dCUgUiyPoNy/wkj4=;
	b=ZsZhFiU1PqFlwCfFbdeLlmufGmHn4F/kNURakdqfAQbuie9QFQxHRMLei4tNkhpSZpa8
	 bzJWf86pFYG1VrlIddykWrfbDkw7mUXPKQx4P7l0hT/yQ87/66qqViSl49qu6rZWNq+9A
	 J0XfeHl3eTJ6J8x914haEkYqffPAg8c4hzJIDWdOzoAXyWQ1AfBu2AdOPdjEhcGdu3MPK
	 YB9Ow4atUJxLssyccardRR6WV2odzkC9hpK/qd0pUUK93/5aVkc33wt/B3Z1d6ywHSQks
	 YuwOR/fheuDkUcnKsWpuVmat6g3Ce5tOSWGoLPoVAjEu6V5DR7E0H/9ISedRScWmYQw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=BpRKMxcR;
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	arc=pass header.oldest-pass=0 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 C91FE606A334;
	Thu, 12 Nov 2026 12:07:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=BpRKMxcR
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794485242;
	b=ZSXxm0MlCWglxt1XLcB+kCvW5MoK/0HK/cGjOtx0E0RjzKG5VUIcntkvOD/m6awmYFbR
	 VLv/EMGcif0H32kl5L1w7bs0vB2JfMaVL99Hp2mqVc8IlU7pEmZtX1ecvgzIlMK+/Gped
	 ztbyr57D5xC0gVVatGVnmGg+p6SIYz5yu1/ha8dBuXaYcWq2p4YktaZfDpWUv5JO64SZa
	 k8WJZ3hyLqZGRv1SNAYfrFRLqmitzUCa+ylgs+3HU52ltCWhq5OsvgeDLNuqPhFASVhV5
	 mA3I2vTqhE3EuH8sd9rnNbZ3RiK6pva3qO7afKBN8sdx1X6Hp0Zd378tdVg/H+ObgpA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794485242;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Debian-User;
	bh=s2BpDYD2o1GF2JbXETSuauSs2W5dCUgUiyPoNy/wkj4=;
	b=WpFb5A9ihYwQTcoJdYKsdqRz11yDy8ov6YrSV1/OIDIrQlPUaR1Uu6vsZsNapWDHTNyb
	 hu8jTssMD+szFj1ERoq9b3RXr+nZWUJ4XYSWtQgo8RVOBg6DNl79ljiMwCdukO6BN+0Pe
	 OJOhwNEgBQssRf9VTM7AzGQV5pZMbWdNMsTZ9dIBUi76ZO+hZJOf6/gGIacSQnBUtgZSV
	 OWiY0+GczFd3/xj+O8DORY3pcOzeNny5XtC+d+pXLh4T2V/buQHbXfaYRQ7ilcWvSMSaa
	 cnR+py8PgnM6maSzc2pomn5jufEksHaLZVTGpn2kdLuIpGWMKuXwnryvIr3H/IZcyCA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=BpRKMxcR;
	arc=none smtp.remote-ip=82.195.75.108
X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8656B606A321;
	Thu, 12 Nov 2026 12:07:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8656B606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:Reply-To:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=s2BpDYD2o1GF2JbXETSuauSs2W5dCUgUiyPoNy/wkj4=; b=BpRKMxcRXfYulH9zjS1/Las0Qn
	Vz6W2pTFE7YPudUcr7Wi342UTBCrxBS6IqrgsJoKnw/OOFCYXQIkCFkBHx+Pcc7komjSR6a33X0W3
	ATVgRVK9pXUqVZ0x+hremsXIUCgVYFULM7Gl+XlWxAbu5QNjyJpwgNl0C79CMRCPaTRd3TQYr1ile
	+UNGAJuzD0xSQ/2RRNU+1qS/PLRHFUuyddgZ0Ynzv4XGgQEJMOq2DD7RFvMfxLvrEitlxUwO8HYiH
	Gn/Z9Tacg8sZtfs5E1H85VfCbCu7SvTnXCulTKYifaCyIhiasOt4WyK6mXSwbp7stl+K7EW+3dQeW
	vt5slk/g==;
X-Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <leitao@debian.org>)
	id 1xRTaC-00DxPw-09;
	Thu, 12 Nov 2026 12:07:12 +0000
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-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-In-Reply-To: <20261112105752.978446-1-sahilchandna@linux.microsoft.com>
X-Debian-User: leitao