🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18899

Re: [PATCH net-next v04 1/4] hinic3: Fix the RX stalls in hinic3_rx_poll()

#18899
From: Jakub Kicinski
Date: Thu, 19 Nov 2026 02:09
13 lines
8976 bytes
On Tue, 17 Nov 2026 20:08:31 +0800 Fan Gong wrote:
> hinic3_rx_poll() can leave the loop with a completed CQE still sitting at
> the head of the ring, or with no WQE left to receive into, and still
> return nr_pkts, which is below budget.  hinic3_poll() then calls
> napi_complete_done() and re-enables the MSI-X interrupt, which is edge
> triggered, so nothing re-arms the queue if no further packet arrives.

Look how you Hauwei coworker is fixing this in hns3:
https://lore.kernel.org/all/20261118130330.3026625-4-shaojijie@huawei.com/
That's much better. Live-locking the system in NAPI when its OOM
is pretty bad. My personal preference is to have a work that just
checks for Rx buffer queue being empty every few sec.
Technical Details
Message-ID: <20261118180907.641e8e51@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366657-linux-kernel-netdev=dewy.ru
References: <cover.1794917917.git.gongfan1@huawei.com> <85bd868ec35a5963c08193a3c1870aa87004f63d.1794917917.git.gongfan1@huawei.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-366657-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v04 1/4] hinic3: Fix the RX stalls in
 hinic3_rx_poll()
