Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6651566iob; Wed, 11 May 2022 02:18:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyptZr+J1i58+TlxbvRtRaGQb1ww0nKxR7FJwj5Sq7fiSuceTarshX9ch9SUr6KJyevUvzY X-Received: by 2002:a05:6402:40c5:b0:427:af77:c10c with SMTP id z5-20020a05640240c500b00427af77c10cmr27888509edb.387.1652260693376; Wed, 11 May 2022 02:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652260693; cv=none; d=google.com; s=arc-20160816; b=pqA0yFfPcVmR7EgVGw7UEWrNaGDPRX1zU1Mn/83RsyzrPdbKF6wi5hnpYm6iqhp9Qn cAfpDZDxZUPNquCQPg+uc2vh/+QWG7V5gimWT6imp9Ts1OkR/twY/UCKXgrKhZtmxhic xl6kMU0kvHIY2yUGMP4x0uWybEMb7GUVEOb7iAABPQtpjPmJ7XqREwt9z5ijOwFGkQ1G 5VBAIf3e049vaf/lva+91bFTubuDvyG0Qhpgs2k+zT509Xq1vSF20zYB5aqj97jsWjZc awc6B6tuNYQ82e6CVyh0pNmfhb+2kxGzuFaNzhHFHnGgjDOEqYsbmC4eqwrHMbURS5MS I2tw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x1CTARxTCcBRmbOr4xdk6jXfgn0v4S9YKk4prgzATyE=; b=MwYMuH7gverNEMFoarlsdpEqUlRPlzPp+N2aHE6IeuPSFbX8uVwMhTIt6DX8rP7r2X jFqdjvZ3dvG9edTtvSWxV9cjZDTsovOp9mM1dpWaU1q1ZTOGnShCNeGuMhWvHAnBPyVv myOqwM68Ag9v4SFMBt7Q4/fjj/xr6SQ3X+e3hEWFs/iOD6Bahl5nx/xOPsBx5pdS4lGo hAJznzojavK6KMzWquFPq1pQCQhuW0WTR1nG+5D8vAFV+rxXv6P4Mkw1KO9f4fijJmSV jArGhloWjJ/d89FFn+14iZ9h1VpeKOvBJ94YVZtn58v874Xn56TFHCLzqSrOthjed3tB FE2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=UleV9ZTW; 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 q18-20020a1709060f9200b006e8c13b56e5si1628234ejj.804.2022.05.11.02.17.49; Wed, 11 May 2022 02:18:13 -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=UleV9ZTW; 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 S1345458AbiEJPRm (ORCPT + 99 others); Tue, 10 May 2022 11:17:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345721AbiEJPQW (ORCPT ); Tue, 10 May 2022 11:16:22 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE0C1F3EAD; Tue, 10 May 2022 07:52: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:From: References:Cc:To:Subject: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=x1CTARxTCcBRmbOr4xdk6jXfgn0v4S9YKk4prgzATyE=; b=UleV9ZTWCCUELqwT4Zl/Uyh1D8 h/koyeCGeQ+PSs1/86JHD39OsfbdjRYromqJT11p00JgkD4b42U9LBVnjjKZ58nBoQPc2+J+U+kJR uX0yVmQsX/X7GqwdEQ9UZT5Bl7c69a5CH0LsBaf5A8DrLsVJUpLiQpWRlHHxHOxta6Pk=; Received: from p200300daa70ef200fccd1f935f1cf3cd.dip0.t-ipconnect.de ([2003:da:a70e:f200:fccd:1f93:5f1c:f3cd] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1noRDl-0000yY-5w; Tue, 10 May 2022 16:52:17 +0200 Message-ID: <5959946d-1d34-49b9-1abe-9f9299cc194e@nbd.name> Date: Tue, 10 May 2022 16:52:16 +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 Subject: Re: [PATCH v2] net: dsa: tag_mtk: add padding for tx packets 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> From: Felix Fietkau In-Reply-To: <20220510123724.i2xqepc56z4eouh2@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 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 On 10.05.22 14:37, Vladimir Oltean wrote: > On Tue, May 10, 2022 at 11:40:13AM +0200, Felix Fietkau wrote: >> Padding for transmitted packets needs to account for the special tag. >> With not enough padding, garbage bytes are inserted by the switch at the >> end of small packets. > > I don't think padding bytes are guaranteed to be zeroes. Aren't they > discarded? What is the issue? With the broken padding, ARP requests are silently discarded on the receiver side in my test. Adding the padding explicitly fixes the issue. - Felix