Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3005293pxu; Sun, 29 Nov 2020 11:39:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZQVe1peYpBIFtIDlqd2HvPBhCh4OVrqVb56+IGMm3Jgv6lsmIujdlem/r/va3sPRaZjbh X-Received: by 2002:a17:906:ca98:: with SMTP id js24mr3314102ejb.252.1606678763036; Sun, 29 Nov 2020 11:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606678763; cv=none; d=google.com; s=arc-20160816; b=vxFxWqSXgxSI3HpaZ6lO7uJP5bHQLJcCjgn39H3VHqQ854usjrtaSIgkKeyf6ZKOFG Ug7L9yhZDQ5VuYTk3oZK50BA5E59DC6QSC5bRs+RlxeqdFmY50gyuwrET0I5eFU3wv61 jKnOdbpuuJxs2gL/c4RvPR897NkZIxc3B0jcmXmQdwYBFeHaXipa7GrLj/LNpK7/uwMp tgmEdL84SdgPh8Zb4BCOl5l5b/ENEb/rxif2fv7/Zyx9qqk7rNjyBVVhEmAQ7xOyoWcQ 1r7gK52er9v5w7OPQ9tMiRUM+dDo7SJtQNYjRwOtmjmbxSBkQOFrsx+DYGrtrHfBBoQG gw+A== 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=DrCD3mA5Olpt2H5c3KcvfE24BrJX4U4Y5EspwM0r63Y=; b=0fgvqNQcd/3dhHdZkzs+z/JuELf6hSGetdILSuhSEWYITE2//QRrCeC0tour69D7CS 07sl9c0U70uHzWKVX7Q27b4SX4/uGLOLTRGDkzsDmzkC+YPkt+udiVO71Z2AmVXvplvk 9pkBnNzSb7C+0s8H8j51uOtN0x5bszcKsNDFvQ6Q2DEbroztsIF5C9DJ4KId1kDts7qy WTDRZJ6A0HJpdzNdBsGoPgdg5UJrPkf7RqyTumHmpYde+jJG7fhz2/RLuVTM8Ody4Tae eNOOh46lSIi+hPvr7ZT5+PJko51mkbSCc1JyXenmmReGms8SBA3nZyDF6C16fLdjDhyM YHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newoldbits-com.20150623.gappssmtp.com header.s=20150623 header.b=UFn6ISBx; 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 v5si9478334eda.107.2020.11.29.11.38.53; Sun, 29 Nov 2020 11:39:23 -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=UFn6ISBx; 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 S1728318AbgK2TfT (ORCPT + 99 others); Sun, 29 Nov 2020 14:35:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbgK2TfT (ORCPT ); Sun, 29 Nov 2020 14:35:19 -0500 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01B4C0613D3 for ; Sun, 29 Nov 2020 11:34:38 -0800 (PST) Received: by mail-il1-x141.google.com with SMTP id p5so9295466iln.8 for ; Sun, 29 Nov 2020 11:34:38 -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=DrCD3mA5Olpt2H5c3KcvfE24BrJX4U4Y5EspwM0r63Y=; b=UFn6ISBx8NsI1cjPakuJ53hAPgzk+3mBf2hqWZfAT7QhuCLmWlTXxrW7WnLDJoFTdU 0Lkn8QU8kNgR+/8U+n/UUF7jDAmEqUtCAxzhSft57+4oINaAmvhvgH+a+UIpzfcc+kKw PVYXCIdYBmYIhsbVENybB8mXiEFJ+993iMEh1Yn/TK3uhZMjnFZIvjKFHXuLcFY3m4Pn /vmZZ/1A/VpetC3KKd8PBxo5CNKsAxvN3nzc04KmqnyS8YlHl4Z/D75HzAxwLuHPV7a3 i29sFX2lPJA9VDbRLKqHTdPPO9c3NXLUP7M9cxKy6gqZseGgEorED9jzZDZJI+KenBAE RmSQ== 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=DrCD3mA5Olpt2H5c3KcvfE24BrJX4U4Y5EspwM0r63Y=; b=pDjFnKcbIjnyjQE4J6lSJWVYEGPXyKykEJn6pl189DzQdHJ4dz2ah/nc8cihcqKG0C AlBUavoqnk4qaI9rh3U+Y6c3T6MnLjbd6E76uFh80LL17OMaABDOZPCIgZtT4SZuYg/G ongBugaiHBkGF+rTrN4AqG+xoJMJQvieyBjJchmPX3bMg4dnhRIOlEVwENmwxaxBQEjz BAsP5fJ8/CYVqeX52z0IhsKQ1HhZ7X29ma+dIJ6CRHFz2D1/iMAPNppmVBIVnuW3pSH5 rkyv4Dk2Zcat4q//yEzkPzv2T0Fez8+ctR9RDPaiNpNTpg1HmvOM05q29ENhkBcor64c gLvQ== X-Gm-Message-State: AOAM532v3krwkGygXLR8fc00/wd4dxREL28QNK2DxSBJ2SvTTcvOynXt p+RlNbKt6KE6lMsZydcmLUW6i9SXhRtOmRalmnl/cA== X-Received: by 2002:a92:c213:: with SMTP id j19mr16249711ilo.255.1606678478036; Sun, 29 Nov 2020 11:34:38 -0800 (PST) MIME-Version: 1.0 References: <20201129102400.157786-1-jean.pihet@newoldbits.com> <20201129165627.GA2234159@lunn.ch> In-Reply-To: <20201129165627.GA2234159@lunn.ch> From: Jean Pihet Date: Sun, 29 Nov 2020 20:34:27 +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 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? > > commit 88fda8eefd9a7a7175bf4dad1d02cc0840581111 > Author: Christian Eggers > Date: Sun Nov 1 21:16:10 2020 +0200 > > net: dsa: tag_ksz: don't allocate additional memory for padding/tagging > > The caller (dsa_slave_xmit) guarantees that the frame length is at least > ETH_ZLEN and that enough memory for tail tagging is available. > I cannot find this commit. Which tree/branch is it from? Thanks for reviewing, Jean