Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2413107rdh; Sun, 29 Oct 2023 15:18:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQz+eWrhjCGqL2N1u1MF0lS9hQGZSgxXAZtdKO7Nia5NxgETpGQ/5ellOFOxq6zm5WldEx X-Received: by 2002:a05:6871:8108:b0:1dc:9714:e2b3 with SMTP id sn8-20020a056871810800b001dc9714e2b3mr9885043oab.7.1698617901851; Sun, 29 Oct 2023 15:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698617901; cv=none; d=google.com; s=arc-20160816; b=QI8AN8u5hqG+4FzzaUiJZ+Ysv1BdBoDq0sxAz5PTyvfddTfWKRHL2yMK107ksbqvpU 5St+RMlT147aAYguvlfwuyHF9anHSjpOKZXdIiJxi7iRyxUMB7eGFPrB2PWFe41/AIwc HY2VhQ/L0+KVPs56T3nMSw1KV4pEc4I1KIU8nRxRQ2jsz+mCp5dlGKX6vN+FH4LTlS3D Pdke9GZ9g5SopAnaBZvGAXRjg+NQfrAHnYNZUs8e7FYQgN9tsmI3Wa+9n4a3TmE4oyDd fY3ON6XAbz7K4E5lVjqg33pcdUww38ASXpG6B7uf/NP8K/UO3lmmicQ2TwcuEnvxjheh RO8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=5+NMAGmgLsbp4iVOrCzm5ljXB2llQKDC2Ev5FVGmD2U=; fh=c2s2jVwE3DidsIemAYfVRqZyMBhAiD2sjg4zMFlvW/A=; b=rSFseYvbWodFBk9igLPteXgb9iim1QfhHuwazJqshCsGt+jBGbt5L5SB8L16Efx+9Y ZS5NArvV6N1okEBEWTc98I2YTY7vjCZnbitYHURlJ8fOQ2Kg7ghMTtDY8QSti4Qhdbqd Y1pbAzyKMY5S5ag0v3ssLt8IchtdzA+yu1Q/e9a1JelVBMAgAmc8FpHvKFMQH1MH4sFC iQ419eUy/ZWFhnzeqlAQkNhmHBXjrzJmIG0Oo04b52sKjAaV3Iz48b/can+Y2UNbmjji DlxB51/RpFb9X7PfXnfP2ienPrMU5ZLA3wE4X2icnHIfgZpbwoKMM7G7SC0uno6uSCsY GOHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id m125-20020a633f83000000b005aa5852227fsi4144911pga.622.2023.10.29.15.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:18:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 96DFC805F6B8; Sun, 29 Oct 2023 15:18:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbjJ2WSN convert rfc822-to-8bit (ORCPT + 99 others); Sun, 29 Oct 2023 18:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjJ2WSM (ORCPT ); Sun, 29 Oct 2023 18:18:12 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED9EBD for ; Sun, 29 Oct 2023 15:18:09 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-317-UlBHNFbGNfOFxGkrYIZEWg-1; Sun, 29 Oct 2023 22:18:06 +0000 X-MC-Unique: UlBHNFbGNfOFxGkrYIZEWg-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 29 Oct 2023 22:18:18 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 29 Oct 2023 22:18:18 +0000 From: David Laight To: 'Andrew Lunn' , Florian Fainelli CC: Linus Walleij , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] dsa: tag_rtl4_a: Bump min packet size Thread-Topic: [PATCH] dsa: tag_rtl4_a: Bump min packet size Thread-Index: AQHaCSnhGWzkfBO9PU2ZFG9wM9DcyLBhVnbQ Date: Sun, 29 Oct 2023 22:18:17 +0000 Message-ID: <7f6684f1f3d84a208daee16321197315@AcuMS.aculab.com> References: <20231027-fix-rtl8366rb-v1-1-d565d905535a@linaro.org> <95f324af-88de-4692-966f-588287305e09@gmail.com> <3ffe7ea1-4dfb-4db8-a2ce-67733a190138@lunn.ch> In-Reply-To: <3ffe7ea1-4dfb-4db8-a2ce-67733a190138@lunn.ch> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:18:19 -0700 (PDT) From: Andrew Lunn > Sent: 28 October 2023 00:04 > > On Fri, Oct 27, 2023 at 02:23:13PM -0700, Florian Fainelli wrote: > > You would want your subject to be: > > > > net: dsa: tag_rtl4_a: Bump min packet size > > > > On 10/27/23 13:21, Linus Walleij wrote: > > > It was reported that the "LuCI" web UI was not working properly > > > with a device using the RTL8366RB switch. Disabling the egress > > > port tagging code made the switch work again, but this is not > > > a good solution as we want to be able to direct traffic to a > > > certain port. > > > > > > It turns out that sometimes, but not always, small packets are > > > dropped by the switch for no reason. > > > > And we are positive that the Ethernet MAC is also properly padding frames > > before having them ingress the switch? > > It might be interesting to run a script which systematically does a > ping, or similar, for all frame sizes. > > > > If we pad the ethernet frames to a minimum of ETH_FRAME_LEN + FCS > > > (1518 bytes) everything starts working fine. Thought - is that just because it slows everything down?? > > That is quite unprecedented, either the switch is very bogus or there is > > something else we do not fully understand... > > It would also be interesting to know if the frames on the wire have > the padding removed when needed. Its not going to be good for > performance if a TCP ACK is 1500bytes in size, rather than the usual > ~64. Non IP protocols are very likely to object to unexpected frame padding. I'm also sure I've seen systems do (the equivalent of) printk for overlong UDP packets. If you search the right place you'll find reports of packets being discarded before one of the VM network implementations padded ethernet frames to an even byte length. (I can't remember which, but have some fpga logic that adjusts the MAC address based on the TCP port number and manages to require there be no unexpected padding - yes it is broken.) David > > Have problems also been noticed with traffic going from user port to > user port? > > Andrew - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)