Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5443727ybp; Tue, 8 Oct 2019 03:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZK9VORyLXmmqWXX6eoGHbcwYFkHtwX045dInxHI6wD/IuCaAwen2Pn17PDJq8AjF31Br4 X-Received: by 2002:a50:f045:: with SMTP id u5mr33190656edl.297.1570528816992; Tue, 08 Oct 2019 03:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570528816; cv=none; d=google.com; s=arc-20160816; b=NtpsKDb9ZTIvu3Pp7ahIfm31oK0g2VfAynrUkasH8kR/DM03B0xNH7zBaIw7kDsFot eudxB2ApDfvN7JGDGHQ0UnsoZWtmR9V7tG++lbDB8jOKgnHPABVt8b3uM2xTQgrBqBEf 3W0NfOe1XZYIaPQ9Ib/jo4H9Vh0yCv+E7dB/24bJ5+qCE9E/xujKgK1eajZzZhEP0MAq k4YIm1dUauZzyyvSdEeFyMpgbqA+pjerNKo1Wzwksx0lfxc9fqwnOsLkps1K4ayBMo0L DTHfilbt3W1p4W5J9Sm6FbiDU4n8SVIBJs9AfjhRpCJJETZg8QwTjre0MLvkEsk7B02I cxCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=lIIBly0+9dfqmDMIhGCm7lTMR9dLDSFNAZN3bpaRSL0=; b=LtV47bsMcgN53felV3Ykf3N10EhG/Q3vo3NsIqaDsTq3kf1vl3//IrDdZ0IwtSAu58 dIZuYjhf7rKKgDsvDdLhIXa10lzpB7C8xxisYXO9+LoMfoQKUr3o9WaqJhmYirm6DYu3 MSSGy3kQKoDmHBw5iHaxRVZNp81uErvyVJI3g6HpVKPv3oZQHiTx757rbqCFI4KJNhNE zfZxMT/duo7Z+8ZPhrWXgciXFXKdljcq0zKt/rEK3o3dVOfXn/Y+AFOW49xyhcZ/Rb/i vIiasmpPQbYP9esuZDG3gzUR+XtmCciZCY1PRewqO7eTa2NAgvmh2FoSOjHjRXbioJ1m uA8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si8321331eju.156.2019.10.08.02.59.52; Tue, 08 Oct 2019 03:00:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730566AbfJHJ4p (ORCPT + 99 others); Tue, 8 Oct 2019 05:56:45 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:2991 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730177AbfJHJ4a (ORCPT ); Tue, 8 Oct 2019 05:56:30 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.9]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee95d9c5d3b0c4-f0114; Tue, 08 Oct 2019 17:56:11 +0800 (CST) X-RM-TRANSID: 2ee95d9c5d3b0c4-f0114 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost (unknown[223.105.0.241]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee55d9c5d3a26f-8c8c6; Tue, 08 Oct 2019 17:56:10 +0800 (CST) X-RM-TRANSID: 2ee55d9c5d3a26f-8c8c6 From: Haishuang Yan To: "David S. Miller" Cc: William Tu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Haishuang Yan Subject: [PATCH] ip6erspan: remove the incorrect mtu limit for ip6erspan Date: Tue, 8 Oct 2019 17:56:03 +0800 Message-Id: <1570528563-8062-1-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ip6erspan driver calls ether_setup(), after commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. It causes the dev mtu of the erspan device to not be greater than 1500, this limit value is not correct for ip6erspan tap device. Signed-off-by: Haishuang Yan --- net/ipv6/ip6_gre.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index d5779d6..787d9f2 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -2192,6 +2192,7 @@ static void ip6erspan_tap_setup(struct net_device *dev) { ether_setup(dev); + dev->max_mtu = 0; dev->netdev_ops = &ip6erspan_netdev_ops; dev->needs_free_netdev = true; dev->priv_destructor = ip6gre_dev_free; -- 1.8.3.1