🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12848

Re: [PATCH net-next v2 2/2] net: ethernet: mtk_eth_soc: add 9K jumbo frame

#12848
From: Sandeep Haemoon
Date: Sun, 08 Nov 2026 21:15
36 lines
10114 bytes
Thanks. All ten findings are valid; v3 fixes them.  The same applies to the
two findings in the review of 1/2.

- XDP: mtk_xdp_setup() and mtk_change_mtu() now compare the shared
  mtk_rx_buf_len()/eth->rx_buf_len against MTK_PP_MAX_BUF_SIZE, so a
  program can no longer attach when the rings have no page_pool, whether
  the large MTU is set on the same MAC or on another one.
- Every SoC: the RX buffer floor stays at 2K, so MTUs up to 2K keep
  working at runtime, DSA user ports included, and mtk_change_mtu() now
  rejects only a change that needs larger buffers (-EBUSY on growth), so
  lowering an MTU no longer locks the port out of further changes.
- MT7628: the 1518 max_mtu branch is restored; dropping it was not
  intended.
- Commit message: corrected. The series does not include the runtime
  reallocation, and mtk_hw_init() uses the shared length now, so the
  description matches the three call sites.
- PDMA RX SDL: the field is masked and replaced instead of OR-ed, so it
  no longer accumulates across opens.
- XMAC_RX_CFG2: read-modify-write, so the bits outside the length field
  survive.
- MAC limits: rewritten on every mac_config(), so a reopen after a
  smaller MTU narrows the MACs that still carry the old limit.
- Order-2 buffers: acknowledged as the cost of the downstream design and
  documented; the unused QDMA ring carrying half of it is a separate
  follow-up.
- Comment and commit text: fixed.

The page_pool gate in 1/2 is also changed as suggested there: it now
tests ring->buf_size <= MTK_PP_MAX_BUF_SIZE, since frag_size is computed
with the netdev_alloc_frag() layout and does not describe what the pool
can map.

v3: https://lore.kernel.org/all/patch-aad4cfa8d9522d1f7dbc9893ea12e813@loljews.com/