Date: Wed, 18 Nov 2026 18:09:07 -0800
Organization: Usenet Network
Message-ID: <20261118180907.641e8e51@kernel.org>
References: <cover.1794917917.git.gongfan1@huawei.com>
	<85bd868ec35a5963c08193a3c1870aa87004f63d.1794917917.git.gongfan1@huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2760911"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pQgWQRvgy+T2f/FCxvBbkB9Oujs= sha256:UcmvqRk30XfFxBefe51fXqBVahuc0TQwHTTqDtKYr+4=
	sha1:C5qOfrAyt7jLhEQoxpLYVcdHrzI= sha256:chUKE+OkAfurwofFn5wxteBtSdU4lu7KhYo2vH8NXjw=
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 57D881154A1; Thu, 19 Nov 2026 05:09:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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, DKIM_VALID_EF=-0.1,
	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=kernel.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 xtYxl2BB7VF3;
	Thu, 19 Nov 2026 05:09:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366657-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 482FE115499; Thu, 19 Nov 2026 05:09:15 +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 251C82C763C; Thu, 19 Nov 2026 02:09:12 +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=1795054150;
	b=t1UaeL5lE/bY7Va/bThucONezp/zP7TPeG0psX26Znq5EMBp32fNNh7o+WCdwy2FvPjX
	 KUXUywv7E4bfkVCGRQXE19vuHqJwoYW/Vtfi2+IT0AA5G+pIoGCh+d1awRYol+78j41OZ
	 RxhTuQ+bo8iFz01vVqDJYKHcUOS/G912Eh6hHaErzDyhIN/E9564wSMwSVAIIY2q1gGeY
	 SIhZhFGMqW98xsYQm8Y/1mBFFnQM8r8CfmvNAlVRgCWSYqwlnuVXtiFUUlocQM6W1ORtp
	 1LnzfD7eXW2eJblQ7nGNhSFZNLXrFQp7FFMBZnIobvG7i+qammhdI8L7V2NvqA6HjYQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795054150;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=dal+Jl9B/04ypofIdEIRqZRilk/rMeLNT2uU2ztNnvs=;
	b=lhncR0JmbKkgTecr48qv0H5k7/dIruVNf5W5GRuG6i2cG6iTs3hYNSMDgh5bPYfbKepq
	 sBMJKzxllH5KeWfnWbf6NEahA5RMMSUkqJBTgEewShnFBVTAPkOWEsFseXk2hybXoyBNl
	 bi351+Yteg5Kr+MUNtxN9bIL7y1zrT9kig8y+33fyufGNqHWoZAiqs1NcU7P1WbBO1fMl
	 7jrqMI8pfKhpHTZsSMeTkYRpZNfFrevUIMtApHZvEnFpLTeJWkGuOIv462sobNtMW6Vb5
	 d7S+GCbclXEe92scdqIUp56l/bElEZmB7YoxoqwqW5zy0nEEXIOQZZomVsGXRc0ShTw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M6Q9mfJu;
	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 24CB7606A333;
	Thu, 19 Nov 2026 02:09:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M6Q9mfJu
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795054149;
	b=EjU0j8+CT3C7PIRbwBr/I8zeT1DNa5Q1WrwfYVIn0V+IGXByEYMDFvVl1XpkrV1qzrXf
	 XwHRL6GGmfx+446m5cRp53ISE0Pqok6AGl3VavNIhUF4VzRrZyvD6B0uDb793Rfc7PLIM
	 186s4D0/RmnQr4C2+Kf6CRaT6mYJwYiAcI8gnesobd6p8EKjbYMDmtgUGhQih12YZesQk
	 QNY42Fg7MiozzXz83RSZLEdej9/6oFknpbENpVOlphlBt0vCxsjaKqwhpQx4N5dfQWIi1
	 aEUoxHWrCxM02YeMFjAf7Gh/LCpelaoP0XGs0eUUJ925o9HIctTUEkYUW3lwAUDd3Hg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795054149;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=dal+Jl9B/04ypofIdEIRqZRilk/rMeLNT2uU2ztNnvs=;
	b=Os5VAIftgoikRPTot9YAdfSxOm5i93TBUNwWxkZy1+z2ohNaNlfP7k2KcQr+GEi6Tt01
	 x/BcLZmqKFcGltsMlpRl3pfcmDYD9+Ed6cVhuH0DT8CiStmV4dlhlxV/69mGTyRPQHszP
	 ZFx6H6Aexa2aUuFCHMh/SOMxP0MBVP4wAV7ZPYyyxhS1GZP6U8Om80iVo+nBofNuh6ghY
	 CauYOkNI3iSxip/lV/66sxuPPI6T2T9PEhwJI54WQx+q8utXiOnrgFPY12APxAetBZjse
	 RThl2D8RKitlsgX3HMrebJPKpEf4yHANt+doq/Aqwaz2Vbbwwi4QqYpv/2bv73uDPNQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M6Q9mfJu;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A52606A31C;
	Thu, 19 Nov 2026 02:09:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15DEF1F000C4;
	Thu, 19 Nov 2026 02:09:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795054148;
	bh=dal+Jl9B/04ypofIdEIRqZRilk/rMeLNT2uU2ztNnvs=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=M6Q9mfJu/R3ZxN29fikzSQ49xFiFZzLlXRs2t/vJ4QA7RK2gFJrWsfu9eQ/1danKA
	 PuSiV2Ihk2AfABb5A+ZyLvX7IRbeANLMAjYSMIeNzlftARKvfg6c8TycIoXu3PKPpU
	 eY1HNbga52AYhQddjIbYfaE2fo9w+FiEGY30Vr/5vPz/fvc8eAL7afXApVYaASMLEV
	 Ul/ZUX/CjNG+ScTbmEHau3BUzing8I3mbbTV6QDm/rAI/fmR7EaPNMyleULdxk0vju
	 toBOw84QUU6BAkn4O8G8mLGNZLK+5CVmuMH9qW1YXF4le8jLknMm0vS9/no09cTljz
	 Y8bQL9Epxgqfg==
X-Cc: Wu Di <wudi234@huawei.com>, Teng Peisen <tengpeisen@huawei.com>,
 <netdev@vger.kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric
 Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Simon
 Horman <horms@kernel.org>, Andrew Lunn <andrew+netdev@lunn.ch>, Ioana
 Ciornei <ioana.ciornei@nxp.com>, Maxime Chevallier
 <maxime.chevallier@bootlin.com>, Mohsin Bashir <mohsin.bashr@gmail.com>,
 Dimitri Daskalakis <dimitri.daskalakis1@gmail.com>, Harshitha Ramamurthy
 <hramamurthy@google.com>, Larysa Zaremba <larysa.zaremba@intel.com>, "Vadim
 Fedorenko" <vadim.fedorenko@linux.dev>, <linux-kernel@vger.kernel.org>,
 <linux-doc@vger.kernel.org>, Zhou Shuai <zhoushuai28@huawei.com>, Wu Like
 <wulike1@huawei.com>
X-In-Reply-To: <85bd868ec35a5963c08193a3c1870aa87004f63d.1794917917.git.gongfan1@huawei.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