From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91493C3E8C5 for ; Sun, 29 Nov 2020 19:39:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 512E420771 for ; Sun, 29 Nov 2020 19:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728821AbgK2TjI (ORCPT ); Sun, 29 Nov 2020 14:39:08 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55856 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbgK2TjI (ORCPT ); Sun, 29 Nov 2020 14:39:08 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kjSWc-009OGj-RY; Sun, 29 Nov 2020 20:38:22 +0100 Date: Sun, 29 Nov 2020 20:38:22 +0100 From: Andrew Lunn To: Jean Pihet Cc: netdev@vger.kernel.org, LKML , Ryan Barnett , Conrad Ratschan , Hugo Cornelis , Arnout Vandecappelle Subject: Re: [PATCH 1/2] net: dsa: ksz: pad frame to 64 bytes for transmission Message-ID: <20201129193822.GP2234159@lunn.ch> References: <20201129102400.157786-1-jean.pihet@newoldbits.com> <20201129165627.GA2234159@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Andrew