Article View: linux.kernel.netdev
Article #20514Re: [PATCH net] net: stmmac: retry a failed RX refill from a timer
From: Nicolai Buchwitz
Date: Sun, 22 Nov 2026 20:37
Date: Sun, 22 Nov 2026 20:37
21 lines
9567 bytes
9567 bytes
On 22.11.2026 21:20, Sam Edwards wrote: > [...] >> 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? > > Do you mean "first as well" or "first instead"? Because "instead" can > [...] > But, "first as well" sounds good to me: before entering the main loop, > refill 1 buffer (if possible) just to ensure either the IRQ fires > again immediately (if the FIFO is holding onto another packet for us), > or the inaccessible ring slot is clean (if the FIFO is empty). This (first as well). BR Nicolai
Technical Details
Message-ID:
<9fbb80bfc0e58a531c1eb59127bd8059@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-368812-linux-kernel-netdev=dewy.ruReferences:
<MA0PR01MB921746F36D90C7080287ACC9FD782@MA0PR01MB9217.INDPRD01.PROD.OUTLOOK.COM> <9d8cdde77beedce76aaaa1c5a7a788dc@tipi-net.de> <CAH5Ym4h8-1mc+DX0Si7XROeGn9M72bQC+ooM05Y7ZmgTo+ON4w@mail.gmail.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-368812-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 21:37:24 +0100 Organization: Usenet Network Message-ID: <9fbb80bfc0e58a531c1eb59127bd8059@tipi-net.de> References: <MA0PR01MB921746F36D90C7080287ACC9FD782@MA0PR01MB9217.INDPRD01.PROD.OUTLOOK.COM> <9d8cdde77beedce76aaaa1c5a7a788dc@tipi-net.de> <CAH5Ym4h8-1mc+DX0Si7XROeGn9M72bQC+ooM05Y7ZmgTo+ON4w@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3718521"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:oy2xQ6op/WS2/iZb9xJjH7EamZw= sha256:z/Msj12n1fSh5JUVeu1Fri0GXGiYEto+sR/PRSOyn5M= sha1:X9nmQzQaNUbzAVfeoccEDCukEh8= sha256:5nHFM6QS2wlTSZdnTQPRmh1yr+50aCMLtc1fV1QM59I= 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 ABCD6125D84; Sun, 22 Nov 2026 23:37:54 +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 (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 irYRT3JvZVz5; Sun, 22 Nov 2026 23:37:51 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368812-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 34396125D7A; Sun, 22 Nov 2026 23:37:41 +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 B33442C5CC; Sun, 22 Nov 2026 20:37:38 +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=1795379858; b=DXNVPJO4pelbXwRUguONRT41Q/ew/07DoFZeKkD4ZhqsfCc8ykZpTV5ESi/gWAFJi/rM JceKSuGB3qNsrh2H47QzYaRBLASgeV/cgxL8vkpWh6btY+PfJnXAqP6zv9X0ZRnZVE6Ah BaP079PZua7jrDuidjDDgmor67DAv52Gpn/bUIkQjiBmmtfw17KMG02tbkGdQp3XM8NxZ YHWtXlRUbONonbAr1Dw3cHg+jFYaM4aLfdDiJSpQInolmpbxK5dHhH9XFkbNZg89Qo+mT lGGPXLjix+FiyWesvcy7tILlI6ieWI4XCU8VdYP9642fPXmA30Zvo9nndkj8o4XseBA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795379858; 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=QKbQ/ruVPJfxFXMkY7n2nO72I37QhMdT2FVadZTIHTI=; b=yFogAjyZEyqbjTWPXHXquJJ+KWz6R9IX9dyIsjjYWTgeJzo9TuWRs2ljkNo6rtz4H5bx d+bFF12rg0gUZdLIBp59oWFNKnNaR4Xjp9ngQBvG9z+CWqhMSpI7fVrgXOFPLdZc4x560 r58AnCh45SiL8TKNQ1/81u4+Wrj4nL7Lsd+si7bpSSPIiGaxI85AVdOqjLZdhWr8ko8Q7 E2yGo79rOQjDi4qXJeku1AyihXcdKxWDBDLFqRir5R8pPCvANoMSfvUsi8nE0dqk3MX3l 63wiVQkmzfR+SMmxGyIcQcXUJNrK6a+jykLS5Soep5pVNmUyPgq2syVGx7NfXZ+4nfg== 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=qFuytspF; 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 8C16B606A32D; Sun, 22 Nov 2026 20:37:38 +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=qFuytspF 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=1795379852; b=VwE3PzfJaQuB10hoQYLNdWlmSUQZTjvGyuVqC7A6zAIK4RR/Gq7EB39JU1Rz1GO5HabM r/ZvF2T0suR2AWRmol+lhAZOYPVDwTUqgrzd2ZxuZ+Yo4S7z30wh1i6vKFauLljcWMxeO NEkZzDIEy7cTqB0au3j8S5AGPcm8AEfZQEr4F6bmCUQjSB+2t2v/+NlHPEZYH2I5QSqry /WT/cnA53Cq0iTaz4pX0ZM9o0/o3Wk0pIhEzl7sxE32tdK5cpGvL2mGSVoUZh4NXc0qGS TD/DNnTWPpuaBa9tHjAfC67Iqhit/tqxaTGb2SAXXyeSJKagr56ixbQF0bEvZq/ZqWw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795379852; 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=QKbQ/ruVPJfxFXMkY7n2nO72I37QhMdT2FVadZTIHTI=; b=KDV5QOntqk1N6Li4GW0PnHXMcgU7kC1XvoAY3C63zvZfxG066xypL0saf5MOqwH7Wo/l 8v/8Ua++oONIV9M43BNa5JMikALZSm8MMkmDDRgiQTjvSWZPjqiDmav7KkVi7OV+zywD+ Czcym/F/y4uQdNUoo3uAJMo2H0MeFCRRBWaNf5GqsoOfrCnu1LaUL0tgatt4FVG0Be8+f BHs5Y+yAT+HfCIu39rXO+UEAeS3Jb1zNW1Y1Wr2OnOWmLfxUQbYPbgBLdukxVdD/naWYc tqLUCjOwMyzsWmDKppqOWX/hl8iDzwu4LP5/fdiQBf6wOSJH+rp7rjTWHYszUKvBO9g== 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=qFuytspF; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C74E606A31A; Sun, 22 Nov 2026 20:37:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8C74E606A31A 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 80F1BA035D; Sun, 22 Nov 2026 21:37:24 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1795379848; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=QKbQ/ruVPJfxFXMkY7n2nO72I37QhMdT2FVadZTIHTI=; b=qFuytspFxPUpX6GrAkKPVuaEtZasvNyYeXwbBa2EIqSZUcam1s1+xbV2rb32CWrwoBdtIS O8H9eKezIsDv8/IfzH0orjDIwMbutBycVnW2ZXRbQdoBg1TU6EEEjz48a/vE1OVqJ8RJSx T++URvx/NQYgDHrf7LPJVcyAS11UjHHm1g4IpnlPMAprMfuFB/0yuFWuEdvxAvVctmag0K yDL6/LncNKgq5vUCKxI/HArfzlv11d2S/bNBdZDQrEiSZLVql07ElV2vhX/6j90GxU8BKt xnymK0uc5/MoVhQZuZBd347dWYGayg0AdUpVBDC/yM8kmBB95A2sT1QsS3EAiA== 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: Anandu Padinhare <Anandu.Padinhare@electrifex.com>, 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>, "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: <CAH5Ym4h8-1mc+DX0Si7XROeGn9M72bQC+ooM05Y7ZmgTo+ON4w@mail.gmail.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3