Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp422876lql; Mon, 11 Mar 2024 06:55:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdzJtONGWORDFfIDi6HscEwV+4SY7GV7hlz9UZicpZSmADqCtU/F6VgTmzXtV6dBe/N/BkEadY41jT4R+IN3VKk+XH4ZWLMumEyLESsw== X-Google-Smtp-Source: AGHT+IFINY5IL2JDhkjog6lefNaXsvE5Lp8MGm5MbnRTTBI6LKHz0n8i0paeShrTdX1SvJ5zwv4l X-Received: by 2002:a05:6a00:842:b0:6e6:269d:1a38 with SMTP id q2-20020a056a00084200b006e6269d1a38mr8260958pfk.25.1710165358721; Mon, 11 Mar 2024 06:55:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710165358; cv=pass; d=google.com; s=arc-20160816; b=N6eGnB3UIneLy4CkejtiIpEliMC6E0kWBZshWK9ys4n4XfmQOvowk8wQGouWZ/aBHh +xLrkBqWBJhcM09kIZh3MbNbQtH7ypNETFQngKl6kjpGKVjy42Eidt8I26aZf+/2g53x 1Nxh1vDL27Tj/spEzaG2Tu1vO8gA1x+iqEwwI9hvhKusUrznMk0JXz2899v0CpR23Yx8 7Xyc8gdEv/rCop2tab6ISr/dMsN9BUzi9GIIN3LiutRqVVKUbxAxc5T1k5ag4IsM6Fk/ Tit/aZ8PcL5s/j8tRXlBYxUn/ssOBPYbuOryQ4bEc7lCCky9IAUKWxLc8vGuax4vzdFo Jb9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=wqvBp7CTjNGNq3lMlyQxO2tIzGlpj4RvXf7GeO4YvHI=; fh=7irMc24RXzuqjTWrc5AhajS+huOpEC+5wt5Jkqo1T0Q=; b=NGAZeElxuoPSXLIDKcTn7NlzfAUFqXB0GGoq3I2uTxcydYh+ucp36I6ZVU/tJ13Yyn CyzjpM/QmPcLMqnkE9wEr+jIco+dWNu1GaxVFtmI9awiMPNNVLQVR7q5CczXouQDTGsw QCxyYhdj6Ic/uZK3dMNqB8orQPEB2GPcLNosHPzf+9SseXkVHyf4z1wH7jpiQZZnYQ1F vZ+ok/cUfmtE2Dma3P8X7YCrv+aWU6uUIB3APmxPh4eRIWPT4Arn3zHzXFFaM5pVhLHT Sd/g9Fv7HUN3jNTcfysYwDYfJOUvLXGBK00BgdYsHSUbICv7ky2l62nTNBbjBEZevIIu GYHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FCjhUJjY; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-98910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k10-20020aa788ca000000b006e682cbb044si3782213pff.287.2024.03.11.06.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 06:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FCjhUJjY; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-98910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0E93BB2232C for ; Mon, 11 Mar 2024 13:53:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37F463E47C; Mon, 11 Mar 2024 13:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FCjhUJjY" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 912F841C75; Mon, 11 Mar 2024 13:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710165115; cv=none; b=RescJhxne2pyf5noKID8yVYVj7JD91SHftaZzXHU7aTxWNlDo3a417UWO3B/mwM2b5MP1ETofOFq5HBDuihQ45T0OtIW5AclgMP3rk8CD/jdhptnbWVeBV+/UoFQkwikF13MVEcsxOYeFzBTfwpLSbPM5HItDVE9Moq1qqQMUEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710165115; c=relaxed/simple; bh=fk8+pHNwZ+V+8pwYHpfe6hlSCZDViN8UYNJwkK5pIq8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R7QQ6yAs+8tP55lJf+5t0stY9AmG6wtBBxByo5FEtX6OXOl4QR+ijB58tKEIzI2CUjSx97YfrW9eS/m97cPjC8rWpVVn3SbWRZkbbAuPYfA0gwibAudAMXJo75Ptyn6E3r01QaD5uIyQMVLpKImwVcVowlw/afBW90ct1G0hjp8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=FCjhUJjY; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 5F01160008; Mon, 11 Mar 2024 13:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710165105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wqvBp7CTjNGNq3lMlyQxO2tIzGlpj4RvXf7GeO4YvHI=; b=FCjhUJjYOsF7o6Jhz1pQAUlOve06jtPRI2fntcRFQib57uk4O0EB4Z/CglfIikkxVE3n36 d7dPrWLhsQUtFQv3SMXP+OaUKe+zOOjLmTx/j4/479JILNcx2IH2GE2Jkiap444Qhgec83 SeB9i01Ba7IFvYq9L+IhaqHpCZvaAXahfddUkn+nftyciIdk/bVDlAmcknKd/+mTeIT7tu 0XU9sp6r6m17WlWaviKMvaEVFwEWV4h6j/e85A7r0VKWkN1zI99GDsb5m+25w+AbJNex6D Ybh9Frhz+vfRTwshaSfudbJ/6UUoI+BijEgHdQiWT98ykGl/acXo0T8LNGdiRw== Date: Mon, 11 Mar 2024 14:51:43 +0100 From: Maxime Chevallier 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 v2] net: macb: remove change_mtu callback Message-ID: <20240311145143.2d0e492a@device-28.home> In-Reply-To: <20240311091211.720789-1-thomas.perrot@bootlin.com> References: <20240311091211.720789-1-thomas.perrot@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hello Thomas, On Mon, 11 Mar 2024 10:12:11 +0100 thomas.perrot@bootlin.com wrote: > Subject: [PATCH v2] net: macb: remove change_mtu callback You need to specify in the subject whether this patch targets net (for bug fixes, in which case you need a Fixes: tag) or net-next for new features/improvements. You can use this parameter in your git format-patch command to have it set properly : --subject-prefix="PATCH net-next" (or net) Thanks, Maxime > 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]. > > With this patch the core will set the MTU, regardless of if the interface > is up or not. > > [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 > --- > > Changes since v2: > - Update the commit message. > > drivers/net/ethernet/cadence/macb_main.c | 11 ----------- > 1 file changed, 11 deletions(-) > > diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c > index 898debfd4db3..0532215e5236 100644 > --- a/drivers/net/ethernet/cadence/macb_main.c > +++ b/drivers/net/ethernet/cadence/macb_main.c > @@ -3017,16 +3017,6 @@ static int macb_close(struct net_device *dev) > return 0; > } > > -static int macb_change_mtu(struct net_device *dev, int new_mtu) > -{ > - if (netif_running(dev)) > - return -EBUSY; > - > - dev->mtu = new_mtu; > - > - return 0; > -} > - > static int macb_set_mac_addr(struct net_device *dev, void *addr) > { > int err; > @@ -3897,7 +3887,6 @@ static const struct net_device_ops macb_netdev_ops = { > .ndo_get_stats = macb_get_stats, > .ndo_eth_ioctl = macb_ioctl, > .ndo_validate_addr = eth_validate_addr, > - .ndo_change_mtu = macb_change_mtu, > .ndo_set_mac_address = macb_set_mac_addr, > #ifdef CONFIG_NET_POLL_CONTROLLER > .ndo_poll_controller = macb_poll_controller, > -- > 2.44.0 >