🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20484

Re: [PATCH net] net: stmmac: retry a failed RX refill from a timer

#20484
From: Nicolai Buchwitz
Date: Sun, 22 Nov 2026 18:01
22 lines
9368 bytes
Hi Anandu

On 20.11.2026 08:49, Anandu Padinhare wrote:

> [...]

> @@ -6164,6 +6205,8 @@ static int stmmac_napi_poll_rx(struct napi_struct 
> *napi, int budget)
>  	u64_stats_update_end(&rxq_stats->napi_syncp);
> 
>  	work_done = stmmac_rx(priv, budget, chan);
> +	if (unlikely(stmmac_rx_refill_needed(priv, chan)))
> +		stmmac_rx_refill_timer_arm(ch);

After a successful retry, doesn't this leave the last received frame in
the ring until the next RX irq? Could the poll refill first?

> [...]

Regards,
Nicolai
Technical Details
Message-ID: <9d8cdde77beedce76aaaa1c5a7a788dc@tipi-net.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368777-linux-kernel-netdev=dewy.ru
References: <MA0PR01MB921746F36D90C7080287ACC9FD782@MA0PR01MB9217.INDPRD01.PROD.OUTLOOK.COM>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368777-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: stmmac: retry a failed RX refill from a timer
Date: Sun, 22 Nov 2026 19:01:11 +0100
Organization: Usenet Network
Message-ID: <9d8cdde77beedce76aaaa1c5a7a788dc@tipi-net.de>
References: <MA0PR01MB921746F36D90C7080287ACC9FD782@MA0PR01MB9217.INDPRD01.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3692738"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tiADGy8mrqLSClLtucUTc4fZ/ws= sha256:BQfbGo+tfSnrp6ma49hS8KgddTxvo5Bp+l5EGkXdP7k=
	sha1:aaIfPANrfJ4rWZzPY8U4YoM9mVU= sha256:KjEZhMkZraQotkprr7aWfbK/uH4LUs9Dyt9WSGUAa5M=
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 B282A125D81; Sun, 22 Nov 2026 21:01:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
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 ze_64pWzhbTc;
	Sun, 22 Nov 2026 21:01:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368777-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E4952125D7F; Sun, 22 Nov 2026 21:01:23 +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 A1D5027A43; Sun, 22 Nov 2026 18:01:20 +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=1795370480;
	b=X1zmCnaIERKWSpAgaKSwB/mIejsIZSebSYmJiUbwkj4BS5srYnhJJWqU3CQqdmqlIog3
	 ONdT/I965MssxbZkkrLw3n+C0qlMQblg4t5Pvwsik/AgZLcHwSKrqEmjqukqKgO26QsSn
	 s168tTOw3/dB5oE1CkvXIdaS7h2dGsRlFUJB/N2eY58NSSMoMY0sRWpMkhWMl4vCLKfcp
	 qR/SC2pVz0r0p/I2yxycRF8c72QnzHDRhXAiiEQlGhUdWqApCXwF9ZxrimbQgs65L/caj
	 71cqgnrepbdMcSTLjWLvqNrRMdM7hK0wajrZ6we+sCfamzT+8IaL5dEndxEKTUHhSoQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795370480;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=Z60uyFtNx0VkzpRcWhKH9sXU8xECnZhyM4KOZOe5aGc=;
	b=U1Wde7qXwWMSrpzfcKeD86U4Zfdit4KZdfUdaH1IKRGcrgR8U/HMEgvRqXZ185PDqYfz
	 /SdICkiynITRPSCZlAeOqdEBazw1ADxFOLnKu5C1vW9uLPUtOUGIy3Med4/WTNszZVGsX
	 cBHe2XKmcQsGzSW9C8oBW3juM4N0xFf/Tfy7WavCOQ6Ab7LFpD9GTbb6c7dFGGj43pkvQ
	 9+Sv1cWVoYU7hkufd7lg8zvyB6lqtXjCavc2DfluYJQ6AowE+QbaNmm2P6GMpRBh+pMif
	 mr+aNoqEFVhwTPhQkVWqWOpDSSqVJG0h6OCGe0aYCxu7ZMKU4Ia42DY80uLh635q3+A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b="CTNMY+A/";
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 66E5B606A338;
	Sun, 22 Nov 2026 18:01:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=CTNMY+A/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795370479;
	b=LxUNrS2zTIa8F2m6yn2UC4xYeKcvVlslUhuajQujVc6LfeBElpHahiP4JOgFwmQmhVPN
	 elKJO62us/ZD7n55/WbMkRY0buxVk07xsHvg2HzyNjraO9uJFf0tElKajQ5MroCqW0Qlm
	 y17hVO9DCceAGRAxEQujoGvVHErqkWlK+LdsMkxi2Jd02iaN+2xMGyOtUBJxgDpJIdSSs
	 OxSEIsauC6z2/JEvzQSbTd9tFI7H4dgpnontHT854sWmJhK1qHETQzf/7ZfwSdUmpPUhe
	 bw4SZ0SFZ32/mefacwz7dZgv1Nol4WR8vnJtCx0It+/LeXqz4a1gVjMCHYB8w44B/9g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795370479;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=Z60uyFtNx0VkzpRcWhKH9sXU8xECnZhyM4KOZOe5aGc=;
	b=AJZBmfyxJxuu1K49bzUbQ5qvBjkmHPm2zD9Lfzs3TatFvJy7kFaB3CM8YoR58u5RDIL/
	 GTvARYSupYPPqLFq3sb/kTJyJ7xe+L5gFZT+jZjJjpWdD35rO7l7yGR2ChLoULPIcBoXZ
	 WHSWvwmCVC7NiEL28WdDY46W7IHKc9RQbaD7zHnxKcAhENrkz3NC2UHuj9lcv8cwL8+9M
	 XNFkRqRmqWAlnLBdW2acqCzK22xp47wCLkhlzxaGsk0ctt+flyl3wk1W661wK8uoWaO8Z
	 bKOnuJTpVwShp784ZIBdhNr12rW7//QLHRWgwKmhYV/m8YisifsOqsTpmGpHKEDRvuQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b="CTNMY+A/";
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 31E60606A32C;
	Sun, 22 Nov 2026 18:01:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 31E60606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E227CA03D9;
	Sun, 22 Nov 2026 19:01:11 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1795370475; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=Z60uyFtNx0VkzpRcWhKH9sXU8xECnZhyM4KOZOe5aGc=;
	b=CTNMY+A/tNuJm6+ioyIbJFdxpOdWp+hvte3qKpCKloOoUBx7Np3NnT8y1pHHD7gJBI5TA0
	92+uWojbeS7No/UvGcNnMK4+2FVIREH1yImWGjnpCMmK2gqr6yyzREWJ0qxaIz9Xbaut9c
	qtCHtNEocCPO/7qCwxwFbvrnsZc0VPEvgWfInKbBQLKGdOHUQTwhsGlKM2uio6wv5UjHHv
	A6xFHbjV6kYoFPzk22yGQ5vfdezNSmjYrrg6BYofd4xm6eWb0CW6m1My2JACuv6Licd/AA
	PT9VlLcPqRn++GBUTp5d9ep1oUxm+Y0vYJRAP/HPiJVdWin1IoOsEwnsRcGnow==
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-Cc: maxime.chevallier@bootlin.com, andrew+netdev@lunn.ch,
 davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com,
 Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>,
 Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend
 <john.fastabend@gmail.com>, Stanislav Fomichev <sdf@fomichev.me>, Sam
 Edwards <cfsworks@gmail.com>, "Russell King (Oracle)"
 <rmk+kernel@armlinux.org.uk>, David Wu <david.wu@rock-chips.com>,
 stable@vger.kernel.org, netdev@vger.kernel.org,
 linux-stm32@st-md-mailman.stormreply.com,
 linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org
X-In-Reply-To: <MA0PR01MB921746F36D90C7080287ACC9FD782@MA0PR01MB9217.INDPRD01.PROD.OUTLOOK.COM>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3