🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17604

Re: [PATCH net 0/2] net: keep txq->trans_start on repeated netif_tx_stop_queue()

#17604
From: Xia Yan
Date: Tue, 17 Nov 2026 03:11
22 lines
9675 bytes
On 11/16/26 09:37, Curtis McBurney wrote:
> Since commit 95ecba62e2fd ("net: fix races in
> netdev_tx_sent_queue()/dev_watchdog()"), every netif_tx_stop_queue()
> call writes txq->trans_start, also on a queue that is already stopped.

Each of the four drivers re-arms its hang check from a two-second
watchdog task and stops the queue again while the hang persists,
without waking it: e1000 and e1000e via netif_stop_queue() from
e1000_clean_tx_irq() and e1000_print_hw_hang(), igb and igc via
netif_stop_subqueue(). All four set watchdog_timeo to 5 seconds, so
with the unconditional write each repeat stop moves trans_start
another two seconds forward and dev_watchdog() never reaches
trans_start + watchdog_timeo.

The ordering of 95ecba62e2fd survives the gate: the WRITE_ONCE still
precedes the barrier and the set_bit(), and both of those remain
unconditional. A queue stopped only by BQL still gets a stamp, since
the gate tests DRV_XOFF alone. That case is the last of the KUnit
tests.

Reviewed-by: Xia Yan <yanxia@cmss.chinamobile.com>
Technical Details
Message-ID: <1794885099000.591574.1428654905365174928@cmss.chinamobile.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364926-linux-kernel-netdev=dewy.ru
References: <20261116143716.367451-1-cmcburney@telcobridges.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364926-linux-kernel-netdev=dewy.ru
From: yanxia@cmss.chinamobile.com (Xia Yan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/2] net: keep txq->trans_start on repeated
 netif_tx_stop_queue()
Date: Tue, 17 Nov 2026 11:11:39 +0800
Organization: Usenet Network
Message-ID: <1794885099000.591574.1428654905365174928@cmss.chinamobile.com>
References: <20261116143716.367451-1-cmcburney@telcobridges.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2227523"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:uVWb7l9rwWjRern/I3WT56DzbFY= sha256:UL94m1LyUKWHdkdZjvVSyTbFVeAKaig5jOc5q8nWzik=
	sha1:8LeYii0U7NzycwzfJPSCXlibUUs= sha256:mkAEIHcKLUXbwYvpcif/yDxxhmPLsxeclIIGfx4VHx0=
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 919C2114E31; Tue, 17 Nov 2026 06:12:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Status: No, score=-2.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=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,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key)
	reason="fail (body has been altered)" header.d=cmss.chinamobile.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 arkvip_gyTMh;
	Tue, 17 Nov 2026 06:12:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-364926-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 6F4A3114E1D; Tue, 17 Nov 2026 06:12:06 +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 B793725245; Tue, 17 Nov 2026 03:11:59 +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=1794885112;
	b=SlbMh/PtJMx0CRTSFktZI5enJthVkQjwcgMiNvMkftsceICwM1W/B0UVcif3IgXBoazv
	 qP4x36rO/+LBaNhjY/1v0/YY2BwwPunwRuSNu7VBPYd5C32l0x7SR68bA4gZjhMwYIMor
	 hMfpf41YqZiJ6SSXy+51+PxTPv3bs4oXCFVF1ylIS6sRqE17ObCcIOPca5lLX6OzdOU7y
	 cvGP6STtT/HeOXfxnxj9kHsTH9/oMXRIhO+wigyhgMnGD5er2TFOE3Ct98MEZJxZAIYRh
	 TlQLLJCGIThJkrIMk5CVjytE2maH1kELvbavNlZAqkSq/IWMItK3aD2R4l9odB5WJAg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794885112;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo:
	 X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:
	 Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:In-Reply-To:
	 References:Content-Type:Content-Transfer-Encoding:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version;
	bh=+wnSZ7A7PPnlmFWzjSRIWTnpzlW48m+JuWgJ9p2+anU=;
	b=h+C8X3bqLo+2cPX1Pq6ci6ygktwnKjicTLBFjsMrOmOPWIh/bGHwFlFDKzuJYCZcGEmp
	 yO3SNzMZoLjf+qUuOktDKntufUVyla4zoZHN82yrK+jrKluB4quRFsXRAk1XpNMCUocCT
	 27MYXbHe9ns2lResSxuiTgbxXN/DGn6ihCwuqJLnCt/VnQ5MeYkYiZ4iM4pIDFVad8ZUH
	 uE0ZWi/2En73NCnDyO5vOeDcixYHzu1UvF9xZ2iVp0IUan/WaheBxJsh25sk8KWA5GGat
	 XXpAlnudfA12ocy+GkHuGIX8gVPabkzCHIbZD1TAMw4kiroN2/5v4F2s40Rf4zPpPTg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=g2QBG3Vn;
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	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 E8BC4606A881;
	Tue, 17 Nov 2026 03:11:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=g2QBG3Vn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.137
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794885106;
	b=Z3nDenqPFQ/RZq6qXtiVWG66brsIeoaz7NCeEMa+4XL/lpaGh8dCm/YtpUhpW+/bXBav
	 Jo2azc5Nk9wCAQwCVBcKvLtiUzLzTkodas54Q0JBTQkMcLOGbQfdQCYUj56BzwtaaAirj
	 nVsuBERK+UMyKDB9h2FhuxIY2EPzS6jOomZ4hkXJe8jhwBKnO3Af36l/NSv2ybdZTT2FH
	 DUVS66Axp3xIUhhHBp/opwPHiubl0E3XJS0LEIHtiU+8ETVMnHmsCeQC5NlLuuOT9l174
	 pglV+VJHtqFIF9YwaF2+AWN2+c3zLrHsjl0nEJCng5+hPAlR+0PUUOjq6pkXTVaWJEQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794885106;
	h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:
	 X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From:
	 To:Cc:Subject:Date:Message-ID:In-Reply-To:References:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=+wnSZ7A7PPnlmFWzjSRIWTnpzlW48m+JuWgJ9p2+anU=;
	b=UO/mHq5irBmqqxDapMcX3eEE55kJf639XoBByo4lLd1tcbuNjmyf6ZHwexMzmcuh3MlE
	 0KK4s8d0sfY2TfiPADyaMbquEQInqlP4xPwoNfXpcNFOSB3jWALiL/v+AqQFlv5dqNU5k
	 N65q3VyB30UH26NOmntQyWc2K4NZP8oam498r1gDl+r6aR1mBlMRTMfmHzYtWB6ezVwme
	 hfyG0O5KHzOoOoPP7kx6BvzFE3WHnoWDjKmbXzkyX/TSb0zUQ8nro+XAOkzvhaDKNljQv
	 JS4XB6VArHY3cY4Y07ueqCRb1TMfkX9QQkgSA3JSnGWa32/wZtitQ2q+FkCQK1rYVUw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=g2QBG3Vn;
	arc=none smtp.remote-ip=111.22.67.137
