🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12443

Re: [PATCH net] net: bcmgenet: cap the Tx queue threshold at the ring size

#12443
From: Nicolai Buchwitz
Date: Sat, 07 Nov 2026 11:53
36 lines
9636 bytes
Hi Florian

On 7.11.2026 01:14, Florian Fainelli wrote:

> [...]

> Eventually we will have to decide what to do with those other queues :D

Probably sooner than later. Sashiko claims that this patch does not 
fully
fix hte CONFIG_MAX_SKB_FRAGS=31 case. The check in bcmgenet_xmit()

         if (ring->free_bds <= (nr_frags + 1))

wants 33 free descriptors for a 31 frag skb and those rings hold 32. 
Arguably
the bug is way older than this patch and you need a non-default config 
to hit.

So IMHO the options are:
Either linearize in bcmgenet_xmit() when the frame does not fit, or we 
drop
the queues as I proposed in June [1]?

With XDP in mind the second one seems more attractive, as it needs its 
own 64
descriptor ring. With the current split the main queue would end up with 
64
descriptors, against 192 if the queues are collapsed.

[1] 
https://lore.kernel.org/netdev/20260612205915.3156127-1-nb@tipi-net.de/

Regards
Nicolai
Technical Details
Message-ID: <6c0446dbe8e63a7c6a6120d4a1d6ad0a@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358346-linux-kernel-netdev=dewy.ru
References: <20261106-nb-genet-txq-thld-net-v1-1-53bbac647b71@tipi-net.de> <1b33c10e-fa25-427a-92a6-d26669712f09@broadcom.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-358346-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: bcmgenet: cap the Tx queue threshold at the ring
 size
