Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp729070pxf; Thu, 8 Apr 2021 11:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztOSf4hGQ695qp0d+vkAzhpoiQZYyOhBqWkc74O9r8Aj/7O8JGO1PbouF9441R7nAiQ7ue X-Received: by 2002:a17:906:3295:: with SMTP id 21mr12273361ejw.88.1617906403730; Thu, 08 Apr 2021 11:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617906403; cv=none; d=google.com; s=arc-20160816; b=Y8WRw+t3BH+n8vsIpCfoqOhJOpcTA1Qfc+OFGTiid0OH9MYU7Zp7ltwuXQldgtPKJj WOTwgAWFFz7q4dWy8e50Y7C4FGpCHQ7oRltMse0gabPtq7TO5z6P3+LA0ulJrHln2RJu /4Q4iei92csZD8IiHRB9qfXZpzWSmXJV4RsD/tGNYtqmaWne2M1d1B7FzGJeiYIhCNmq V9uAcGU2Cq/mqzcP5GXYyq2AZaiuKMxV/l41tpbrXNU6JQB39Npn9BNRfN5FSw/qCFVQ AKEBOxN9rKTeX/nL62YjyG37dzFZQreBhhMXBnsyi4HloyKvVfWWv+svyifc6pOPpd0l ynDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7TAxbFgp4EueLLfJHLyzRnfJptywMygGVE2WRaLE8QA=; b=tcbCXzW56VVYAm+z0zRSG/QDf02+CHNWwJA5enB7d6ByrOXDSIX7VzV5GOvfqwu35J x8r5B2FvzQe3CTvF3OoZIaz2V5zA9VsAEJts8ZIUMxX5G11ON9/dzEjkVKJrPV3saC9+ wZVFspDiFplYco5gLb1uVyb4IZqASIIVTjef3hu3/UuIa4uxnSkDdC8GM2UyiBDHminP bjbMNb8neKWveUi4/gsFYYRbcW/BjashNPAjQZep1Tn60ubROu1ue9qtBP/us9a2y8Sk oQhOq/KBVeJa+9EzdUPNcf7pdfeg1R3xIfBp7buDxzzUe+e+nt2wWoc/7KDExlQ1czWM mW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oM2taPRN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si25847ejb.97.2021.04.08.11.26.20; Thu, 08 Apr 2021 11:26:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=oM2taPRN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232804AbhDHSWy (ORCPT + 99 others); Thu, 8 Apr 2021 14:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232267AbhDHSWx (ORCPT ); Thu, 8 Apr 2021 14:22:53 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CA6BC061760; Thu, 8 Apr 2021 11:22:41 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id x15so3152666wrq.3; Thu, 08 Apr 2021 11:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7TAxbFgp4EueLLfJHLyzRnfJptywMygGVE2WRaLE8QA=; b=oM2taPRNjGFwjyzfnm0YwBZtcI6+UyXJz41SOtgaetq9uU+UUpTtUmIAgz9plS13f8 /ACVodUN6yrqWIyL4I8iYN0AtTD9OIidoq+7vrgH3HLQW9wiv840OsW0YKneAon67JX/ sBsuJEsf8XmeaJ2DvqsqkM9WegZy8SKSfmJMVQtWeudVbDl4+aeu/ucuXTMbTkSEMq+n Mu9o32Cjo7f+ogOI4Be6Hi9v+Pb5mo3cCUN3xjHHWAx9Jb8iIWsslDBNUAu5P+KrCNiv KXy8Qw59BJKq89baIqAK/RPPNXngAk87JNW7D519b466PLknlJBNccWQIEkTVZuSENRj M+2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7TAxbFgp4EueLLfJHLyzRnfJptywMygGVE2WRaLE8QA=; b=pRje+DBGuyGCM1xlTYZLbGukWQIePJ8cOH4f7dGM5Ck3FU5MeKUCULH4GASmhYDmeZ KtIUQsI+0ISVcs1ZLLF9jPSrzKlPQzU484o547GRDa7lK2K5n0WNJZPV4FJ/nILdsN0+ 6ZZmL/nBl83NyT3FtsiEyhSnE8HygXSbcM71CT7YpPDJgkwst7dKJQctM2mqa43EM2KY QWUII6OWlK389K1/OvhYfVVgqqbIkk3JywKIn+Zpq6wBdyuOMtbE4Idxm3rnwbTHwfq4 3rkIbB9L0PYtGdGr38EJZLuSI7fmf/GGQRXbeKPgKYiBr8jOaCQO9sApnE4P1rsqxU8c e/Sg== X-Gm-Message-State: AOAM533enveQq4yI3vHek04l9GDUEL7OthtfBP/7xxbw8NKJAKD3uR7A Rso+/nGrMDqlrEX++11wEFCGe56+CTK7VQ== X-Received: by 2002:a05:6000:544:: with SMTP id b4mr13782124wrf.352.1617906159797; Thu, 08 Apr 2021 11:22:39 -0700 (PDT) Received: from ?IPv6:2003:ea:8f38:4600:6dfe:cdb3:c4f9:2744? (p200300ea8f3846006dfecdb3c4f92744.dip0.t-ipconnect.de. [2003:ea:8f38:4600:6dfe:cdb3:c4f9:2744]) by smtp.googlemail.com with ESMTPSA id w7sm110919wro.43.2021.04.08.11.22.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 11:22:39 -0700 (PDT) Subject: Re: [PATCH net v1] Revert "lan743x: trim all 4 bytes of the FCS; not just 2" To: George McCollister , Sven Van Asbroeck Cc: Bryan Whitehead , David S Miller , Jakub Kicinski , Microchip Linux Driver Support , netdev , open list References: <20210408172353.21143-1-TheSven73@gmail.com> From: Heiner Kallweit Message-ID: <820ed30b-90f4-2cba-7197-6c6136d2e04e@gmail.com> Date: Thu, 8 Apr 2021 20:22:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.2021 20:00, George McCollister wrote: > On Thu, Apr 8, 2021 at 12:46 PM Sven Van Asbroeck wrote: >> >> Hi George, >> >> On Thu, Apr 8, 2021 at 1:36 PM George McCollister >> wrote: >>> >>> Can you explain the difference in behavior with what I was observing >>> on the LAN7431? >> >> I'm not using DSA in my application, so I cannot test or replicate >> what you were observing. It would be great if we could work together >> and settle on a solution that is acceptable to both of us. > > Sounds good. > >> >>> I'll retest but if this is reverted I'm going to start >>> seeing 2 extra bytes on the end of frames and it's going to break DSA >>> with the LAN7431 again. >>> >> >> Seen from my point of view, your patch is a regression. But perhaps my >> patch set is a regression for you? Catch 22... >> >> Would you be able to identify which patch broke your DSA behaviour? >> Was it one of mine? Perhaps we can start from there. > > Yes, first I'm going to confirm that what is in the net branch still > works (unlikely but perhaps something else could have broken it since > last I tried it). > Then I'll confirm the patch which I believe broke it actually did and > report back. > >> >> Sven Just an idea: RX_HEAD_PADDING is an alias for NET_IP_ALIGN that can have two values: 0 and 2 The two systems you use may have different NET_IP_ALIGN values. This could explain the behavior. Then what I proposed should work for both of you: frame_length - ETH_FCS_LEN