X-Received: from cmccmta4.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 72971606A31C;
	Tue, 17 Nov 2026 03:11:42 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 72971606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=cmss.chinamobile.com; s=default; l=0;
	h=from:subject:message-id:to:cc:mime-version;
	bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
	b=g2QBG3VnPk2eHmbkyQ0RNnW94jSo2CUEHcjbvroXSqFQwDRzPNktNY90pEGCm9tM4LOq054aApWFk
	 +MVr6WXwVOjYq9tqRKVpqbbivB4/l+DxCPQ3RxfPdnr89+IyCDFU/moUhy6baBipBLDoOw+qM2m1cL
	 kjrYDdRRBd4SXxtc=
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87])
	by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee86afbc5ed53c-a4a77;
	Tue, 17 Nov 2026 11:11:41 +0800 (CST)
X-RM-TRANSID: 2ee86afbc5ed53c-a4a77
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from [198.18.0.50] (unknown[223.108.79.102])
	by rmsmtp-syy-appsvr10-12010 (RichMail) with SMTP id 2eea6afbc5eb43c-a097c;
	Tue, 17 Nov 2026 11:11:40 +0800 (CST)
X-RM-TRANSID: 2eea6afbc5eb43c-a097c
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, andrew+netdev@lunn.ch,
 willemb@google.com, toke@redhat.com, linux-kernel@vger.kernel.org,
 yana06070@163.com
X-In-Reply-To: <20261116143716.367451-1-cmcburney@telcobridges.com>
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