๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5093

Re: [PATCH net-next v5 09/14] net: ethernet: cortina: Recycle claimed free queue pages

#5093
From: netdev-bot+sashiko
Date: Mon, 19 Oct 2026 17:28
55 lines
10136 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The stable dependency on this patch is not recorded.

--

net: ethernet: cortina: Recycle claimed free queue pages

This patch keeps the base page reference and streaming DMA mapping of a
free queue page after all its fragments have been claimed, and records
such slots in a new recycle bitmap. During refill, a recycled page is
reposted if its refcount is back to one. Otherwise it is unmapped and
released before a replacement is allocated.

> net: ethernet: cortina: Recycle claimed free queue pages
>
> The preceding "Preserve in-flight free queue pages" fix releases each
> mapping after its last descriptor is claimed. Refilling therefore
> allocates and maps a fresh page at line rate even after the network stack
> has released all references to an old page.

[Severity: Low]
Should this patch be tied to the earlier fix for stable?

The earlier patch in this series, "net: ethernet: cortina: Preserve
in-flight free queue pages", carries:

    Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")

so it is a stable candidate. Its commit message also says:

    A later patch restores recycling independently of queue position.

This patch is that later patch, and the paragraph quoted above describes
the earlier fix's behaviour as a problem. This patch has no Fixes: tag,
no Cc: stable and no stable dependency note.

Mainline is not affected because both patches land together. Suppose a
stable backport takes only the Fixes-tagged patch, plus the untagged
prerequisites it needs to apply, such as "Index free queue fragments
with XArray". Wouldn't geth_fill_freeq() then do one alloc_page(GFP_ATOMIC)
and one full-page dma_map_single() for every refilled page, with nothing
pointing out that recycling is missing?

Would it make sense to give this patch the same Fixes: tag? The
alternative would be a stable dependency note on the earlier patch that
points to this one.

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261015-gemini-ethernet-fixes-3-v5-0-b5c9e2f7b8a3%40kernel.org
Technical Details
Message-ID: <179243092834.3135.8181059435095195600@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348751-linux-kernel-netdev=dewy.ru
References: <20261015-gemini-ethernet-fixes-3-v5-9-b5c9e2f7b8a3@kernel.org>

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-348751-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 09/14] net: ethernet: cortina: Recycle claimed
 free queue pages
