Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3006672pxu; Sun, 29 Nov 2020 11:42:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfo/TV8h7x9G1Pmd+vsBfnP3o+TyK5ECsskDLDKaWUcxSB1hNtUhC1LMt5rzttfpXluJ5M X-Received: by 2002:a50:af65:: with SMTP id g92mr18147676edd.273.1606678967014; Sun, 29 Nov 2020 11:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606678967; cv=none; d=google.com; s=arc-20160816; b=X6UaaKebFTtZU8axMEcpLfdK7q0MCzY90umZPxM4jYiziWaFQyjybW4aeRk9UHQT3F n46h76PiYce705s6/qx+tvee4X8BcGY6xpEw/5x6uR/upmKfNq/vOAiRZZpXVvJ3VgL1 DQrRZl+nxQjZWUi+aQWH9OCexJ/KZfwplr1QRftvZehKavdl+iWSuJh310/5rsES8Pqx olBqR/6lYdUD1JvGbN/arz1FdegMUyv8dnRxqfMSIPmU64RFKvlW5De85Vpa5dK02GQR A25j71rzStbFC9OMiW+sGuNRcUVfnkzHNCgJKZouD1IzFSqKXDaRpGd2f5PVo+u/IcMP hKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iFCBK4/m+6FROSK1Su66NvuBytKYSGouasU673zgN4s=; b=p8C+Mad9N/CkZZ2pPN9Vq6angT85t+d79hZ3FJ0Jmzw0cgb94UvVi7Kl7fjIo9C9mD KTaiCOSBByJKIDU5G7aqq3Sp76yqI54hTrSpWiNcpeZmgZZlOaw5F2thvI9hwTo4DlXQ HpTbsvU80edPaWL1L4ZgesIm7DHvrSKksrVdP/chTgkED28juidC3Oeliy+Je9IcOhJe s8tAX521kyN3Q6Un+6TCy+CL7p5C2FFOTCj7zldQolZQwNGAWH8iahIZ+JUMuErwgCCj fhpE8lwi/Ch2L6k5v1tGiT9j13jaayeON+R2RG/rfvaT1zEu0jYXktBj32Bl5+i4+h0h i71A== ARC-Authentication-Results: i=1; mx.google.com; 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 q9si10049923edn.33.2020.11.29.11.42.25; Sun, 29 Nov 2020 11:42:47 -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; 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 S1728796AbgK2TjI (ORCPT + 99 others); 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