Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4441657pxb; Mon, 21 Feb 2022 21:44:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/6OrNfOzokfEhw6pnCbvnm2d27iqE6EdK6xHR16oxiHg9Byd8sgTA4mTsQkNE2HD6+9Hl X-Received: by 2002:aa7:9429:0:b0:4e1:5814:79b3 with SMTP id y9-20020aa79429000000b004e1581479b3mr22849086pfo.82.1645508656008; Mon, 21 Feb 2022 21:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508656; cv=none; d=google.com; s=arc-20160816; b=U8IDvLqtwhhdXBXthInrhU8oN0skSjLxBgmWI1iYaBnR8mtZSQN9MkBJo3zE67EIRJ gDND4qA3LzI8iD56k1t/w8i9NDyb4R9+8a9xZdJ5Q02GXgJGr4V7IkUruTcWbIxNFL7T AHDSDQMUEPAaWNymQr9nqsjOk5KGwPFejga9iAk8xGI7wQIlDYKQJgLSUj5CirONgfcV bkA7VQRFxPcQnuYFLafCU2QykOHBUDTRfDNcaLw4PFTF6mf61J+KvGfmRqVt+wx8VyhA QSMCu0B45xWa1MYl4w2Fk+EMYFCw8f2e+hPuXygjpEtEASo/DGgMFgHZMAc/S0xiYTD9 I4IQ== 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=PCsqeQXCyBUatlPJc80lMaoubzDoucMSr3WCYEt8UfU=; b=CfsEoL9eyWfISqChdYTtgc5h7tvUAfkjbwovfBBED7vQSn7Nt5oh53OIlR1LF88AJK OApCUV6Xk5gbikdNmC07oLlnftn6YMtiKLWmiQSrB6+RVJyCkkIkSrvMANMvizmFrinn FpYm/Tr/jM7/0e3A0OiXiXbuqn7k5NN6G/UK+FYriT/a/shFtpM0Li3ekZMy3g+0hl11 4bigeC63lyGvvaAQoHHaLlO2W0rYHWdhpoFFkuVnqH/6SipipH5FUaCQcN8qVMZ4woa2 hvn+HmFbdEGEdQ8G+g00jsbk+G7uo84KR8zp+8BjU5y6GrkUzgq9qq1+/5TryoLDdktN 2Hbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t67si10226445pfd.246.2022.02.21.21.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:44:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DCFE12E77C; Mon, 21 Feb 2022 21:09:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237963AbiBVA7S (ORCPT + 99 others); Mon, 21 Feb 2022 19:59:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237945AbiBVA7Q (ORCPT ); Mon, 21 Feb 2022 19:59:16 -0500 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCABCEBD; Mon, 21 Feb 2022 16:58:50 -0800 (PST) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nMJVS-0003BR-FT; Tue, 22 Feb 2022 11:58:19 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 22 Feb 2022 11:58:18 +1100 Date: Tue, 22 Feb 2022 11:58:18 +1100 From: Herbert Xu To: Eric Dumazet Cc: Ziyang Xuan , David Miller , Jakub Kicinski , netdev , Vasily Averin , Kees Cook , LKML Subject: Re: [PATCH net] net: vlan: allow vlan device MTU change follow real device from smaller to bigger Message-ID: References: <20220221124644.1146105-1-william.xuanziyang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Feb 21, 2022 at 07:43:18AM -0800, Eric Dumazet wrote: > > Herbert, do you recall why only a decrease was taken into consideration ? Because we shouldn't override administrative settings of the MTU on the vlan device, unless we have to because of an MTU reduction on the underlying device. Yes this is not perfect if the admin never set an MTU to start with but as we don't have a way of telling whether the admin has or has not changed the MTU setting, the safest course of action is to do nothing in that case. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt