Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1073795rdf; Sat, 4 Nov 2023 05:45:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGp7GBW17vyIS5P7UhRZbPY8BA7qP6YqpBEttNnC1LTNk3CXuJ8Yu/E7a49HGpyzMYzPvht X-Received: by 2002:a05:6602:2ad6:b0:798:2415:1189 with SMTP id m22-20020a0566022ad600b0079824151189mr29565197iov.12.1699101916955; Sat, 04 Nov 2023 05:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699101916; cv=none; d=google.com; s=arc-20160816; b=Pj/lpbXTjERau4r8pcbpW47tbxlpYeXQL8GqwTKnr17ZqJDyldW/9y88FIoPUB2GaR sP1QMSRz2lov4pv2FE6zrD5BUE7/sATQGJB2yTglMD5ugHFsmgyQzMxO7ppEWiaFQZtF R4TypllMWee0k5KAR6/XW63Wsr5cqcBjTWQezsNCRgFf4SCYOVDqYBWAQFnqoqe/Voii dW3NMwIYj/VuFE4jksypa+MPNh3JVsoMyNXlGpGsBQlNzErHRiYKO03pVzV7Vn4f1Jci W1jQanMBUyibDwcuxtLZsqfDro5jOotATayDtrBC8LemEVQJHAUsmKljiGH4NRmBIALv Srrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=ewDHm+e+GImvvqfDodwPgmnoPkNl83AA+pDa6pnzAe0=; fh=bYuvYY+UAm+RKkoLNBZQ9/NmrCpqb49Mw9RYUbh+sKg=; b=VrHxcfLUcNhzOab6V9ywRjl+ZQLCjnk2fXIcm1PxBDW6AS9RRM/OzYJR1kePi6tRIJ RSThfs/8LTSP/WHLFRKzP7vRCSFozcyEUb4oYkhGCdiusbuvHHse6o/ZCaynj+WmoYlJ GtnymJPUVkfdjzLEdsNfj98BOU3HGgJLT28ltnd8Tlra5LUJGG72sBVJ19a6Oawit9Yd nNPNQmIbQeCHxyNj/yjoYrPnpIi6w/PPCmvbBID63KgsrNhqwuXLkJFVHTeG07EcrWIs GMXTDrW9IxiRC4G7JQB9iNdGLhUcMgG8Tior+zqloES7MqPYs6ZlpTpHIYHx+xEcs0VT yWJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qDROO+9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d21-20020a656b95000000b0059c78eb3fe7si3883821pgw.838.2023.11.04.05.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 05:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qDROO+9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 1B413807E922; Sat, 4 Nov 2023 05:44:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231673AbjKDMoA (ORCPT + 99 others); Sat, 4 Nov 2023 08:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjKDMnz (ORCPT ); Sat, 4 Nov 2023 08:43:55 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6221D51 for ; Sat, 4 Nov 2023 05:43:51 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507a0907896so3707749e87.2 for ; Sat, 04 Nov 2023 05:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699101830; x=1699706630; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=ewDHm+e+GImvvqfDodwPgmnoPkNl83AA+pDa6pnzAe0=; b=qDROO+9sghjQ40J86626HOQ3S7Z/JyP9y5QuO8K6wG00WF1vvwMG6wuws5fSeTnLq1 9wklQou2B1pjtvlK3J1BZnncRSA+w4czm0HrEVwoD3oPbWvbnrY6d2bLmDJ1wIKOFKZt Lk1XNVWgaMlKfZxQ0FNjKSmcOGIdgmF9w7PSQucREnWSPH2qtwKy2diciEBFVsQS21q2 Mg4H3n5TEBf39SgRmHJDA+QCkBMUcO0WqZaB05yxRoXwTYiXEyGJZQVmol/V6nzO0/Yl Thh4l4HeDbv8sZZa2h5h7atJhAv4kux1ICWuEdbFbkkEqB7OwE9055NSKduUG+iKREjH utXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699101830; x=1699706630; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ewDHm+e+GImvvqfDodwPgmnoPkNl83AA+pDa6pnzAe0=; b=Y726pQRxfTcxQ+StE7feum8ywGjLpzfR3Njt2mEsXiQH9Pn0n3gBoFSKySvWmQ7Mla 4xtiDOM0HEpraBrFBhNHWLaxxkg7DSVksRoTIkjSRG6OiJYI+YY5b7AYbJHfDr5sIHum zh0G5w6+TBcDdv50WuKkWAia6mFFonytRJe0CHgZsd73M2jeGCLsgbwivkTVy5O2o+L2 y7CkRf5rmAvpoZPk1nwbSIfHgxNTqinv7kuQPfwoSLqok1ZERmdr9kOV6V/OrJ+ucfAL F6hXGKm728yry95lJQKBEaj3Sdb2+sfWlqJX5WklTcCXHWthyh6mnSh1YFR6YPiAongI 1EWw== X-Gm-Message-State: AOJu0YyTAaOm7NOEJbr4R3AQUxsFT/xODtA9F5djMTxvXKtHFcEeiyiv Oghjsbc4QuSULemCSoZ6lFwaow== X-Received: by 2002:a05:6512:132a:b0:509:4559:27a9 with SMTP id x42-20020a056512132a00b00509455927a9mr7370477lfu.8.1699101829828; Sat, 04 Nov 2023 05:43:49 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id u22-20020ac24c36000000b005093312f66fsm496100lfq.124.2023.11.04.05.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 05:43:49 -0700 (PDT) From: Linus Walleij Subject: [PATCH net 0/4] Fix large frames in the Gemini ethernet driver Date: Sat, 04 Nov 2023 13:43:47 +0100 Message-Id: <20231104-gemini-largeframe-fix-v1-0-9c5513f22f33@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIM8RmUC/x2MwQqDMBAFf0X27IIblRZ/pXiI8Zku1Fg2Ugriv xs8zsDMQRmmyDRUBxl+mnVLBaSuKLx9imCdC5NrXCvSdByxalL+eItYzK/gRf8cpGtnFx5PmXo q7ddQ9P19UcJO43lejY1NxGwAAAA= To: Hans Ulli Kroll , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= , Vladimir Oltean Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 04 Nov 2023 05:44:20 -0700 (PDT) This is the result of a bug hunt for a problem with the RTL8366RB DSA switch leading me wrong all over the place. I am indebted to Vladimir Oltean who as usual pointed out where the real problem was, many thanks! Tryig to actually use big ("jumbo") frames on this hardware uncovered the real bugs. Then I tested it on the DSA switch and it indeed fixes the issue. Signed-off-by: Linus Walleij --- Linus Walleij (4): net: ethernet: cortina: Fix MTU max setting net: ethernet: cortina: Fix max RX frame define net: ethernet: cortina: Protect against oversized frames net: ethernet: cortina: Handle large frames drivers/net/ethernet/cortina/gemini.c | 32 ++++++++++++++++++++++++++------ drivers/net/ethernet/cortina/gemini.h | 10 +++++----- 2 files changed, 31 insertions(+), 11 deletions(-) --- base-commit: 90b0c2b2edd1adff742c621e246562fbefa11b70 change-id: 20231104-gemini-largeframe-fix-c143d2c781b5 Best regards, -- Linus Walleij