🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5904

Re: [PATCH net] dql: Reset the adjusted limit when resetting the queue

#5904
From: Eric Dumazet
Date: Wed, 21 Oct 2026 07:11
31 lines
9823 bytes
Le mer. 21 oct. 2026 à 01:10, Hungyu Lin <dennylin0707@gmail.com> a écrit :
>
> dql_reset() resets limit and clears the cumulative queue and completion
> counts, but leaves adj_limit from the previous queue lifetime. Since
> dql_avail() subtracts num_queued from adj_limit, BQL flow control and
> qdisc bulk dequeue can use stale credit after a network queue reset,
> until the next completion updates adj_limit.
>
> Reset adj_limit to the new limit as well. With num_completed reset to
> zero, this restores the documented adj_limit = limit + num_completed
> relationship and makes the configured minimum effective immediately.
>
> Fixes: 75957ba36c05 ("dql: Dynamic queue limits")
> Cc: stable@vger.kernel.org
> Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
> ---

This looks correct, but the stale adj_limit only lasts until the first
TX completion after the reset, and the “negative” case matches what a
freshly initialized queue already does.

I do not think this deserves net and stable; please resend for net-next.

This will have to wait for net-next being open after the merge window.

This looks like some LLM stuff to me, with absolutely no real world impact.

pw-bot: cr
Technical Details
Message-ID: <CAL4WiipjUx57YcOPpeOXmwC-Pd-+S65cNzRgR15b1hXn5vX2fA@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-349854-linux-kernel-netdev=dewy.ru
References: <20261020230358.6649-1-dennylin0707@gmail.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-349854-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] dql: Reset the adjusted limit when resetting the queue
Date: Wed, 21 Oct 2026 09:11:01 +0200
Organization: Usenet Network
Message-ID: <CAL4WiipjUx57YcOPpeOXmwC-Pd-+S65cNzRgR15b1hXn5vX2fA@mail.gmail.com>
References: <20261020230358.6649-1-dennylin0707@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4054320"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Fm4W0BupE4RP0aZbvlOYWwhEej8= sha256:XE8yDoU8aCCREwTqJFFj9qntU0PW6dnEloNDMJcbNz0=
	sha1:fWlQROkH92MIYeyiskHbGeYVp4M= sha256:N45gZb7egR213qjxdvytOzkUPk9GHJydwyWjPL6JLvE=
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 975DE110F53; Wed, 21 Oct 2026 10:11:43 +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 bKDUnvfrp8fr;
	Wed, 21 Oct 2026 10:11:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-349854-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 2E233110F4F; Wed, 21 Oct 2026 10:11:27 +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 A0BFE2924E; Wed, 21 Oct 2026 07:11:23 +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=1792566682;
	b=wwW9lRGzc4mHwqKb2qyP+28jvZbfysH8f2+0rw8O1HxMYVXjdPd4pYNNptWR9L4WT/mx
	 rr2JUfbN2onYx+IchKfs8r0q9faz+DyeYL27a408ms08mCwNMTbrLSIHPo1ukxmh9yWlz
	 vOkZ6dkuPL2V56f4PSTaYznHcbwH2RCWNI/GJZBFzKnq1XqQNqYjVK7uDeumYl4LY8WCS
	 eWlC7IQYbp6tf4yBgQUgsvS9/ydoGMWXFTKuneM73Wyg0MP+JAMHb74LQowWsu0H1dy6s
	 zjzOirUbANjIwN8mXLbg4XZFq6Nv7tYqJhmi86tkyahu6/VZ3lE3ZxGW6kVMIYubM5A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792566682;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:
	 X-Gm-Message-State:X-Received:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:References:In-Reply-To:From:Date:
	 X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=BN2F9s2PQf7tU6RRltR0YAnwJkqk291xnopYpp+Hfyg=;
	b=3nvl+SGEpn3v5oMvEC4ubFMw2LjuHCJKjE8WLjJ4uWsx4qELa3HHJUI8OzGLHtzd0Wde
	 dxQnvhfHugoSiVK6nWTs5HGOaFOJHZ2At5dOE6LnoMuLTpsn0xw50UxB2mOsCf3kPfPAC
	 OXyx3mr3KxY1s7KdPLn+52ZbU2LNkvtpGD7O2UIyEWhDoxidafhclnsPrMHoIOpiftS7h
	 dNqGboqY7xsb9sttL3SV7kJvB7qLkkH2Lk5tBEw5BI+kwuCbiMOK4PL737+5kp9aA3sYH
	 dv7c+orI1rVMRYmO5d8sN1r7cusxFRjJgYv8kh6sv8945WrjVeS0RF5KAugP7l2ZBKQ==
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="BRe/PYyI";
	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 BC224606A31F;
	Wed, 21 Oct 2026 07:11:22 +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=BRe/PYyI
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=1792566676;
	b=0qfvxGaK4VL/BUbqEbXHX6xWMhddRVTtdf6AulH09Al79WVNSgWJDOKsPZ5grkaBXJq7
	 Op+nOouwRXSNWMou/x4yAszgwhWSMuaF3q8N5u48KMRqTMPKi/4jFSRDq+DDaNhvXo15g
	 kPaEBFrTwo+W2IP39hWqXgK8QGyfeGwZ3R54Bop6vjgvKv016OQew9K88fiNZPEbklgYD
	 SveFIz9DTCJhn4jT5CAz2omY9/gCRCcXMQY4GrkfbYWFckHSYNuOijeu/mcvySwmBHRBS
	 Cm8IVGuhFIg9bBdRolDKOOLfMZ7qN6knjdoA2gM8gmlDRRKPzjOEtKOQjM90yOnXLAQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792566676;
	h=Received:DKIM-Signature:Received:X-Gm-Message-State:X-Received:
	 MIME-Version:References:In-Reply-To:From:Date:
	 X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=BN2F9s2PQf7tU6RRltR0YAnwJkqk291xnopYpp+Hfyg=;
	b=llNomyOMh89szge/o1oUlD2COKB287OvT1ekdS156lilBgxpplY9FbD7EYxtMRMo7Hfe
	 QMjsyk+kemlubuzRwayWwaI20OLwc7s3gwMtfhJ6B56VnOvrIkJPhLzxPKDqunLyGghf1
	 lev/FLKmcBaOlO27d9GBa1YqJKgYPGVQn+9myq80lr9QZbtetQ0xnIhcVzMXGTDepJKuJ
	 Y//G1IcRHt4iYhhrCvLWd6qNrrdIHpLMJjPc7Qu02Een+sq9Hnh2IoSIWef/cjpgvv41B
	 UQIwdy9wMK/GdQK2xwMX4I3GyC/9E/NYtoec8AsqU5w/bEVwASCFi1Q3J2vaUNHymgw==
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="BRe/PYyI";
	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 9B24A606A319
	for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 07:11:16 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C0AA1F000CA
	for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 07:11:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792566676;
	bh=BN2F9s2PQf7tU6RRltR0YAnwJkqk291xnopYpp+Hfyg=;
	h=References:In-Reply-To:From:Date:Subject:To:Cc;
	b=BRe/PYyI/yoZt1u1HTXqkMKwn53SBdSNEWGEZXaqXNZRmgxSwtGDCDU3NLJNp4lLe
	 UQ7UUtY6CiIMJQEGhHfalMlnPMKDjR2awTM9X3t2rm/7+7CkfmcWPh+LdUUTdQKGkV
	 CoyN996FXe6EaDngUpMBPP9OFImd7wnahwzcTxqszYTcW9us7AH6STAZCY7cF6Lamj
	 y7flrENpCm/4ZQd8tFy7bOpKZACJyUfCd87EoIegqy++4B+OIjT0rYaUTtUlmGrf1h
	 AtPg0S888b7IhdWXUHOyp7uq3eM1Tm0QFkANgsDfzhr28XrftjqMCIHccr9X80Uv6Q
	 q/el+e913uPJw==