pw-bot: cr
Technical Details
Message-ID: <patch-85762b9476cfa21ef2c3e99899a3be9c@loljews.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-358861-linux-kernel-netdev=dewy.ru
References: <patch-cb77640ba129138f860134f54fa345aa@loljews.com> <179408883078.994134.17583422873503660321@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-358861-linux-kernel-netdev=dewy.ru
From: sandeeph@loljews.com (Sandeep Haemoon)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 2/2] net: ethernet: mtk_eth_soc: add 9K jumbo frame
Date: Sun, 08 Nov 2026 23:15:43 +0200
Organization: Usenet Network
Message-ID: <patch-85762b9476cfa21ef2c3e99899a3be9c@loljews.com>
References: <patch-cb77640ba129138f860134f54fa345aa@loljews.com> <179408883078.994134.17583422873503660321@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="205328"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:zN+B9vBU4yAfcDEpN7xQnFczsiM= sha256:e0c6DLJdBurW7KQxpEvi3bC97kbSQ6YFXOZCTSO5hfM=
	sha1:kxOG+ZP7f8IypEzKhmA8s0cLNfs= sha256:i/GMe01HyEzvuSXYhVcCy+hZRreGJH2WVAU9fD2kFUs=
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 38DC0113612; Mon,  9 Nov 2026 00:16:16 +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=loljews.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 xk6XhqZa5pzT;
	Mon,  9 Nov 2026 00:16:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-358861-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=loljews.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id D010011350C; Mon,  9 Nov 2026 00:16:01 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 635B43A40C; Sun,  8 Nov 2026 21:15:54 +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=1794172553;
	b=LUa8/oipRrp+X7+jK7BHTuHGryPjd2hHp9Tmcy0ofnnKDKbtK/bR7bNLS0pkVG3fFchi
	 D5V8UnUD/ZEiE89cbmECabi2oNlgQcJ4+mc6LahkAbQemouvm+gFo/LzrJ1NGBj8O5mKc
	 /GIgf5Z0vn0JwqhFCL6Z27limHGL1Ex0c+Hd1cBMq5qrt45mC8QdXFZ5ddYr6PyN5f/cQ
	 PackFOpJN0UEPHshItAZKW4UGLgVj8VNu6jqQX7M9TR4UrA9nYBy2BercMBRCnhSBYlXE
	 oso9X7r0V6gJX8R3k4nEiHaxPlNo5GeTPeCoVjTNUQyKWPpxm5bcBYwnN4RHVTlJkQA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794172553;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-Id:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=Iu4QoDLYgmOS+/MkA8YJr1ISuxuT+bHJCCK8i0TgHrQ=;
	b=ERL21Cw1uWcXcGI2EErQmIYPbieHt3b4SxAlWNy6GbVAyHgYRXjA0QIklAOGnCIhgcnH
	 6nHeNJW8zb3bUBx6fv8NAWb8CZGdKGMscxzI0l/4gPskE5QJ5CvOF7aWfDVpiTKyZdxqU
	 Kq0dMekR97Z4WhmlmMq02d1xlQz74NPPeHW8kp+8ZrL7RmVA5O07OSR64TWRclQr/1bMs
	 WP1IExKxEqM95qCRTccrg9YAIigB9Lq1h+sIXxV0Dw7z7zcghbaFJv9smoqM1zXbNuRR7
	 DNAt55+xNhmAAe0gyJUvStacEGvGrHkHRDDdJ9b1PJXNA9mImV/DGTGn3YBTDJE1Srw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=o92o7PzT;
	dmarc=pass header.from=loljews.com;
	spf=pass smtp.mailfrom=loljews.com;
	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 7B634606A334;
	Sun,  8 Nov 2026 21:15:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=o92o7PzT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.38.221.178
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794172549;
	b=dJNBZlchvV81QvL4pdTIoUGEmI1h7TqIY2hUUso31MKVHktXAga0ou9Km+k4m8FD0o2X
	 PVHO2V7E7zz68VLiB2xGObNrYJufi3gkt35DQ1OGrAPxuu3zuprc95tvoZ86WCtKtyapM
	 m9fDPqKiJFcInB2YNg/NGNQKnO49oGNcteGS1gR1d/Oeeugixr04IjmhzNQz4xjPEWskT
	 +whXbI2x/bvkuTZd0oifCj2cVg809pYRXJNbvQrIrHuGjyJ1f591mQ/gMr2osiO0phn0t
	 hcFuYcK1rvLUPMTuwpWKQaAVsnzqG16KJH5C7WI3kvj7O7LqU63aQs3PG6an577CHVg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794172549;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-Id:In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=Iu4QoDLYgmOS+/MkA8YJr1ISuxuT+bHJCCK8i0TgHrQ=;
	b=aQBgCTmVBnpt+ySeNNZdmexwzAb0QzGdpz/AMffLZdU48KQCmDuv29OmBy+QC6hlHVTS
	 Pr1Ip4rreBZxTP5ZAPumGkqA/JHLQCEKm3NEEmyA5/iPe12vlXP8VvP2O3zAvd3WVr5gI
	 yX6B/KLKHm6l4opAZxFp3eia/pvTFrKAHtZlowekrYdHrkLBgiCZP8RuSpDX7u1o3/jZH
	 X6ZqERVZN5c7MwVhakEh38HDy0BT6PE4cVgaTheLlNxU67ki7le4Dalxj6uNq0zDbcqoq
	 niBCGU9WnfbaLf6evP6Gy5qMBLYKpt9+pAGO3+sKw123olGzJ+f+e3oHUBJ/itzzwaw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=loljews.com;
	spf=pass smtp.mailfrom=loljews.com;
	dkim=pass header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=o92o7PzT;
	arc=none smtp.remote-ip=54.38.221.178
X-Received: from mnc015mcc432.ss7-reroute.local (unknown [54.38.221.178])
	(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 84050606A31C;
	Sun,  8 Nov 2026 21:15:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84050606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=loljews.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loljews.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=loljews.com; s=mail;
	t=1794172543; bh=Iu4QoDLYgmOS+/MkA8YJr1ISuxuT+bHJCCK8i0TgHrQ=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=o92o7PzTPiCT8OZNd5FgitNTj1ag2yN0n6f8UfYoYFQRYDMpzPd1jIBgL9BwNogNP
	 liF+PZHUSeSfo60NwANo1fgmpQ5ObP4nIHyGpcxQ/yQcLdRo/Doxk6Q8ZnVp2xgSq5
	 3+8ENzfX/tmzIPsNp8CwauqrzAdgC5guNYA1aNFbvp55y8ZLxaefmu7FyBxgieWqrd
	 WrJWIqeRizwLBkNg3dSUUFzgsXjtKJHmH7SjZiiz0MFnjYMI35K1GtIzOgMk/7bZbW
	 WWgThmyvVSMOjWr9Jel+Ucd5UeX/u3M27VbP2OfF/EMl7exi7/8gc6Qnl5McBoedGn
	 B8tE1EuwSQaUw==
X-Received: from loljews.com (localhost [127.0.0.1])
	by postfix (Postfix) with ESMTP id CA2FD27A53FD;
	Sun, 08 Nov 2026 23:15:43 +0200 (EET)
X-Cc: netdev-bot+sashiko@kernel.org, Felix Fietkau <nbd@nbd.name>, Lorenzo Bianconi <lorenzo@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Eric Dumazet <edumazet@kernel.org>, Mason Chang <mason-cw.chang@mediatek.com>, Frank Wunderlich <frank-w@public-files.de>, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <179408883078.994134.17583422873503660321@kernel.org>
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