Date: Mon, 19 Oct 2026 17:28:48 +0000
Organization: Usenet Network
Message-ID: <179243092834.3135.8181059435095195600@kernel.org>
References: <20261015-gemini-ethernet-fixes-3-v5-9-b5c9e2f7b8a3@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3693036"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wh9kUNccXtbf1cQI1o6j/Bob2pU= sha256:BOP1h0nxflqVTka4YTXKCldry+lNpqa4mLhipvxTKDY=
	sha1:KoLx7KXzwyNpXcT1vPGazNKSS8w= sha256:QiLyyk0GL9eHHH9uPI1C+s149g0byJk4WwTv/VR1+Ok=
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 378DA110ADF; Mon, 19 Oct 2026 22:13:45 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 3Api01eFhNpH;
	Mon, 19 Oct 2026 22:13:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348751-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 9F773110ABC; Mon, 19 Oct 2026 22:13:33 +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 4B965C60D5; Mon, 19 Oct 2026 17:29:05 +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=1792430930;
	b=EjZ/H2QmideUOgErwcOwyn6gh1uZVdj9qtzcZzgau9HgUNrAVYspl6BgmYIR5NaWru/g
	 0hVoeMAnXRvjDXZ2WFGmed+FTUoAQKORAhbj0ci9O4H0AgXo3ySnNApcT9XQhMJAI0buI
	 /ZyCW8vVEpWEq8MC1c+KxGQebsbLIo54R90831nPqyPygxREsaVYl9Al3ta6Yit6Qmls6
	 nD0IQaHIAw44o2qG3T5LHAsHq2lbq0Ty9DSBoUB2KG7BxhscmewiRetgLU1OqNihZo+/b
	 EuK5L7VYQuewHm6mcS16fzQ+7UpXdZlTHmLQOOGnTdaLIf5oXfcnCY/MKiF3nySynzQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792430930;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=QO3s1rauZcuxZOVGGbwGfUpfXElhQcevaofoqEKmEGg=;
	b=UbW69vkz8sZu+4QJPhy4lgpzV0FPQVGE3ySZOFRSDQvdP3bQHalWOCjnovM9SoA4rIxk
	 lRYgQc+e5dTYIs1796ugvntBMaUgOQ7O1LQ0Yy4MAa7Zq+0TEiytMsksxHcdZ5Xe6Sv3M
	 nnPjjq4vmAiOq5LBYy0gZJ635GotVL0VNcP3NdVPQNHG4iFcOhxiYjuil/+ajugPw7UZ4
	 ITUUuSSaFJCecLW7dtCvF473z+FH8pkvqfjxIP6sKOeJshmKe7gEb64ezT3f7aI3m7fqc
	 d0d0MjorGRPrUUzUiTWUsTylonLfP/tN6R5lOBrl43RseTr3fW6fTdm2OSYOnEFPUAA==
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=SL1bzeb4;
	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 DB97B606A32E;
	Mon, 19 Oct 2026 17:28:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SL1bzeb4
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=1792430930;
	b=EItvLDMRg0o9Ii8zPH1oCjOxDssrBQ2RXlgFrwtfnkdpB73SEP6tE7tGrNwdqSzKoM94
	 myIP1gAz7tEz6w2+0J6bILacPDMHLmJFKc73rd1Jl8TS7K8Ww6lQj0M6CIUqQedPzFauf
	 wnGlITjTsNzmdp+qaZqC/NJ1pyYgi7kQ9ddqh6CZqydUdwjeNOQLp2+wU2xZrhwk+wFze
	 KTk/H2BTkEiWSm8uq56NgWicPCWblyrfYuKakEMCKNAe9SKc9PhGocxKnj2Jc4BpYL7FC
	 WruduNGbt0p2lCkef2frFlgLbSCPKn6FntAF6OmgOppoEXRNyLi6ceYg9NUCNc1hVXQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792430930;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=QO3s1rauZcuxZOVGGbwGfUpfXElhQcevaofoqEKmEGg=;
	b=pROnLOvva7jDpVbwDBv2OSe+zt3xjQSUFC0oJ2+q0iVE1AdlZIEVzxZotZMm182PKzz2
	 fDU0/fnc1dc9kmxFHWgbVMHjKTZcARaAl9S++Bra+MLPJHydfcZHZYEvhFXRT1Z6AJ3Cs
	 3qpjDDXaTDPCJEisso9MK83E0K7/tcCe+kRULpNCBXqdZz5ZtJ7L0pwGJn3rawqX4m/lV
	 HZ1ngWpgr9fEYT7V2gQGKA6ZG4nfyGP0kwxUShlBmOflQEHJcQPn7JgFh2vXoDh6cfbO9
	 2p7nuCf7SC/gsPJgSUbNaZqOrvpNg7NsM2bk8vyf1Vcezm8NvGSBQ7o89HMh1lZTy8A==
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=SL1bzeb4;
	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 C445360A2600
	for <netdev@vger.kernel.org>; Mon, 19 Oct 2026 17:28:49 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE56D1F000CD;
	Mon, 19 Oct 2026 17:28:48 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792430929;
	bh=QO3s1rauZcuxZOVGGbwGfUpfXElhQcevaofoqEKmEGg=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=SL1bzeb4dx+u8q3/fwYIfa5Hfb7F9wzDGf8EpkMGDkTli0VGA+Xiq9cGhrOi53uy0
	 CD70dSnv0gwwBgBzYPR5dQg+x44/Gnu943Q00kjXWADagUJ6YImXng97DWQx97afsu
	 okjiazt4W1jbaOwILHatmsmh54dAV8Z0Ig0hVItDNejxj2iTnsLe48J1DiGWllP65K
	 q9++9DHxgxgHMbqy20a091CohvTyfYcPA/FXwBWRuOZl68AlWM4/fLOQ0f55Xrx7Vd
	 F+aavsAVGbqoexlhVRFvhZuZwe+tQ7i+/rUTvYbjNG4Z1tAEE+uUgno/XhUsW8Y6XB
	 ag0D+4VS266bA==
X-Cc: ulli.kroll@googlemail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 kuba@kernel.org, pabeni@redhat.com, mirq-linux@rere.qmqm.pl,
 mhun512@gmail.com, edumazet@kernel.org, netdev@vger.kernel.org
X-In-Reply-To: <20261015-gemini-ethernet-fixes-3-v5-9-b5c9e2f7b8a3@kernel.org>
X-sashiko-severity: Low
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