Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6670078iob; Wed, 11 May 2022 02:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqQYMytqWL5+Cs88POqlqLAaHs3c3A4MBdzi92LbelAbXS/Zy2Nsa8vGScSlwvev1Wn4MQ X-Received: by 2002:a17:907:9895:b0:6f4:d33c:56e9 with SMTP id ja21-20020a170907989500b006f4d33c56e9mr24003389ejc.156.1652262392572; Wed, 11 May 2022 02:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262392; cv=none; d=google.com; s=arc-20160816; b=PAHMebRgSTOqdGng/LoXE7WLDq3lScr+zWuuvxeEuPfRWzTvqImKWKUNogIBpqdPsv XEODhrvF44Zdw9/h2pBRh/SHR05XLkEEFXIMslCgoEtanczZ0x3GoCBnIg4mYDWE7Zua 7U/lgJnsHt8BL21ed0CJwFZVIVXgZUKw4tEabS0TAXfcczzqUWg0seWIdenmeEVMFgE5 qJG/taOXFZW8wm9W1LteI8laqf7KbLt994ZfCTQGgH73gjND8sVp//1Q9xIFloQv79nD hCYW4esP9ydP5gAMkJYiY2VHorNk4vmoxhX5TslmtHBsY0D+D4uYGsi05K2K79NyswEI dLtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BrrsVFYmseMUdQk4oKd66vfyUo2WHgJQLK+i7xiagmw=; b=Zg28+ai1OuQVVveuEVqiE8SDPjW32ofY5/7uscDZls/wliwsLdD3gwkXk+uPZagKh7 OuPVhah6aPK8VAajRgFnLtFyG+TkZ/z6DeZPPgvoPjvoIifwskjHcdc1Df3d2pSdIF8h i27dXiQKMX4CA2q8/53myCdjGWysQuAan9K2owbyJcO076Sngng37S6vG4L06f4W+zL9 9lyLyAqwSAZyV5GMRzpwF+IDY0MgL2DPc/X4lOCljArnIs1tc878SzG6/qnb7kWKUEzj x3wiSnB0VC3mzV50fsYsKvhqbHte5KUXNXE3IgKSEql2vQEy5KxQ/NzAn5rlayQPojon k7oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GBX1NGtj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020aa7c2da000000b0041d864def44si1871713edp.125.2022.05.11.02.46.06; Wed, 11 May 2022 02:46:32 -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=@kernel.org header.s=k20201202 header.b=GBX1NGtj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbiEJV0O (ORCPT + 99 others); Tue, 10 May 2022 17:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiEJV0L (ORCPT ); Tue, 10 May 2022 17:26:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05317D3; Tue, 10 May 2022 14:26:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D0806178B; Tue, 10 May 2022 21:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAAAFC385CD; Tue, 10 May 2022 21:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652217968; bh=kR2kpr/WthoIHNv/CMjDoYh09YdTh0O5cNq+3yPSmP8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GBX1NGtj8+fZSAQU+zwr0peTmOEVQ78ODOb3Wddpp7aNGpjggHfepUfk6+Nzrm2a/ 4Mb5YfAjDAXSJbQ+s95159HCT5EMsN01iONNmvHtL5QZdw2woEEamTn2S322glxmub UusdklfhDjjriBLJ/xbJFUsdrCie6t5oZCoHdwOR/SiZp4ajxO9QMWAaVZkWg+7vnG n4EPDUpFbnKaC1a+hyyujBMtwYISNrdhodogQOKP5B5315uwxIm4lxaMe+UySXQkPU heKBoimsFsohAPxifQJnp0o0EAJZMZ+75l5x01H0s4cmf3MgK9rolX7PpiS6YvqGcY JPJ0gu3Ji1TjQ== Date: Tue, 10 May 2022 14:26:06 -0700 From: Jakub Kicinski To: Felix Fietkau Cc: Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , 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: <20220510142606.34d83121@kernel.org> In-Reply-To: <20220510094014.68440-1-nbd@nbd.name> References: <20220510094014.68440-1-nbd@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, 10 May 2022 11:40:13 +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. > > Fixes: 5cd8985a1909 ("net-next: dsa: add Mediatek tag RX/TX handler") > Signed-off-by: Felix Fietkau You should answer all questions and address or dispute all feedback.