Received: by 10.213.65.68 with SMTP id h4csp677259imn; Fri, 6 Apr 2018 07:10:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XU9gL538cXS0yx1u+CG80E7oXaXBUMKE2maQp/k3bbcYLAADTSYLRH8NlJ6RKJejV1I/E X-Received: by 2002:a17:902:8c88:: with SMTP id t8-v6mr27186322plo.329.1523023828392; Fri, 06 Apr 2018 07:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523023828; cv=none; d=google.com; s=arc-20160816; b=oIaOrY9vX8lPJmID6q4+GB5T8BKjn+ZrvysEEZAq8qGLxNStb+8Tmks8ekw+/PJ8Gl TLVNJ2yuMb4F1N1v2Z2RPBivpVSodGRfcj43s33MymjAndTkYXYDEwPrw6z6a0rDkmeG ecqVW3PmBniOsU34gcDbYKodvfplE3ggmYDqp3o4COGVF+BomWG2IDc7tn8x1X+Bk4W5 pRf2N/ovcMj2XZtIvGQ6Mk0e8IbszWFm/+yrwcRonrC6T56ESTWj8tYsj6aH4FsUEbP9 4FudWL5m+JckZQdByVZOEN8MByA4OnX+xOUQ8ta7V6lDCculz+2o8gd/rNiAX41Eajmy fXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=P9wKPI7eQgqtoR20lVMqpUTx6sGLgtmi8MgZcqq5Ces=; b=SUh7eLO/FF5OQf3OJnIbk/5lXg24fzi3UW8kgMxeE4lJhEO5taOgSHW6WREzVP2fM2 Q28a7E85mF2L9KaImYyjd9GiVu1to2qnm3BGOAsLa96IwTFwhaYSm6Gdfa9YEL/gXK6x kMbgicxXO2HdTY8igWRtfNxZjFt+A0vbFe1Y4OQTwSJ/INwtS2cKyCwcuQAlqgbdo+Wm kqQ4syuD9Ezu0YGin20PjKYf+qQjrZN2ZzJP/9bC+0+iltTi4Nf7QziiKQi3fRsF+WeM KrZAbB5lPtbhejODn5mIN0sfSk4NX5JjR3k7rDVJBEAV/lO4dRob+cXSQmOkAvxfP8yN 5PZg== 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 2si7892760pfk.291.2018.04.06.07.10.14; Fri, 06 Apr 2018 07:10:28 -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 S932507AbeDFNko (ORCPT + 99 others); Fri, 6 Apr 2018 09:40:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35930 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756387AbeDFNkm (ORCPT ); Fri, 6 Apr 2018 09:40:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 854DCDEB; Fri, 6 Apr 2018 13:40:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , Petr Vorel , Alexey Kodanev , "David S. Miller" , Stefano Brivio Subject: [PATCH 4.14 67/67] Revert "ip6_vti: adjust vti mtu according to mtu of lower device" Date: Fri, 6 Apr 2018 15:24:37 +0200 Message-Id: <20180406084348.954911674@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman This reverts commit e6cfc525163ea3375113a9dcc234c2cdd8dbf643 which is commit 53c81e95df1793933f87748d36070a721f6cb287 upstream. Ben writes that there are a number of follow-on patches needed to fix this up, but they get complex to backport, and some custom fixes are needed, so let's just revert this and wait for a "real" set of patches to resolve this to be submitted if it is really needed. Reported-by: Ben Hutchings Cc: Petr Vorel Cc: Alexey Kodanev Cc: David S. Miller Cc: Stefano Brivio Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ip6_vti.c | 20 -------------------- 1 file changed, 20 deletions(-) --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -626,7 +626,6 @@ static void vti6_link_config(struct ip6_ { struct net_device *dev = t->dev; struct __ip6_tnl_parm *p = &t->parms; - struct net_device *tdev = NULL; memcpy(dev->dev_addr, &p->laddr, sizeof(struct in6_addr)); memcpy(dev->broadcast, &p->raddr, sizeof(struct in6_addr)); @@ -639,25 +638,6 @@ static void vti6_link_config(struct ip6_ dev->flags |= IFF_POINTOPOINT; else dev->flags &= ~IFF_POINTOPOINT; - - if (p->flags & IP6_TNL_F_CAP_XMIT) { - int strict = (ipv6_addr_type(&p->raddr) & - (IPV6_ADDR_MULTICAST | IPV6_ADDR_LINKLOCAL)); - struct rt6_info *rt = rt6_lookup(t->net, - &p->raddr, &p->laddr, - p->link, strict); - - if (rt) - tdev = rt->dst.dev; - ip6_rt_put(rt); - } - - if (!tdev && p->link) - tdev = __dev_get_by_index(t->net, p->link); - - if (tdev) - dev->mtu = max_t(int, tdev->mtu - dev->hard_header_len, - IPV6_MIN_MTU); } /**