Article View: linux.kernel.netdev
Article #10774Re: [PATCH net v2] net: atl1c: free the RX buffer when the descriptor reports an error
From: Chris Snook
Date: Wed, 04 Nov 2026 03:35
Date: Wed, 04 Nov 2026 03:35
40 lines
11976 bytes
11976 bytes
On Tue, Nov 3, 2026 at 5:53 PM Federico Musto <federico@rimpianto.com> wrote: > > Thank you for the detailed review. The findings on endian decoding, > multi-RFD error handling, stale RRDs after reset and missing error-path > work accounting were valid and have been addressed in v3. > > The v3 now: > - decodes rrs->word0 once in CPU byte order and passes the decoded RFD > index to both the unmap and cleanup paths; > - unmaps, frees and recycles every RFD of an errored multi-RFD frame, > with ring wrap; > - counts errored descriptors as work so the RX refill runs; > - clears the RRD ring on reset, preventing stale error descriptors from > freeing newly reposted buffers. > > The memory-ordering and link-reset/NAPI issues are pre-existing and are > left to separate patches rather than expanding this fix. > > Validation on netdev/net: > - scripts/checkpatch.pl: 0 errors, 0 warnings, 0 checks; > - baseline and patched W=1 + Sparse builds both succeeded; > - no new warnings; three endian-related Sparse warnings removed; > - git apply --check and git diff --check passed. > > The issues were found by code inspection; no hardware test has been > performed. > > pw-bot: cr I no longer have working test hardware for atl1c, so I'm unable to test this on real hardware. The same is also true of atl1e. There have been patches somewhat recently for atl1e that suggested some people are still doing work on real hardware for that one, but as far as I can tell no one has made new hardware for atl1, atl2, or atl1c in over a decade. If anyone is willing to help test patches on this hardware, please let me know. - Chris
Technical Details
Message-ID:
<CAMXMK6uS4-4aq4A3pUMghkt5v3U+NekcCfDa7ytbjLD5ZwG+8g@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356165-linux-kernel-netdev=dewy.ruReferences:
<179374297269.488856.7749172366095110113@kernel.org> <20261103225321.19288-1-federico@rimpianto.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356165-linux-kernel-netdev=dewy.ru
From: chris.snook@gmail.com (Chris Snook)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net: atl1c: free the RX buffer when the descriptor
reports an error
Date: Tue, 3 Nov 2026 22:35:40 -0500
Organization: Usenet Network
Message-ID: <CAMXMK6uS4-4aq4A3pUMghkt5v3U+NekcCfDa7ytbjLD5ZwG+8g@mail.gmail.com>
References: <179374297269.488856.7749172366095110113@kernel.org> <20261103225321.19288-1-federico@rimpianto.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="3317135"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T1EgK3OHLHVyhOzlYdACTJnvRzc= sha256:v7nfAzQrro20fFLSH8gK4YEYMvTqHuSufcEdbnesJ2A=
sha1:KJhR7Elr9iGyN+HYnKhPz9Mf8YU= sha256:gdScC4HJYH3639pYq53ynmJfeboUrLvx/tBfHNp6qdM=
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 49D58112AC6; Wed, 4 Nov 2026 06:36:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, 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=gmail.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 Qxce66MuNbXw;
Wed, 4 Nov 2026 06:35:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-356165-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 26177112AC8; Wed, 4 Nov 2026 06:35:50 +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 F1DCE24228; Wed, 4 Nov 2026 03:35:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail 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 034E9606A336;
Wed, 4 Nov 2026 03:35:38 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZM+Bo/NL
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=209.85.218.50
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
t=1793763337;
b=MXbXZc54n2h6QvbkuYqK27Ydd4k3/Aj8lqlo+tBdshCX4vIR8bkILF2jCcgCTlHLFrYo
6L44cjwqxqgH4KvZZEIvw5BT8fvr7iCKkF/Rd8s63jm8QDv965y9usrOU6hEWC9wFphyB
+1TMdXqEtBVafHSgpR0K4wZN+rogNcnRmBilSt76bq5R7D27aiejRfnDHY31EXF8RLSvI
OWih9CX9LEGOlu7xYH+mehNQBWlGQ8udB8BEndxxsYidR6rB3yT2hwCtsV2wuho9Sih10
JO70IIaM9yI0v5tTfanqtn+r6qW6lgj07UqR5HS8ZFx7irRCElHo2Ljpwm5GsK+umMw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793763337;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=T2FWaVlgG8DlrEVsmGNjQ+m7wefa9FtjIViJ89iIUCc=;
b=ia1bDqH9fGe7ryJNkyLdhZeeI9ydVvQbyHdtlK5Dh5cLFxEZ/oqZuQBDhPBh5+PlBVAO
pHIvAZIhIGISdi1aMVyQMPqNBIMxRv6PHBGKSYd5cPzhDcv4959M3B5THJPXr1LePoJHm
iMs3rpAx8mgQ67IYBQzcGffNpo5VaJKAm6hm/iJ/ebv2ibL92N+FsTw6ksxsM760XBvMh
b+myQuTDQOZzjOtzrUAlryO1IPgU7+idDir3sjTsWXgxINhoWklpJW9B1Mqw3sWKAbFys
RB5gufw5t89m17PuIIWKU+GuYt+K4yDY7/pDI/EL0nNO88ls6o0EaxXGe75pYYoNHSg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="ZM+Bo/NL";
arc=fail smtp.remote-ip=209.85.218.50
X-Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3F8F606A31B
for <netdev@vger.kernel.org>; Wed, 4 Nov 2026 03:35:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3F8F606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-c468bd799ecso35402266b.1
for <netdev@vger.kernel.org>; Tue, 03 Nov 2026 19:35:36 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1793763335; cv=none;
d=google.com; s=arc-20260327;
b=Y0a2CnTW59PhxddQ00OszUBBiWC6qs9fNF3FATsslO54VKuhoGH747KU20C27ygSer
40LFKtsQ+qZposm6B7XTYy7B9nFI5blCsM+qPY2XwHytEAF6I7jLL7x7M+OGX2WTmony
jFfzGlawW9Kufbz6UATAVdsJex4LqGRyq0obADX7cprWiiXo9oMBQ62jiSY2hwJSwoBj
ldVU+LNokloTdeaDXHwmjKJP4mpj65J/wTX3P9vZAQRlXR5JacPMt6ruLD7MHTRzYOpS
/aJoCax4Hv+/nky6bJNsIocuV5EBrZTydg/RIq/HvnhEVMpxfKqLbcguLRLNLSrt8V3S
HQlQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=T2FWaVlgG8DlrEVsmGNjQ+m7wefa9FtjIViJ89iIUCc=;
fh=XFP2NZnayxaCWgDviBcMGM0gqMmU0iNNTQj2DzPDbGk=;
b=M7noahlTmIS763BJuvElCWG9aUiGSj1BeqtMGCG2ZE0WL2AQPQpLXRWSBPKk0z5cSX
Rb5NREloPtGOh1pemRdBqmFhpeqo5jImLb9GCOv/iBzzN689L+A4GH+H8zPhyqpLTQ2+
bUA1hJQ7DSK9IAzSb7HoiwibjFGov2DzxxiNxlIUr2b8GE5n0XBkMmPHmiZW/V4L+hE5
AI9GVj15TpfnDJ0LqZtw0agemFsH5xk6DfQkK5W29TCnVhdrQ9+PuNH9JxpEmYz2FLB8
y0d3B7tAEMXxvttgZnrZqIllIeuqB4UkLSE8fdTFnM4rXArZzAsA/PcR9JCNGX6crV3l
IVYg==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793763335; x=1794368135; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=T2FWaVlgG8DlrEVsmGNjQ+m7wefa9FtjIViJ89iIUCc=;
b=ZM+Bo/NLHVAIGud/SRt1S82BHSV4Dy3O/1v/XhWAygF4W6LC8LJ4zz5tAHv0DKZISK
y99m2Vzu9GwsILtdlsp1jaTwouR/2MYaZmRoQEYGjyc1l9qj+unLS29lF5agI8+M5HLG
0zc9jcPKe0IbDIAMcl9xB1IndX3PyX1CtpGmg1HJxmIsKGflGof4vnHMxAw55W1f/Wcy
TbkSyTfpug2hmzKDyMDSQkiLuVmmUM8//uoc5GY4fuYPaFwMt86KGBfg6K5Vec6Rgfxj
N6E6our0/WG7Rd0Xd5gyJ6hair+/K9LSmfSxXKasKFEs4nwWUykQmzxp5ANZSCoa5RCb
IoBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793763335; x=1794368135;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=T2FWaVlgG8DlrEVsmGNjQ+m7wefa9Ft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X4jpK2iW0KSH6BGYKlTSA3Yf2P7A5wpp
c=
X-Received: by 2002:a17:907:a890:b0:c46:9ca9:f522 with SMTP id
a640c23a62f3a-c4ca7a69782mr1214812566b.26.1793763334986; Tue, 03 Nov 2026
19:35:34 -0800 (PST)
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: <20261103225321.19288-1-federico@rimpianto.com>
X-Gm-Features: AclHuK8pgXDdUe8VVPBSwoSm2Xv7dqRRsi3A56cCZ8EmMNgChDd3Wu0uj8DEEoU
X-Cc: netdev-bot+sashiko@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org