X-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-3ab3b29a298so3434041fa.3
        for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 00:11:16 -0700 (PDT)
X-Gm-Message-State: AFq9FYKyH4ldsqvjTMATV3nkcJE8dRKxnL0pX6P7d8JPLZj+vsud10/z
	q9ID9oxID2J7OGd19LpaKXmM5+Yynog7TyqwlrTIqxArcytTEsemvYItb75wkaPYdmIYuHzOPMv
	077jDENnYK/Z1GQwXLhT8Cvrn1POH0WA=
X-Received: by 2002:a2e:be10:0:b0:3a6:692d:b7ed with SMTP id
 38308e7fff4ca-3ac441af820mr3582211fa.20.1792566674920; Wed, 21 Oct 2026
 00:11:14 -0700 (PDT)
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: <20261020230358.6649-1-dennylin0707@gmail.com>
X-Gmail-Original-Message-ID: <CAL4WiipjUx57YcOPpeOXmwC-Pd-+S65cNzRgR15b1hXn5vX2fA@mail.gmail.com>
X-Gm-Features: AclHuK9XkTKE8LY4XXIySiR2Hxl3nqPuxbPFC__w9yVfrKZoEw8taewo9nbjSAk
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, 
	pabeni@redhat.com, horms@kernel.org, akpm@linux-foundation.org, 
	linux-kernel@vger.kernel.org, stable@vger.kernel.org