Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4427568pxu; Wed, 9 Dec 2020 17:31:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRA/Hl2KtOamCeviEv62bBhkpxwLPiUcA4mb1QdNaPgs6dALDNd1SOrvCYfDhtgLQqphO5 X-Received: by 2002:a50:8b22:: with SMTP id l31mr4569357edl.149.1607563900635; Wed, 09 Dec 2020 17:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607563900; cv=none; d=google.com; s=arc-20160816; b=ROWYuxC82cx1sSrDsmp+ouNVw6atal1hGQ756mfG7tiNI6U4TtTqVe/81YCKFaX926 qG+yC+ceqd2aiu+9epfXjriyglLRPCQyFBuinn4DyA1PV0h+qP915+uVVdTgyT7T6cap jEAZl+XZLRRpXydB1OaYcm9b5BUTrQeK7HVYThIVmmP+0WIbEyvuqtFlmQr0mbs4OQDT J2V5ODWAxHaTsDWzHuMphR3n7xzxnrlwPT9EHNXGVvIXyjhByP7UMNO74eUFoIz2H4N2 D1xqYEN/vCv4DJsvXFdcQoIXSSJjwLwfTP2qOTr4+BlNDZTrnrEkN0p59AfHb/BEoae3 u9Xg== 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; bh=ctAZ3150B9lZkEHo1jKQTfrMFJ+Kps8cfesRmsKp5SA=; b=Z48/fbp+F5Wh8jnK1JIOhOUF7RNZD6aWTRw5/aGYpT17bzC31jrCQNyiT/oTQrmjU2 3HKedRnKj+s0HbLjB95Ct/Smjb04t/RnhHofKMppu9e8e4TeXbtY0FDR5eCyh/PsuvW7 Q5TT61SaI7MQqISWmQXMHCvm+mH4qrIOaJYYvC7MTJVy2yxy88byT1f3+vFNCnzRmBQy BXEVM4sBnH/GvnCVfxX4FTPWp74bbKfPPflC7idzy5nG6p3PtX20vW1emL++IbU4z7pI 9uhY17UlKBVPBICgLt5UPnBSKuW+K3g3Fgj0QoHUfKBs9RajIW91P0xBFYGN4jB4g/Y5 LEQg== ARC-Authentication-Results: i=1; mx.google.com; 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 oi22si1891030ejb.631.2020.12.09.17.31.14; Wed, 09 Dec 2020 17:31:40 -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; 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 S1732532AbgLJBZv (ORCPT + 99 others); Wed, 9 Dec 2020 20:25:51 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47750 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732060AbgLJBZv (ORCPT ); Wed, 9 Dec 2020 20:25:51 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1knAha-00B95y-3W; Thu, 10 Dec 2020 02:25:02 +0100 Date: Thu, 10 Dec 2020 02:25:02 +0100 From: Andrew Lunn To: Rasmus Villemoes Cc: Li Yang , "David S. Miller" , Jakub Kicinski , Murali Krishna Policharla , Florian Fainelli , Vladimir Oltean , Zhao Qiang , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/20] ethernet: ucc_geth: set dev->max_mtu to 1518 Message-ID: <20201210012502.GB2638572@lunn.ch> References: <20201205191744.7847-1-rasmus.villemoes@prevas.dk> <20201205191744.7847-2-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205191744.7847-2-rasmus.villemoes@prevas.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 05, 2020 at 08:17:24PM +0100, Rasmus Villemoes wrote: > All the buffers and registers are already set up appropriately for an > MTU slightly above 1500, so we just need to expose this to the > networking stack. AFAICT, there's no need to implement .ndo_change_mtu > when the receive buffers are always set up to support the max_mtu. > > This fixes several warnings during boot on our mpc8309-board with an > embedded mv88e6250 switch: > > mv88e6085 mdio@e0102120:10: nonfatal error -34 setting MTU 1500 on port 0 > ... > mv88e6085 mdio@e0102120:10: nonfatal error -34 setting MTU 1500 on port 4 > ucc_geth e0102000.ethernet eth1: error -22 setting MTU to 1504 to include DSA overhead > > The last line explains what the DSA stack tries to do: achieving an MTU > of 1500 on-the-wire requires that the master netdevice connected to > the CPU port supports an MTU of 1500+the tagging overhead. > > Fixes: bfcb813203e6 ("net: dsa: configure the MTU for switch ports") > Cc: Vladimir Oltean > Signed-off-by: Rasmus Villemoes Reviewed-by: Andrew Lunn Andrew