Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1687817rwb; Thu, 10 Nov 2022 21:38:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf67lAkpdeEi1V7FKsl9Zbuz83gk6kr2DM7gKp5BHp6dMTxKI2WkNsyBPCtpxtgGam3Ya9i2 X-Received: by 2002:a17:907:2ad5:b0:783:978:b39d with SMTP id fm21-20020a1709072ad500b007830978b39dmr657343ejc.349.1668145133096; Thu, 10 Nov 2022 21:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668145133; cv=none; d=google.com; s=arc-20160816; b=Q2lNKCnQE8IcPp84bVMSDEZU8hc78mSUahFure+8m+zFlXjSaHkLCGF/Qa0rkMhVCt aI4laE8b0wbuMOuz1o4v1ADOcJv5umATuXg3PMIGiXshApek0ldE5UZ7d5ex7WCcSRW8 fV5291eBP5rRpnE3NWLIbAlCDpZktMyoJYQjhHr0MFLGp8NHNt8CVFpu5YonaeJp5pfe rVmoZhj4NPAvh3gAF7MuUJxTI94umnglrakg4kj87fWhMfxHwN7HFJb5b2p+EGfHqfnm CDj/INu53bLSJrd7gAcAT87+g/JLVug6EV+ZJI/sb0WXYCZPWdFO/Y09jLCb+PS2hhI1 GJiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PZsGESPUqh+fmcBpk+fqQF7wER6u9NyJpWgrdFxwYng=; b=OAS+vDQ4lxHaOPR1sLJqMJh4L7u3lFwXZqEmh6n1L/VQlVHr2eci9D6BFJdmDly47S LNkktyU6loM3ehOkPeBi0FllFNhZgWCo5RFq5Bg352rnfRqkEy+sLCHqS1yRboHBUCDn NLdoY7YwXup9YfUJS/LyiYc2HYpf6oRO8AhjRsVqOeSfCb48fL8w24ceSkpuNtn0sZ21 QsRjZlUZ5Y3p4DapGgDvbw66nZrMFwLP5oxJLPFFzaxE7KXI8/RjYhXGnWDvhq483TV8 LQcyX8cCixVf8SpbA+D28l1veAxgJGJzPF4TXyfqvz9NUON+rK/Ri3PuGcSZ8psUiArc U8yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a05640242cf00b0045c3592301dsi2031457edc.191.2022.11.10.21.38.31; Thu, 10 Nov 2022 21:38:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230043AbiKKF3z (ORCPT + 92 others); Fri, 11 Nov 2022 00:29:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKKF3v (ORCPT ); Fri, 11 Nov 2022 00:29:51 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6031054B for ; Thu, 10 Nov 2022 21:29:50 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1otMbh-0004ec-SX; Fri, 11 Nov 2022 06:29:37 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1otMbh-0007dU-Hp; Fri, 11 Nov 2022 06:29:37 +0100 Date: Fri, 11 Nov 2022 06:29:37 +0100 From: Oleksij Rempel To: Vladimir Oltean Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Arun Ramadoss , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v4 4/4] net: dsa: microchip: ksz8: add MTU configuration support Message-ID: <20221111052937.GD27099@pengutronix.de> References: <20221110122225.1283326-1-o.rempel@pengutronix.de> <20221110122225.1283326-5-o.rempel@pengutronix.de> <20221110130325.eklhybumv7naehxe@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221110130325.eklhybumv7naehxe@skbuf> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 10, 2022 at 03:03:25PM +0200, Vladimir Oltean wrote: > On Thu, Nov 10, 2022 at 01:22:25PM +0100, Oleksij Rempel wrote: > > Make MTU configurable on KSZ87xx and KSZ88xx series of switches. > > > > Before this patch, pre-configured behavior was different on different > > switch series, due to opposite meaning of the same bit: > > - KSZ87xx: Reg 4, Bit 1 - if 1, max frame size is 1532; if 0 - 1514 > > - KSZ88xx: Reg 4, Bit 1 - if 1, max frame size is 1514; if 0 - 1532 > > > > Since the code was telling "... SW_LEGAL_PACKET_DISABLE, true)", I > > assume, the idea was to set max frame size to 1532. > > > > With this patch, by setting MTU size 1500, both switch series will be > > configured to the 1532 frame limit. > > > > This patch was tested on KSZ8873. > > > > Signed-off-by: Oleksij Rempel > > Acked-by: Arun Ramadoss > > --- > > Reviewed-by: Vladimir Oltean > > As an extension to this patch set, you might also want to set > ds->mtu_enforcement_ingress = true, to activate the bridge MTU > normalization logic, since you have one MTU global to the entire switch. Ok, I'll include it in to a different patch set. There are more patches to mainline :) Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |