Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5407iob; Wed, 11 May 2022 08:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOVGiFxVH1j0WKJ6EJ6ujBZnmg1P/+vUoxPxtDQ4uYwNx+zXBkPrO/dy5HATpPgWSiIi3H X-Received: by 2002:a05:6a00:15d3:b0:510:3c69:b387 with SMTP id o19-20020a056a0015d300b005103c69b387mr25457781pfu.30.1652282614595; Wed, 11 May 2022 08:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652282614; cv=none; d=google.com; s=arc-20160816; b=SX3UP2gNgShNZ46E6koaUT4XvhMcF1AKj1TtsAKTM4+vB9gGGbg4oktRK30lhY7mlh GceowfNngbV0BLbpQ5j8WHy2FvpXMk93EEgfMLiiQGRStbAl+z/trmg8tq3coO7UEnZQ FTWEMY40uSNYUjzpX4jCijSEg7g1Dayu5omQLj4qAPZGxv0jOEuuevSFptgPNp5Su3Yd bw1XVyfApfsMd1GCvZ8GPgM3LC2Wmz9CNYACDy2RYmXBvBX08EWIt5vuGqDDAERFbxKF /h1HxfsyLTZ++zJJMbDISbt2YFB/GFVIXQnXgMHaw/rFmw+lfBDq6c4LJkX0iGvb1G/l n+ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=K9S0p/PZ8mVH19diTHdZftm0WUxvYRUVPKuMIoWWr6A=; b=l2CE09K6jbbH87QeH3ZMXsO8/xmLCFbfn5tkk0l7IiZ2gX3Tb32OEBc/gdkaL0+xJw qx9xAf0/hW1c1pzXonta3oAbwFelQqWtI3QQkyOG1DqE4eDKw16Zdjhfwaz8K55t+s2C /jI0Uosw/2IbIYNyrn/zsQUzcd2PXwahgOegvgvlHU2iFhAMKqYpd207O3ZZmMU8VDs/ /B5+O9gr0ckSyGEPQNU1U4a9XaBVbNvjd2m9JswD2WIJ3NyZLhxaL1Yb6olxEg/mo/Ew SK/yF+9byMaIfK/d2/OEynl83FdC4/fscWpBHyL3N1XDYVOg+erstRjI3H3Gv+vU4rOk iNAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=gqqRzYAy; 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 n8-20020a170902f60800b0015cfd262931si2497182plg.104.2022.05.11.08.23.21; Wed, 11 May 2022 08:23:34 -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=fail header.i=@nbd.name header.s=20160729 header.b=gqqRzYAy; 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 S230057AbiEKIug (ORCPT + 99 others); Wed, 11 May 2022 04:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiEKIud (ORCPT ); Wed, 11 May 2022 04:50:33 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C86A2181CD; Wed, 11 May 2022 01:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:Subject: From:References:Cc:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=K9S0p/PZ8mVH19diTHdZftm0WUxvYRUVPKuMIoWWr6A=; b=gqqRzYAyEQaZPglJ6z5hwVhmcy ti0G3HCYz7sxUTKH6vXINCJA/N7H7NrCT7ghoWlveD5910asAltd71LxWbLjTQYXZJiVb+lD2XIVF Q5YP3XqAugpioX/H9Vuw2lQqxASCD96KfQxSsxTbfzofUXvfyy5ANESzjP4VZ1SGusDA=; Received: from p200300daa70ef200e12105daa054647e.dip0.t-ipconnect.de ([2003:da:a70e:f200:e121:5da:a054:647e] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1noi30-00040B-O3; Wed, 11 May 2022 10:50:18 +0200 Message-ID: <376b13ac-d90b-24e0-37ed-a96d8e5f80da@nbd.name> Date: Wed, 11 May 2022 10:50:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US To: Vladimir Oltean Cc: Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , 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 References: <20220510094014.68440-1-nbd@nbd.name> <20220510123724.i2xqepc56z4eouh2@skbuf> <5959946d-1d34-49b9-1abe-9f9299cc194e@nbd.name> <20220510165233.yahsznxxb5yq6rai@skbuf> <20220510222101.od3n7gk3cofwhbks@skbuf> From: Felix Fietkau Subject: Re: [PATCH v2] net: dsa: tag_mtk: add padding for tx packets In-Reply-To: <20220510222101.od3n7gk3cofwhbks@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,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 Hi Vladimir, On 11.05.22 00:21, Vladimir Oltean wrote: > It sounds as if this is masking a problem on the receiver end, because > not only does my enetc port receive the packet, it also replies to the > ARP request. > > pc # sudo tcpreplay -i eth1 arp-broken.pcap > root@debian:~# ip addr add 192.168.42.1/24 dev eno0 > root@debian:~# tcpdump -i eno0 -e -n --no-promiscuous-mode arp > tcpdump: verbose output suppressed, use -v[v]... for full protocol decode > listening on eno0, link-type EN10MB (Ethernet), snapshot length 262144 bytes > 22:18:58.846753 f4:d4:88:5e:6f:d2 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Request who-has 192.168.42.1 tell 192.168.42.173, length 46 > 22:18:58.846806 00:04:9f:05:f4:ab > f4:d4:88:5e:6f:d2, ethertype ARP (0x0806), length 42: Reply 192.168.42.1 is-at 00:04:9f:05:f4:ab, length 28 > ^C > 2 packets captured > 2 packets received by filter > 0 packets dropped by kernel > > What MAC/driver has trouble with these packets? Is there anything wrong > in ethtool stats? Do they even reach software? You can also use > "dropwatch -l kas" for some hints if they do. For some reason I can't reproduce the issue of ARPs not getting replies anymore. 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. - Felix