Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC521D47CA4 for ; Fri, 16 Jan 2026 01:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LGiSUz37N9ovSZPw34TwWstspblmqZbHN8iTZJ4qCGU=; b=a/SzUCl2SLJLNcq2v1Nvlhxv5K lFSiX+8GtVrApSMfEq4hRWhe0SngML74w+nUAV6TRcJzVl8GAAxvDl1K5viS+UtmrSKOoDkWgmvJC R1lZXmCp7XlLS96FP5qSzA0kjI1sNTQzuc2QqRK8sz0H/rxq8bpFxEoj9JW58pxabN0MbdtqcdLgb n42/KyE6taWf3bwU5hMKHTOpbBlatfmZRmi9dw8wB23mErviV7mm8qI2sY4BEI70clQCzMdwyba6S uOu1piYzqbqKjloIE3WmIpjbN2moqZO2iiKcDIwZgnYKzUo6jYRF/WZhnS+BzOYFaGRt/Icev+FQ7 LqzdFFWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vgYKK-0000000DP35-0CfM; Fri, 16 Jan 2026 01:08:36 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vgYKH-0000000DP2W-1f3j; Fri, 16 Jan 2026 01:08:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=LGiSUz37N9ovSZPw34TwWstspblmqZbHN8iTZJ4qCGU=; b=JUkH8GxV7ehKt+YzFs1LPmF3J7 yZJdJP7NGpfeasSHg/nkXKNVRrqOa62ZUUCz5s/di26PwMOxmtS8V5mWv6RJbYPLTrfMU3NeiTTuy lzQYzN4FqZrFBU1XAWDJopXBwEitl44YxBUAh0kScCYJdOm1EypPoGBEomkMYpww5xKc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1vgYKB-0030eW-2r; Fri, 16 Jan 2026 02:08:27 +0100 Date: Fri, 16 Jan 2026 02:08:27 +0100 From: Andrew Lunn To: Benjamin Larsson Cc: Sayantan Nandy , lorenzo@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, sayantan.nandy@airoha.com, bread.hsu@airoha.com, kuldeep.malik@airoha.com, aniket.negi@airoha.com, rajeev.kumar@airoha.com Subject: Re: [PATCH] net: airoha_eth: increase max mtu to 9220 for DSA jumbo frames Message-ID: References: <20260115084837.52307-1-sayantann11@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260115_170833_443457_36CFA977 X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Thu, Jan 15, 2026 at 08:10:20PM +0100, Benjamin Larsson wrote: > On 15/01/2026 18:41, Andrew Lunn wrote: > > On Thu, Jan 15, 2026 at 02:18:37PM +0530, Sayantan Nandy wrote: > > > The Industry standard for jumbo frame MTU is 9216 bytes. When using DSA > > > sub-system, an extra 4 byte tag is added to each frame. To allow users > > > to set the standard 9216-byte MTU via ifconfig,increase AIROHA_MAX_MTU > > > to 9220 bytes (9216+4). > > What does the hardware actually support? Is 9220 the real limit? 10K? > > 16K? > > > > Andrew > > > Hi, datasheets say 16k and I have observed packet sizes close to that on the > previous SoC generation EN7523 on the tx path. Can you test 16K? Does it make any difference to the memory allocation? Some drivers allocate receive buffers based on the MAX MTU, not the current MTU, so can eat up a lot of memory which is unlikely to be used. We should try to avoid that. Thanks Andrew