Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp554726iob; Wed, 11 May 2022 22:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtuxQBEusp8dXlceNvrhsvus09VHdjIveicWfx8Z0R6fW8eWrpcSyyGqH1CoXEkqbAKCUQ X-Received: by 2002:a17:90a:aa8a:b0:1c9:bfd8:9a90 with SMTP id l10-20020a17090aaa8a00b001c9bfd89a90mr9074280pjq.118.1652333452297; Wed, 11 May 2022 22:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652333452; cv=none; d=google.com; s=arc-20160816; b=AstS71LrOreEZO6d5gMVnnyJhgffEE2Wpa8h59CVEEOvH6mPpwxGegCoAA16FG8ZFI 3RvO0KbaxiDi/wjc5QpIMwAAKurGN5LFi/hmxzXfhFH3EfdDYdABDqGWjIKPBN7gvERU EGVx23eDo9K9MzhTKaYKmDUBkAZHo871FEgmg3HvyDhF6Y//C2Gi2KcHU7nh6Dp/vvTk S+gmDohvrFApmgMCDFrCW3EEdCsQ+wOcIVA6ZsLFh9I1lKSkRrg1ADzOJU/g6+1iewj/ Cx9giiFbHcw4S6dPgtPfgImKVMa8/mZWRTYomu6nbp4QM/fTCXLOynjikBmSF9naZv9V jhVQ== 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=FiKDI9HhA7r1AHskj6iUp9mVld6qQ9o+A800DaQAHwQ=; b=XPmCFDoDUFgfSk8IDj3kfkCveTRI0/fnBmQENIEu/hSgFoS2mEX+2HH2kciQz+E1iL a6CnzY6G6ODJnPrCkxRKB2ZR5l/PM5YN5k4b7M1k9YpmrDQNQ7WX6ipdyFYcyVMhDJPW B1XvXQEndOgR4XuZ3g1xSUg+TzF0gd2qQqrS+E2oAIZOHsU8kW361K79zAJHYt4/6L6H Xc5jPCAwRsZkeKE9zZPiBXh+jbd/TK5vMcqTZgQp/GcyOgc3KW2Oc/k7NXQ7OJ+MOOP5 XnWwcrc7GZqjxKVLWHRZGKjwAslqS068va6nZLDgYbGC7uYngNC+SH66qxlmcqxExJXf GN4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XlpCopCA; 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 l184-20020a6391c1000000b003c1a429260fsi2091485pge.791.2022.05.11.22.30.38; Wed, 11 May 2022 22:30:52 -0700 (PDT) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XlpCopCA; 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 S244880AbiEKOjp (ORCPT + 99 others); Wed, 11 May 2022 10:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244878AbiEKOjn (ORCPT ); Wed, 11 May 2022 10:39:43 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCB6B36F9; Wed, 11 May 2022 07:39:42 -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=FiKDI9HhA7r1AHskj6iUp9mVld6qQ9o+A800DaQAHwQ=; b=XlpCopCA1tvMM4IGD6BfsvKJJ3 6Ne4J4K8ICTVijFI20gMdznQKN26v+HzXDOqQM+gLJnQNUlf18YCULwS+DYBTr1W2CT//sXr/pzm/ N3v2xqYRQugLIno12BUCu9wbMJJ9pYaAWEJDtK/7iqRJ4KtfCExbag4imqu4x1d6YffI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nonUx-002Jv1-LY; Wed, 11 May 2022 16:39:31 +0200 Date: Wed, 11 May 2022 16:39:31 +0200 From: Andrew Lunn To: Felix Fietkau Cc: Vladimir Oltean , Sean Wang , Landen Chao , DENG Qingfang , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: dsa: tag_mtk: add padding for tx packets Message-ID: References: <20220510094014.68440-1-nbd@nbd.name> <20220510123724.i2xqepc56z4eouh2@skbuf> <5959946d-1d34-49b9-1abe-9f9299cc194e@nbd.name> <20220510165233.yahsznxxb5yq6rai@skbuf> <20220510222101.od3n7gk3cofwhbks@skbuf> <376b13ac-d90b-24e0-37ed-a96d8e5f80da@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <376b13ac-d90b-24e0-37ed-a96d8e5f80da@nbd.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 > The garbage data is still present in the ARP packets without my patch > though. So regardless of whether ARP packets are processed correctly or if > they just trip up on some receivers under specific conditions, I believe my > patch is valid and should be applied. > > Who knows, maybe the garbage padding even leaks some data from previous > packets, or some other information from within the switch. I somewhat agree with Vladimir at the moment. We don't seem to fully understand why the change makes things work better. And without that understanding, it is hard to say if this is the correct fix or not. If this fix is making the transmitter work around bugs in the receiver, we really should be fixing the receiver, otherwise the receiver is going to be broken in other scenarios involving padded short packets. Andrew