Date: Sat, 07 Nov 2026 12:53:04 +0100
Organization: Usenet Network
Message-ID: <6c0446dbe8e63a7c6a6120d4a1d6ad0a@tipi-net.de>
References: <20261106-nb-genet-txq-thld-net-v1-1-53bbac647b71@tipi-net.de>
 <1b33c10e-fa25-427a-92a6-d26669712f09@broadcom.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="4094921"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AjSHo0D9MRUwJglpPlK3c7h5uxg= sha256:JZAPKycsO05F11q6nhfpr69nwA9TfUdTWEYpcTWiMRM=
	sha1:bhtxTEFhsAMkkhFxQJLizYK06wk= sha256:11jZpsaNeFSA42B59NLYFHUYuX6MAirrp53Y/byglzc=
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 9A7CF113405; Sat,  7 Nov 2026 15:00:33 +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 zBlVWd4COMdF;
	Sat,  7 Nov 2026 15:00:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358346-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 69D631133FC; Sat,  7 Nov 2026 15:00:19 +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 0DCBD3EB65; Sat,  7 Nov 2026 11:53:16 +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=1794052395;
	b=S1B0mRJz9bYcGA15RXo/o4PclvHHbjIQsKgsAol5H4AJbjQdCSpxpPM1wXK4EYR7c2Pb
	 RcDb6pSAkiC62Y4H+G/JbwoktZEw+iJP4cVlDcWqF1A/6cmhSYQupMwitTG23e5g/75lK
	 RIwam74eOTUdM45jkSBW18fn1p1wTFHx0bQO2MXwEouWWKehSYp3a0ElLRnoap6j0kzRh
	 oL03Qcjhvph2Xy2sSeMXVi2h5jbhpb92Ztg+ay6NkPoMIyj9e/wgKodhhYl26kZiv2aLO
	 HIaBp06IRxSZvtSicXrz3Hszv4o8eyXXufJhkU0ZdZ/1BEl0kW1VPCkimE32nDscV1g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794052395;
	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=tve596h8zkYZfLnnzqz1wxSl0S3pzuQnyT+uXalhoXg=;
	b=4g5xansLJFHqBcfjrdz3ma5jOT57+ThMM0+NW222jcuEXDIsSJqnXSfBCFmjJIGJ+8rG
	 fMCNqA/YMEu8opQfEBu6n4PAPwuucKYiSmqYfkMtI+URyDQAAtSjf/0ULfbRmYikPlH5K
	 2PcLkbcbme+LbTnnC5apIGHipxsmrRgieo510c49HQfrzUpU0IsU09LISh8Eeb48RqMgK
	 Z7ctMJTrLVmXYaECLW9lGAaHvlBM3ma1PHA/bcxS8euSzFEQhTMSdSNkNgUs0gm6ecNfg
	 oe5cQGAX1bqJg/WlIrihB7k7pCaXLRKnGZZtjN4oCDa0gJp/Kd/7L+M4CCI8tFOr8Jg==
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=ZU9qi2ej;
	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 61232606A334;
	Sat,  7 Nov 2026 11:53:15 +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=ZU9qi2ej
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=1794052389;
	b=O5FdAQdcI/hupMnaYsAWu7S4B9VIKapW+GiOpqPibUD2110YzmS4RiChVeraBLteuqaM
	 NHNrDBuHhzPTXEkYdREH+hdj3wvZXOq9yFa69g5HzxObyRLo+qL/HTqxrWhNkQ27IHbiZ
	 yHSK3oHO6Fh66bpxn/12WjnfzQlqNScvU3MbION1Yd2JAoUFUhrMrMuBNc1tpwrETImlh
	 p+6+BeEc5EzTqrchmJYJwexGQoYvtBvtPBGCkU9HKN44KtS9MvzZ8/4tB3jTfLdwv4axe
	 5P3YKtapzQQDv0cabnB0er6lRMDcLiwtvo5Z1X8Uj67nP2PXYr/dJ6o6AuRZcwVkOlw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794052389;
	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=tve596h8zkYZfLnnzqz1wxSl0S3pzuQnyT+uXalhoXg=;
	b=OFSBUNxT3KER0G/Lu+EKFUgTYkBAiDtx010V9IN/UEWnw+ofTsMywsUYZBFL/ffiH38K
	 ErY4B530ltqpfh6S2vfESzwInsvAh1wBjJcRN5ogdyqkcx4VI2QkoJr4AFavApaE1FbxB
	 HFr6Y5oADVXk9wyfvcDWZwEaOt9z0MEPZdy9JGxgv9teCXpZaRlRzNT1jwzT0W78KKtBX
	 gKou1Ywmv/Qc0+EgfPLJQgaPmpJ1WWprR0bLXBwTuOVty1Rooe0rX+PnwyekF2bswPPx/
	 i7SYEvZJpaDisF31jzellAr76hnQf0UM+A7l8X39ko9C0C+oOOyVvx24lzOF8ziIk0w==
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=ZU9qi2ej;
	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 BE439606A326;
	Sat,  7 Nov 2026 11:53:08 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BE439606A326
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 C61EAA0034;
	Sat, 07 Nov 2026 12:53:04 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1794052386; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=tve596h8zkYZfLnnzqz1wxSl0S3pzuQnyT+uXalhoXg=;
	b=ZU9qi2ej3MRvknrlmOJX1qCqg+H9HV4Tz8CnPAUi+ywathWMeA2VW4JtBUu/vvP+1Pn8NL
	/KfiKF1LjlW72wXB4OUZqohf/PmvXitctdT+Q81OlpHT9Fbh0R1W5VGnK16CyT9c5XNsOO
	p3y1BB5SvFKaDWJu1TPQbdYUHhZbEP9E63PDqqyEj8H42oEMVMiYqGpcH+rn3aJvuCNvnz
	nDvx+p9jDoBTZSlxwsGRPjxO5/WMgfJVNDA2/nsBJSjlhlArzcNyLGcCr2TXnXBdZYXU+B
	O7RzNk2UwAto5RoHEk/sUrGY1zilztWmIFRB/t3YujkGxsNuCSHgw8o9wCUXxA==
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: Doug Berger <opendmb@gmail.com>, Andrew Lunn <andrew+netdev@lunn.ch>,
 "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
 Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Justin
 Chen <justin.chen@broadcom.com>, Broadcom internal kernel review list
 <bcm-kernel-feedback-list@broadcom.com>, Nikolay Aleksandrov
 <razor@blackwall.org>, Jason Xing <kerneljasonxing@gmail.com>,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <1b33c10e-fa25-427a-92a6-d26669712f09@broadcom.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3