X-Received: by 2002:a9d:204b:0:b0:59a:c542:60ff with SMTP id n69-20020a9d204b000000b0059ac54260ffmr184936ota.348.1645635903508; Wed, 23 Feb 2022 09:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645635903; cv=none; d=google.com; s=arc-20160816; b=nSgDk9yNTXqV1HDAp63LC8r1KcoHiDAugi3TrOHeOCDH2ViuzGggNxG9SRih9ewxO4 vB77To1vZ07vjUUs55yAKSm74Pr7a7yVKnlg+RwWtvBnBGyOZezLuMC4+P58gnkkUiab Q2B59q7P48kGVegKt8c8uhsbTO7UmQOC7YJa6kWERRkOAGfJ7fZk0wS4mpKU3dTUwNEH 95lVouo1F7wN/nMOuafisWPqzS8ysTuQrYf0xIy6+mm4CBrucrhGMPu9tTPAM5c4BvDX 7FaDtQMu+oRZSyxyLUkG3qufUCFc7jTHCBudh5UhotZFfgnOKQnZwzWlsE747kBd33M4 rXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=OGh3NidCGngjpCpabapFmRel/v27fuLmmNTjvevm0Y4=; b=wvkxAvRio7dj7Y3dLPr+F61I7siaUBIgNuixa2xy5ERQRWCEZL5EZ1kWrjN2u9LHis P3Ip2mgiuqb/cgIY1Z7L/iBSXWybJqDoLb2veZPVk0RWofRVMhkWHXpu/mfqEsUiJSL6 NlK/ICHP/jc6OPRM9WQcUyxMPQDev9+RVxNEFJzeWlfRNgKMBteqda3jcc20L+mgQKLU FA2+X1VaOZEM0KAX1w9aFUQnQkwMWSi6/hr+alIENY3L+yxPelRl22Q6Fdu+HvgXaTKm wPw20rVRW8w2YvA/mVjCPZWmDJjys3x7NjaP24zkk7gfTDBUdK6GeSdsjXYQQ1Z3nJOH T3xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PncSR9SB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11si115449otj.219.2022.02.23.09.04.45; Wed, 23 Feb 2022 09:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PncSR9SB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242583AbiBWQEN (ORCPT + 99 others); Wed, 23 Feb 2022 11:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234947AbiBWQEM (ORCPT ); Wed, 23 Feb 2022 11:04:12 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5ABBF97B; Wed, 23 Feb 2022 08:03:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6322F6194A; Wed, 23 Feb 2022 16:03:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BF48C340EB; Wed, 23 Feb 2022 16:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645632223; bh=DMAP5LetazF0Rx1qRMQIPs2ELg7gH129oVIlNYECo2U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PncSR9SB7C+LYSAPO0Ak+gUFFxhJySUmNe/3+OqKVXq8s9bF/dNYk7aZEQhBZP+rA 3GeXbVxO+2KsYQ9kCPpT/11Ko4XZi68iDiV07O74jHCvYy8TAvQS5bumoXkywH8SKk 4gu4WQ/23+dCrcrBzs/PiOdAvy3bTI4/cE6zeiu8RLAlhVLOycbMdKAsciLDieEtK1 3ks5VqWWiXPXP7kmvc9utvrE432KinOBfNBtCp6vnpem8HhsomvRaeA2vUFTLX7TUG B6kbkRbHkQyodmzk3TWo4wxVUMAS9Eel2oxIHL6SOxp3evkgQwAuhdlxmzg1IzpwBO lkODwrJflfq7A== Date: Wed, 23 Feb 2022 08:03:42 -0800 From: Jakub Kicinski To: Guillaume Nault , Kees Cook Cc: Eric Dumazet , "Ziyang Xuan (William)" , Herbert Xu , David Miller , netdev , Vasily Averin , LKML Subject: Re: [PATCH net] net: vlan: allow vlan device MTU change follow real device from smaller to bigger Message-ID: <20220223080342.5cdd597c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220223112618.GA19531@debian.home> References: <20220221124644.1146105-1-william.xuanziyang@huawei.com> <8248d662-8ea5-7937-6e34-5f1f8e19190f@huawei.com> <20220222103733.GA3203@debian.home> <20220222152815.1056ca24@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20220223112618.GA19531@debian.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Feb 2022 12:26:18 +0100 Guillaume Nault wrote: > Do you mean something like: > > ip link set dev eth0 vlan-mtu-policy > > that'd affect all existing (and future) vlans of eth0? I meant ip link set dev vlan0 mtu-policy blah but also ip link set dev bond0 mtu-policy blah and ip link set dev macsec0 mtu-policy blah2 ip link set dev vxlan0 mtu-policy blah2 etc. > Then I think that for non-ethernet devices, we should reject this > option and skip it when dumping config. But yes, that's another > possibility. > > I personnaly don't really mind, as long as we keep a clear behaviour. > > What I'd really like to avoid is something like: > - By default it behaves this way. > - If you modified the MTU it behaves in another way > - But if you modified the MTU but later restored the > original MTU, then you're back to the default behaviour > (or not?), unless the MTU of the upper device was also > changed meanwhile, in which case ... to be continued ... > - BTW, you might not be able to tell how the VLAN's MTU is going to > behave by simply looking at its configuration, because that also > depends on past configurations. > - Well, and if your kernel is older than xxx, then you always get the > default behaviour. > - ... and we might modify the heuristics again in the future to > accomodate with situations or use cases we failed to consider. To be honest I'm still not clear if this is a real problem. The patch does not specify what the use case is.