Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2280891rdh; Sun, 29 Oct 2023 08:38:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGy/IaGOnKBGQYeqI5b5euhgLgh3kYJp/X5+SmFYFmLgOjSHL6yVTpoR0Ocl6v3scupDbBW X-Received: by 2002:a17:902:cac4:b0:1c0:cbaf:6930 with SMTP id y4-20020a170902cac400b001c0cbaf6930mr6512742pld.54.1698593922990; Sun, 29 Oct 2023 08:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698593922; cv=none; d=google.com; s=arc-20160816; b=v1c/Wusz8Vkr6YUDC58wLm6RqHTtxc0Wg3hwEKFAHhDa1CMVE7mRa9OJAoLLwQrhUt C3BRz8D7bSaTIpTDJKamqrjyXcbtgnFPd5Tckb842CJK/SFKPUod9d3MfhGKZ0VyDH6n +p1FIHb+jd8lfAM2iscZLkT7xmjzaxSgf7SiAO3kgBXdRKeZLOsj6Y75U2/yHPWUm8Py ym8wyz2p78nmOm96RzO0EtrWHN7OKoMTPncs21qvBMp0fykZZjq3JjD1X3iSMvyyFU1/ vN+QvWzWgtOYJ3ICBIcDnjJXJfYIIAcqQHs5JqeEEk2LHehSZ+dVLb38/m0TCYGFqVh+ IIog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qT43Nf94mF07rnV7CrLvxuub2Ca7aEi64+U8CyL0b3g=; fh=nVeZ0Q0hOxCmBOyOoDQcrCQGNI++fdR6AxaQott9O/s=; b=oJ5o9BO8/C7THuoP2QRoS9KOVOuYcEOviwbxudY3tLP+a8UO0InmYoSEfKkvlvybvs P0vAxAiq4QrQ25OGlnQiIWaYuhi0Nbnkkc4xnBUHllSdTBqZ14cYrFd7u+nZGZL4PVmm pgNB6zqWIGrW0BZYL0HUH7WLypo08JZ+R6cjaNl1T+wsoSoyiq4yje712EJBFQxTLJMS ipZsshG4jaO4sNsZkVqpXpcds0ufhlA0vMKQTJCYf/u3Po8yHYXCP+3Fdu+mSxqSvLjK d96hvfwH5CB4mRlVFAovwq/+ONG9rBS//n2aBvqQwrrJPSM7lJdZJZLcmpG2ZBiR3Kqt GvCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=elKvagR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c4-20020a170902f30400b001c0727658c3si3777455ple.259.2023.10.29.08.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 08:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=elKvagR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 884858088A99; Sun, 29 Oct 2023 08:38:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjJ2PiV (ORCPT + 99 others); Sun, 29 Oct 2023 11:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjJ2PiU (ORCPT ); Sun, 29 Oct 2023 11:38:20 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3C5BE for ; Sun, 29 Oct 2023 08:38:17 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5a7af20c488so32042467b3.1 for ; Sun, 29 Oct 2023 08:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698593897; x=1699198697; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qT43Nf94mF07rnV7CrLvxuub2Ca7aEi64+U8CyL0b3g=; b=elKvagR+t77xfpkmWelkGAt9q/K6/ipzvvpjNMG9HNLEq+AAqckqpJP8yQzR7Sm90U 6a8Fr9tIpFYT+OecNH1TStn2w8g6nVk4z/63yUxaH8yRoRFafBHqb9Xc5vdKm9lkppmN cul1g9JyEMIHlB+PZWhSqGtQTZoljHYl4Rru+MprgmBzrT1b2extbmbodGdnfVaDaqid b5n8hhtw/6EdyB+l5XitgNGGC2pREvkBcAhj0eFIhCLjLs0lhLSyHhOSaNLAfVjTkfJt 7a8XSWMpXnh6BZJQ5k4yoDKq5gr+I8qNatnBw7iXTCcV4vhgxgtQer4YJzDH09g2tcf9 kftg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698593897; x=1699198697; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qT43Nf94mF07rnV7CrLvxuub2Ca7aEi64+U8CyL0b3g=; b=vW1DpBYA/6Hfm9r+hNvZJGR2CDDRRDP5wpQH7qSW5LsVggcCNY9XUsPhU7Hg241rAd b/HllIEkk/d86lsjFwy0p8RMYBscDfXejGUFCmtuenn1WQFO83LIbMp1+XxM0O4TCAKg Z2KboLW6Yig9uqKSwADUfYQSKr26+tkbfJxpnHHgdr+4e8WCxdDKt2vYrkztpas0F0j4 nOUh/b6RJ25QonajKjj2BiMgVw6g5UMzvNC8y2yAOFdtFqGVuvGNTHHIcXlYrW3U4zu/ oQ2Ny0I3utpzHSbmVIabiVJ2ByZVf4DeRP583ETd+7iHp7WKIYWs/82a9hXsrDvmzRmj TteA== X-Gm-Message-State: AOJu0YyCvgwSooFCYeMqgoKBCP/aY6uWQOxKKpx/ZDLH7jwpbTMynndE zaI4QgtJB7CWglA7trVMkk4bOYhqvTsGtbezS5ob8Q== X-Received: by 2002:a0d:ec47:0:b0:595:9135:83c7 with SMTP id r7-20020a0dec47000000b00595913583c7mr7285708ywn.47.1698593896903; Sun, 29 Oct 2023 08:38:16 -0700 (PDT) MIME-Version: 1.0 References: <20231027-fix-rtl8366rb-v1-1-d565d905535a@linaro.org> <95f324af-88de-4692-966f-588287305e09@gmail.com> In-Reply-To: <95f324af-88de-4692-966f-588287305e09@gmail.com> From: Linus Walleij Date: Sun, 29 Oct 2023 16:38:04 +0100 Message-ID: Subject: Re: [PATCH] dsa: tag_rtl4_a: Bump min packet size To: Florian Fainelli Cc: Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 29 Oct 2023 08:38:40 -0700 (PDT) On Fri, Oct 27, 2023 at 11:23=E2=80=AFPM Florian Fainelli wrote: > > It turns out that sometimes, but not always, small packets are > > dropped by the switch for no reason. > > And we are positive that the Ethernet MAC is also properly padding > frames before having them ingress the switch? I don't fully follow, this code is the one adding the padding isn't it? Then the result is transmitted to the switch from the ethernet MAC (drivers/net/ethernet/cortina/gemini.c). What am I getting wrong here... > > If we pad the ethernet frames to a minimum of ETH_FRAME_LEN + FCS > > (1518 bytes) everything starts working fine. > > That is quite unprecedented, either the switch is very bogus or there is > something else we do not fully understand... The switch is pretty bogus, all documentation we have of it is a vendor code drop, no data sheet. The format for ingress and egress tags was discovered using trial-and-error. Yours, Linus Walleij