Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1474724rdh; Fri, 27 Oct 2023 16:04:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSsu7HQLbkm7QgzUIfVJGfr2kTUgzotdY126WYne8XZav9zsrJ59PkLthDziTV/8ZThi0x X-Received: by 2002:a25:e68e:0:b0:da0:411a:a393 with SMTP id d136-20020a25e68e000000b00da0411aa393mr3752877ybh.25.1698447849624; Fri, 27 Oct 2023 16:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698447849; cv=none; d=google.com; s=arc-20160816; b=bRyB3Nm7PvR9dUULQ/usOTqTU+iVocNG6MhLs1l4sox1GJeZ0ICmZ2kEl3TFI1BtfO mP4yu4T1roFkgzyRvn7mNl947/5Bvkj/H0b7aHZJ/1KrvaRU2gWg+6HqjR2EAnb1Bli4 rsgHm4GVHtNUjdxA8RQ85lmkmm7BibzZr1QMw/AS+f2FXae6FSQWFGkfo0KFv5U0DMY5 XVx6o2yvW3MUg/3rjV6qh8/ukU9e60jm59VCXu35Bu7v9vnlWQj3vsf7AaM5JflGc1RU tRIQU4qPLxeRvkZY+zGyNoXQCCk+ShbFTLJp5ZycbzDKC3CGJ5qRqYiT2z8Bm/6/YvV9 EwGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xRiJUuGtHW8iQQcWj1oKNcb7oucnpbSMai50FKnBweM=; fh=d7jpQxrIttac+m8cDn53S71MMMpLIdT2ZTw3r7ldZL0=; b=APBx9WK+R9Xa2EI9iC40+CVYBur6620EK+ktB6+PACyiFx04Fhq7b6i1CITIW/dz29 sFU6wI35BoV7BxnDM5kCieBLWb8rh1iPppdtJ3KvWgOeZ5M4pr7PT+5lIpshuY47sget bFb0BLvpNluGh8wZjVIzbqjmZolYbf8K1MvS6FUU6QWa7WLdplux2a/pCnbh58k7ezx7 jUITbP+xGfgrmtL5Tqq3t1+lvwsAAw3HH7+6+x6LAjyWSzpByPn3Uuqd0qCXwpDTl5He ed9aCtMHjLFIfI6fBJbLkDIt0l7EzbSOGcAqv7csdNT7zAEUu1Yptz9EjEKGF0uevgpl gWUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=M7hoPYjM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id r39-20020a25ac67000000b00d9ad61e09ebsi4374267ybd.522.2023.10.27.16.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 16:04:09 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=M7hoPYjM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A51AC82B1069; Fri, 27 Oct 2023 16:04:06 -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 S232873AbjJ0XD6 (ORCPT + 99 others); Fri, 27 Oct 2023 19:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjJ0XD5 (ORCPT ); Fri, 27 Oct 2023 19:03:57 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5208EE5; Fri, 27 Oct 2023 16:03:55 -0700 (PDT) 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=xRiJUuGtHW8iQQcWj1oKNcb7oucnpbSMai50FKnBweM=; b=M7hoPYjMTY6dR1wilNag4sc1b6 OLHFdmdwyCFcNsBJRwhRzeV4MzMG0TWm1ytdW7oR6qrYdT+tu1jMYTrFExoSMZFzFhQeVTmUHBk5S +lxh4g+segET8/HtuzR81aVd751X1jAX9EcTxfBn3bCiuBqL2EeQmVjuQ66BS8k/siJU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qwVrn-000Ned-27; Sat, 28 Oct 2023 01:03:47 +0200 Date: Sat, 28 Oct 2023 01:03:47 +0200 From: Andrew Lunn To: 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 Message-ID: <3ffe7ea1-4dfb-4db8-a2ce-67733a190138@lunn.ch> References: <20231027-fix-rtl8366rb-v1-1-d565d905535a@linaro.org> <95f324af-88de-4692-966f-588287305e09@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <95f324af-88de-4692-966f-588287305e09@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Fri, 27 Oct 2023 16:04:06 -0700 (PDT) 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. > > 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. Have problems also been noticed with traffic going from user port to user port? Andrew