Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp210889lqk; Sat, 9 Mar 2024 06:56:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYNIkgbcq6kxJpSCEghwn3JMha7DbyXQ/0k64KXhpw4CmMKzrn/hO5WdvvdS/BkHvKT5H5VvkCWeDYhsASBV1QOviFqSTXkFPoHX7EVw== X-Google-Smtp-Source: AGHT+IHiqIpcEsDIV4+91EfI+Mpj3eThBy3kwWrgnt1mGzJ//Gj2dYbUFZk7vDhwl3YZy/zIgX7p X-Received: by 2002:a92:cd8b:0:b0:365:5dbd:aa34 with SMTP id r11-20020a92cd8b000000b003655dbdaa34mr2229375ilb.12.1709996186931; Sat, 09 Mar 2024 06:56:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709996186; cv=pass; d=google.com; s=arc-20160816; b=wpPx8hMm0Cino10MrvPlsTE6FyOIONC+ubffI31ZMDJ8+8DrX69dqmWoEjib4lbHtW vdcAqG1tqLveV/r0dtpCsc4eSyBf4Wyrv5ihDdPGt2Dlg9fJ/M17UNvBU6Ecehsv8Lts DqE5roUqhV6i+wtBgE9qpQTyAaeb+ymnc2phw3s24xv6UNiS0CkhCd+zSd6hpJr4iHjD ycdcHasAbkMH6009WJWy7UPenuvbChomQW1VQHsU3I7VC2BYB/bsqE7GRjZ+CXaz+IU+ GttCKEIiN/WTdgTsqRlKzRO1bIwXCtxIXBHoY9elo5+cq9A9cXLYDHHyHnUl0SBg+BFZ +Ung== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jl4HZpYUzzOPi3gvvZMF4vAdcReL7J1J9YkVsvRBi4E=; fh=7irMc24RXzuqjTWrc5AhajS+huOpEC+5wt5Jkqo1T0Q=; b=ODjyaLvDjC2NTzL82OWJMJljbBNR+bINap2qyBMKvS2BPWExw4bb2SAeLTPTniTmU7 SZiExPOEOFwl6KpI2i3GLx2O/73iVHHjPJcQQVxfbeQJL3y2a4O69YSktyK6VPLoTXtY 2F9FOQ9feXuzcPGGKyJ4xV/jIQ7I+PP9EbM2+eqMonCQLD59ciLIFbt+J7l//sW9+6K+ nHWU7IcD0Xa9gvu9c+xuR88XL5piiTrA8ESmRgVmh/5X50VSMhywjocrJnFJlanyYWlT SgNL23xOV6+V8RuCABKcR++JZlZewyD+/UjfwqRTAdUQ6ZjBGIOnMJMveWZDMH3IydlL mDqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYB331rD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97925-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n190-20020a6340c7000000b005dc50616768si1599950pga.528.2024.03.09.06.56.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 06:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97925-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MYB331rD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97925-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 74DB3281BF6 for ; Sat, 9 Mar 2024 14:56:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 263B043ADE; Sat, 9 Mar 2024 14:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MYB331rD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26B361BDF4; Sat, 9 Mar 2024 14:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996176; cv=none; b=J+l39YNEwrKNFh64Cj1pKdoU0GB8Y/XlxAH9ZqfJgQCwCId+7qKhhhlqyXNmTtso2RYv12jRMcU6XaMge8oB9px+ujdsE+Vx45LHTqzHBk2QOCCe29Tu6FkaUQJi8CPX3ZA4dvmRXNvs0V2ypWHWTnKp+GaonHcibNrK1qAax7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996176; c=relaxed/simple; bh=KBygGl79mgaURge7K4LetcAdkwIssOLeohMMAFX3q2M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tY9OUYj5piy4uoUNp5QTpVUV0VKifILrkzsO97/tVlx/pfPM0dHqdDL+bxA7N0C942duBdoPqtJPRqYw8G1q74S0/mjdmCVq8Lr/ThhbVOGrFNORSfKILLckbjXr4mdP6tDxKQXoQjILhjFMv6kp3oVaVC2rbVLh3g3p5VXmofM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MYB331rD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF47BC433C7; Sat, 9 Mar 2024 14:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709996175; bh=KBygGl79mgaURge7K4LetcAdkwIssOLeohMMAFX3q2M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MYB331rDgVyzvJ1jxivyu5GlC+MMjdqMpT7ZkmjFbpJzVEITaXblE30IrFvzl5Twd 5Po7ocReeh8BJtW758Xgh+6Zfr4vL9i3txE8JkPcv38+uuuw2jmqUidU8ZzDL10g1s JBACl93u+Md2A1dbt9DDl+eGifPnCxF8NnFQNgrjL0rR1i8abFkogZ/hn4b93q9kBc DmCcspTxmRW59OO6wdmV7kPC8HHLp7HG9zWRijZ1ZQKmplqGZXP/Uynd5zSWEi++uI cFZqOIjIlqft9sBl3yHKmACnDrC9o9s2zBcGHes/MX4k5MCnkapS/umNcXsOUHOZ8E TCDPSoXkeRzGw== Date: Sat, 9 Mar 2024 14:54:41 +0000 From: Simon Horman To: thomas.perrot@bootlin.com Cc: Nicolas Ferre , Claudiu Beznea , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: macb: remove change_mtu callback Message-ID: <20240309145441.GA4701@kernel.org> References: <20240308155330.1610616-1-thomas.perrot@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240308155330.1610616-1-thomas.perrot@bootlin.com> On Fri, Mar 08, 2024 at 04:53:30PM +0100, thomas.perrot@bootlin.com wrote: > From: Thomas Perrot > > Because it doesn't allow MTU changes when the interface is up, although > it is not necessary. > > This callback has been added to add in a first implementation of the Jumbo > support [1],since it has been reworked and moved to the probe [2]. > > [1] commit a5898ea09aad ("net: macb: Add change_mtu callback with > jumbo support") > [2] commit 44770e1180de ("ethernet: use core min/max MTU checking") > > Signed-off-by: Thomas Perrot Hi Thomas, Perhaps it is worth mentioning that after this patch the core will set the MTU, regardless of if the interface is up or not.