Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1809054rdf; Sun, 5 Nov 2023 15:39:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOs3dDjeFezB5hMWxdi3Iog3lUYlNfqHu4ppksaFP68VAGJS4eOw7ti8VAA/1g3XGiIVKu X-Received: by 2002:a17:90a:49ca:b0:27c:f309:f381 with SMTP id l10-20020a17090a49ca00b0027cf309f381mr25569034pjm.6.1699227579485; Sun, 05 Nov 2023 15:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699227579; cv=none; d=google.com; s=arc-20160816; b=FULp+HvINX4EFeM31UpQXt/PZmHYmMzp5TU0DUgT4t51O4voTUwao1Y265samN8JeT iJgbOxGAaI8gGkULv7oEBwNAgHF+Uogg7CjgkbGVigr0I/mPzmy3K/LzaklzgwrExst2 nJMKFBHTSyUiub06cHM6L1a4KjLnvC3gJqEi6IjZVO6Jwzo37VIetzx4STVWsyNDD6zD nCISulWxUKYN85OqRd95Jmg2eKpImlZQ9BLHAyuLQQY5CQFRtIGiEvQagVLRjNEVgpm6 uqqEl8XXeNl+sT7U5NT2L49wckF+kAUoT03qR2pyc+gPqadNDcFiO6QoAgCYfRYEdavP cc7Q== 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:dkim-signature; bh=0fvE5a+3pi+CSkmWJTHCT4WObDGOY2LdpWjcXYqvuZs=; fh=2YKzA2yVQd7HuQq3hOkoZhBH8PGg5ags6UDKgwNkN4I=; b=NLAvZ2l+UFazgRPfIvyEytmGFkDppzq/fG9FjGA2mhw77migHm5lRBkTzD0sQk+Tcd sw1oYaVdPcly56oh4KIumbdh70LwoQueqHfVfcLmbvLkEJGtlM2oL+rAjkqhxSmJJUTE JqvVMDRQOZfZGT8e54U3MuAiU/O9cTGqmnvEb262U1WoZryypHAdS4oV5ZZUaA2yj0YL ciILwxxGRfQlAsyEG/pEIYA6b2GlLjNsW79KZrEycgQWirnrmDZu2wqoX6nU9V2aNhRf 51YvQjocSUf2sm4BCRGD8cVHuytvTnWfUTD04Y06xziSclqv/eo4YQGM+UKbiml2PCvz EHIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WhuJnfm1; 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=lunn.ch Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m15-20020a17090a4d8f00b002802950ea02si6785612pjh.170.2023.11.05.15.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 15:39:39 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=WhuJnfm1; 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=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4BEA58087248; Sun, 5 Nov 2023 15:39:37 -0800 (PST) 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 S229987AbjKEXja (ORCPT + 99 others); Sun, 5 Nov 2023 18:39:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjKEXj2 (ORCPT ); Sun, 5 Nov 2023 18:39:28 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D56FC0; Sun, 5 Nov 2023 15:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=0fvE5a+3pi+CSkmWJTHCT4WObDGOY2LdpWjcXYqvuZs=; b=WhuJnfm1nBEbXlUeko6J144+xV ljsfuhUuRZg8+5WAMQMX8TGO1q7R9+xexn1V420YZCWhcpEMQSgQCU1aCa18KymjCM1y0kqo0CRyt uTuTA4NLAGziyR8VU7b2UwNUIEhPBziBTqbchTsIJQiSbRdXtMuBAlePGsXFCCqvQxMY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qzmhv-000x69-EE; Mon, 06 Nov 2023 00:39:07 +0100 Date: Mon, 6 Nov 2023 00:39:07 +0100 From: Andrew Lunn To: Linus Walleij Cc: Hans Ulli Kroll , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Vladimir Oltean , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 1/4] net: ethernet: cortina: Fix MTU max setting Message-ID: References: <20231105-gemini-largeframe-fix-v2-0-cd3a5aa6c496@linaro.org> <20231105-gemini-largeframe-fix-v2-1-cd3a5aa6c496@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231105-gemini-largeframe-fix-v2-1-cd3a5aa6c496@linaro.org> 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 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, 05 Nov 2023 15:39:37 -0800 (PST) On Sun, Nov 05, 2023 at 09:57:23PM +0100, Linus Walleij wrote: > The RX max frame size is over 10000 for the Gemini ethernet, > but the TX max frame size is actually just 2047 (0x7ff after > checking the datasheet). Reflect this in what we offer to Linux, > cap the MTU at the TX max frame minus ethernet headers. > > Use the BIT() macro for related bit flags so these TX settings > are consistent. > > Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") > Signed-off-by: Linus Walleij Reviewed-by: Andrew Lunn Andrew