Article View: linux.kernel.netdev
Article #11761Re: [PATCH net-next 1/2] net: ethernet: mtk_eth_soc: add 9K jumbo frame
From: Simon Horman
Date: Thu, 05 Nov 2026 14:26
Date: Thu, 05 Nov 2026 14:26
31 lines
9150 bytes
9150 bytes
On Mon, Nov 02, 2026 at 12:48:45AM +0200, Sandeep Haemoon wrote: > The driver caps max_mtu at 2030 bytes and programs the MAC max-rx field > for at most 2048-byte frames, so MTU > 2K is rejected and 9K jumbo > frames are not usable on the 10G XGMII MACs. > > Add a MTK_NETSYS_RX_9K capability for MT7988 and: > - advertise 9K max_mtu on XGMII MACs, derived from the DT phy_mode at > probe time so DSA can raise the conduit MTU before the netdev is > opened; > - program XMAC_RX_CFG2 on the XGMII MACs; > - derive the shared RX buffer length from the largest MTU and size the > RX rings from it; > - program the PDMA RX SDL max frame so the DMA engine accepts jumbo > frames; > - reject a runtime MTU change that would need a different ring buffer > size while DMA is running; the rings are sized at the next open. > > This is a forward-port of the MediaTek downstream jumbo series: > Mason Chang's "change default rx buffer length", "add 9k jumbo frame > support" and "add dynamic rx buffer adjustment support" (MediaTek > OpenWrt feed 999-eth-30/31/33, carried in > frank-w/BPI-Router-Linux 92bfdbdd4de1/b4c6cb1d5532/ca4c976dce22), > plus Frank Wunderlich's "try to fix crash the right way" > (a3207a383794). > > Link: https://github.com/frank-w/BPI-Router-Linux/commit/b4c6cb1d5532 > Link: https://github.com/mediatek/mtk-openwrt-feeds > Signed-off-by: Sandeep Haemoon <sandeeph@loljews.com> Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261105142634.GT865646@horms.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-357438-linux-kernel-netdev=dewy.ruReferences:
<patch-4f863a941889f0bceca1c082f2d79624@loljews.com> <patch-f1b04513b0fe3fb0a35ac744799fb0f3@loljews.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-357438-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/2] net: ethernet: mtk_eth_soc: add 9K jumbo frame Date: Thu, 5 Nov 2026 14:26:34 +0000 Organization: Usenet Network Message-ID: <20261105142634.GT865646@horms.kernel.org> References: <patch-4f863a941889f0bceca1c082f2d79624@loljews.com> <patch-f1b04513b0fe3fb0a35ac744799fb0f3@loljews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3655216"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:blv1g2AsF0e9tUIjrGWTNSy98Ko= sha256:YDlTTZ+zZktvjkE9DPGmri0g2NUfpUNmsQmNTGotz2c= sha1:KF+lVzQEPhkAQLlVmZVNlY0BHzQ= sha256:ask94828//7ZXsSHqBJKKDkPeDFj1VHkkmXmH5S16s0= Content-Disposition: inline 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 5607E112FD6; Thu, 5 Nov 2026 17:30:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 vFjvrN4ufelw; Thu, 5 Nov 2026 17:30:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357438-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 8FB94112FD3; Thu, 5 Nov 2026 17:30:03 +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 724E3292D9; Thu, 5 Nov 2026 14:26:45 +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=1793888805; b=boCv87c5aMuURpTO02ZiWi0nll+4Pw+utmhirU7AWVOuIpLEZY2rHpA/bZGEq9zHyXqQ RK60d9oyKqoDgBJg53IE185HRNBLbrtIrof7mO5yMiXe8ZvNB5ld9JlNkeKS2+9Tzyqs+ WVXG7MHVFXx3jVynfJEowQNk3NweIkPFILSb7lTOgxDP/zPlwazSyxO/11Oa23yfus21s SG6bi/cQ3rpNZHqVNIkrSNhWD48hNwxJbVTLNUv7tOCYRqeK+A0vobQSU9ws/uxLN+Ysc p4zHpU5/mIPdLMXkcffFIWFfgjzsnBFd5o6JCKgwQ5llAD8pq/S8i3Zuf9glIVl67jQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793888805; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=bB115A0rMOTqlvXkN/AIzQNgK8qZfXA7IorSb9CX7io=; b=z/vOz2oqrhyTo5bLHXtOasJcbLCq3bO61cXinTnOHEUepnuJUkRRczLNTxc7UAcS1w4p 8Y6cU+sofw3JtlHx/cJhtCwRDK1JsC0iGqwbaB8KA2Y9mXpruC17PLyr0s04H4lAYmYc7 XxpxfD3CwHK1RktZHxecKTqcrd2GSwXJu8Q83oTBJSkUS7Ts8zQm0PhFUD+kyizB1OmKj teRj2OfNpSmc4XsST3OiIuj7NzF1LQFJBcj8NIfqaRa6HQu3ZuydCSiFV1FO1RCIbppTh T6NwbHydg6JOYs2XNb1p2Z01SfPbcp3ZveROZyOnpLkberfSbatcYqNzNrhB9WRUDpA== 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=kLZbEpUR; 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 E63B4606A329; Thu, 5 Nov 2026 14:26:44 +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=kLZbEpUR 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=1793888799; b=gCB/NX2hWeUohIQCUHUxwhSaHdbQgt/n3P9nOHkRhhMJwy4kiZIqtlnkN0XuwOeEaxpO ej93pInw7USQqOfvTcmdUaaocd7NFW1DYVlwtMgb10O7//WRVvnn+obDS6M6dmBGokini idaTzq04ny7b5REpuZ+90WS0h8aoFJbIi4XKpbdekGKzwoIGEClZgvbJNpTH/Dhr2t7si HJeFCsWcOVQYyM6yW5wqJoB6bCT9BWRv2sGozI+6FcdBqUMk2oNic+GP9BV8NRopzWzOZ Yeogn9AobwvkYpMA6Wz8JfLK9JwN1m0yEvX7lhuqHk/zCjHzI5z0Nta+TEXoW3+l8eQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793888799; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=bB115A0rMOTqlvXkN/AIzQNgK8qZfXA7IorSb9CX7io=; b=BIR8JXWGPAL/WArjmZnRttenKxLleXQH3P3l+3H/MvWSQ1hjWMuSjj5isCPI8CaJQjEW f5YiBr26Q8VvOvoU5HZMCQjlACUTGIOJ1oVYQgwTn4XrrgbrI0Gz8bWmOj8gGw0Pu/xgn +UGmF/4bCR/oWCJa1xz5K2z1aPdJl1KE0QYbHdXBc4DDmvywWtiDvKhGvQ3BRm8SSP+Mm 3fTazK0Jw0JFzjJ53lkJnqZ8L2G4YFkkHhw1gPaH2J7zsYJQprykpM3B7AHtq1QcPcXN9 cRfzN9uRUUY6OgJqRpy8ckDQhfZxV/6wDgTmIHmZAqkGvLAHSDgOp6hRwy0fvzEJ0MQ== 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=kLZbEpUR; 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 C6908606A32D; Thu, 5 Nov 2026 14:26:38 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 141081F000C1; Thu, 5 Nov 2026 14:26:36 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793888798; bh=bB115A0rMOTqlvXkN/AIzQNgK8qZfXA7IorSb9CX7io=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kLZbEpUR7tlo+ZWC3OftlZigeROV+G/S2MWiAUwnAhPdaCJM4iLo5A1awAhxavhsK ODjt8ZKDP88satnWbUD6GyJ4WG7eLo0fcKsRBdewiQXCYKDQoZBgmWtygUXii0VkeL ShvkzBiNtiL8sf6hl04MO5SbTW7/GJVdVyI1b/pui/+wRkbFAza9ODH+jrtyPohyka dbCoChO6ac7g5lWxqnMOdWvoT2FaIXl2YzLeZYbMMwkKpAJW7TTjS4qMR9oAGRctuP EXSy3J89Bl1d90+lV7gUPTfQ2Zb65/zQZiFuc8RLOnMhxIu49FPToTDTH59SakH3pB t2ru7Bf2Hxzuw== X-Cc: netdev@vger.kernel.org, Felix Fietkau <nbd@nbd.name>, Lorenzo Bianconi <lorenzo@kernel.org>, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.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 X-In-Reply-To: <patch-f1b04513b0fe3fb0a35ac744799fb0f3@loljews.com>