Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3010961pxu; Sun, 29 Nov 2020 11:53:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEeWBH9UlhqqFmnYyVBhRGP8j8QrBozPteeLkP4q3nhs2aC9mzMH6cShWJWR9FtpTAaR1O X-Received: by 2002:a17:906:174f:: with SMTP id d15mr17530293eje.15.1606679629196; Sun, 29 Nov 2020 11:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606679629; cv=none; d=google.com; s=arc-20160816; b=h9mwA9LI4t2uatwxIm4/TKbQmlQwk5mYyRwuIiG9iit4DPWZf8wT2COd5b3YmlFg87 wTJ+uVvcc0uLE1QKqxF24jU0lgEunAH0QfKc+GJLKhdJ5Rw2OwII9U00JI+RovRVL9S5 MWjtmNcLySUooizm+RIZIoJB+XcoB7NQ69t8NVzfkPQaaTgMz+xmKRdmaASN328x7fLs mwWaQh33O+dZpBiWKBeehGxW5/GRxlN7ypId4oyO5Q4c1gJBB0sdthwEYA8ciZuIM2OY EpUVdJbqJ2VuWkya0mcH8tR6grRbqs/kKzF6Z351EDfrg/EuElRyCbou5wKh14zo5dqd 9YHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FPVmvGLETfFsJB2bxLaRoGgeBKaIWmMhRnqAH6ezMAc=; b=pKNozvY+/HhNIZ+vg5A6Rkyo+Huq/YM1ycLPzcFo8Zg7WH+iaPS2kcaRWiVuk1QBxJ p6K4GD1wnJXBlLjnOeztuQahyKwoDHRTMwA1miO3RsGQxbjvayFgg4wFY9xxJDdqi526 irCmMWVMXn+uiCjFT9VnCOmFCz5u9/p9eZx+XuH0ul3eWEoLPRuQu5iPb4pe6YBkHIsw +DnoXwuFfy4EplzfzDJaQHikbRloch/ONpkKkKkz2ReEl4/JJNcGrBqIvLJI17kcicXX mBiSCLcn2/sI6YnKXTcQopnDfyp/ag3W7O+OdWM9pLI9Cm0Ew+/SahAwg8XaMmizQ+6x onCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newoldbits-com.20150623.gappssmtp.com header.s=20150623 header.b=H+T+i92I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si9349704edi.333.2020.11.29.11.53.27; Sun, 29 Nov 2020 11:53:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@newoldbits-com.20150623.gappssmtp.com header.s=20150623 header.b=H+T+i92I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728538AbgK2TtY (ORCPT + 99 others); Sun, 29 Nov 2020 14:49:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbgK2TtX (ORCPT ); Sun, 29 Nov 2020 14:49:23 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38ECCC0613D3 for ; Sun, 29 Nov 2020 11:48:37 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id r9so9683059ioo.7 for ; Sun, 29 Nov 2020 11:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newoldbits-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FPVmvGLETfFsJB2bxLaRoGgeBKaIWmMhRnqAH6ezMAc=; b=H+T+i92IFdlJiKZBjnc4EM0zlsqe8bUe9HBv0tElLLwVg/TixUCrOCqiZGPHy/f8Qa ur7FJ8LqAtNkxNvmoim6tc3RQrODIIorOEHs7Md9TRWDwgz76dMq32nQ84ShOMpVxwl+ +qbe9zwLzZdhsa66wd+Ec2CmMdFzgFvgD1CRk2ZUEwVvVrqdiJG2KIAw+DdPRmqoGE7N 240BGnIQB3yi2yqgHXjSA2lZ0tIl2MRx4h04IWVMRBSu7DFKKGc/mGp6FtS28012hAzq R0KV14l+CjJeY+YO8bHo4AGtPlK4dxVlMrk4zE8VPO025rOjPZZfgt2Q32swi/4w1mAj O60Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FPVmvGLETfFsJB2bxLaRoGgeBKaIWmMhRnqAH6ezMAc=; b=OR4aDwOObCYEWfOTkGgxA2EAuJpzbYKpyCbpeCLp82vft3b+AX78U8gwTBVAIYV2wd vmgbbOVEbL2c0X/QLMX/5oHF0iKo38f4W4iFFtMfSIBq2cMR4x/HuqH8fZneG0iYbctt bVoigV0u4C062Hij6uTQ4cYFJNnI+Sd6DTt196tYDrC8sbLyV+3ROFOavMa7R8Wr39np YtaYWKWmD2a4r5uJ549G+6vOPMg3JPyMWG24UCBmwKV3rJSFP2ymXUhHEjDfkNlWLc5u eqCMkqgBzeeiy5IBm03Gvc3X/sxi8KVdIzbo+7CIebgGwFMgH+OlgMHYbtTRFubJydk3 m5pA== X-Gm-Message-State: AOAM533CMwrIxIatfnUBRjDwp7gug52lYiW5vjENhPN2qsXa4m7i5K0M NuLCKbh9iaJYWeI28PL9n9HV+1eC2vXlW7ePra9QUw== X-Received: by 2002:a5d:9042:: with SMTP id v2mr12402234ioq.98.1606679316572; Sun, 29 Nov 2020 11:48:36 -0800 (PST) MIME-Version: 1.0 References: <20201129102400.157786-1-jean.pihet@newoldbits.com> <20201129165627.GA2234159@lunn.ch> <20201129193822.GP2234159@lunn.ch> In-Reply-To: <20201129193822.GP2234159@lunn.ch> From: Jean Pihet Date: Sun, 29 Nov 2020 20:48:25 +0100 Message-ID: Subject: Re: [PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission To: Andrew Lunn Cc: netdev@vger.kernel.org, LKML , Ryan Barnett , Conrad Ratschan , Hugo Cornelis , Arnout Vandecappelle Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew, On Sun, Nov 29, 2020 at 8:38 PM Andrew Lunn wrote: > > On Sun, Nov 29, 2020 at 08:34:27PM +0100, Jean Pihet wrote: > > Hi Andrew, > > > > On Sun, Nov 29, 2020 at 5:56 PM Andrew Lunn wrote: > > > > > > On Sun, Nov 29, 2020 at 11:23:59AM +0100, Jean Pihet wrote: > > > > Some ethernet controllers (e.g. TI CPSW) pad the frames to a minimum > > > > of 64 bytes before the FCS is appended. This causes an issue with the > > > > KSZ tail tag which could not be the last byte before the FCS. > > > > Solve this by padding the frame to 64 bytes minus the tail tag size, > > > > before the tail tag is added and the frame is passed for transmission. > > > > > > Hi Jean > > > > > > what tree is this based on? Have you seen > > The patches are based on the latest mainline v5.10-rc5. Is this the > > recommended version to submit new patches? > > No, that is old. Please take a read of: > > https://www.kernel.org/doc/html/latest/networking/netdev-FAQ.html Ok got it, thx! Found the commit 88fda8ee and its parent [1] with the following comment, which seems to indicate that my patch is not needed anymore. Can you confirm? /* For tail taggers, we need to pad short frames ourselves, to ensure + * that the tail tag does not fail at its role of being at the end of + * the packet, once the master interface pads the frame. Account for + * that pad length here, and pad later. ... [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=a3b0b6479700a5b0af2c631cb2ec0fb7a0d978f2 Thx, Jean > > Andrew