Received: by 10.213.65.68 with SMTP id h4csp694118imn; Fri, 6 Apr 2018 07:24:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48i5E3c9hZtdl9qmyMK3Bq0OQnA2PYnPKaHQ0ffnN6p1fiFVsGoCKPpzwpkn9WgaBuUmFGk X-Received: by 2002:a17:902:60cf:: with SMTP id k15-v6mr27373937pln.44.1523024665099; Fri, 06 Apr 2018 07:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523024665; cv=none; d=google.com; s=arc-20160816; b=uSkZrZv6IIjHJd+iSo1UtnC9p9fAF44nY14rXMpkhGwZidekgB/qbC/j1h8u9lEd+J muikPaaoBMU3IytnCj8LimJS8QGVLcFKHryO8nS7uWM4VKXSucN3ZyW52TZvGV0B8vI2 ly3Wckt8MU49raE01lzUE/7VEbxGsVkDTus+yVdZdbGK3UWhHLgKAk/YGbx/1I+5v89M iszdbkbYdV1sruNjZ/0DppCyD6/oCNQtnmtZvSquV3q7va6Vli+JBVMtx9CW2RTkA0c4 TC9yaLUF4/48IMg81gqgSejmLjrZWuf/bJTDRw5DwV0P4uKRs4R2ztk8qM/Ky7kKHjSh xNlg== 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=2yFmVGB8rEVxdqhOMLFGCEQ27fAvwjfjqfjpc8HQi/U=; b=FdZRD6l/adzfj+0ypgo5BFkBJWjFtWR163g1kuU6GmITzkgxSz/aBtsWGMmq2Puxz5 aEqq87HTCuo6Y2bGlvS3iD5HVpODBy857UBVxy7UU4a37EAZYznjvrBmRblDhFYkJjSj PfZkbkEVOYzuGAw3j4Ixa5tFyt3Z/rMZs45LY+9LbLCjX14cSfy3/F3kFgxg+t0ndvMY GAlZ78RHrTrRNFW9fGAu1gO4q+rMQTluC/ADIhgYVH30mlrQUfxjTTTjyeaOFTqZYmqM Ng06RPq13nSyYyqwCIXKYPndbDM/vW54k5kO9bWrLp+rq7Xml+TYz0eI2fmLbLFrELGb YJQA== 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 19si8067957pfi.285.2018.04.06.07.24.11; Fri, 06 Apr 2018 07:24:25 -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 S932316AbeDFNhq (ORCPT + 99 others); Fri, 6 Apr 2018 09:37:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33040 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932296AbeDFNhm (ORCPT ); Fri, 6 Apr 2018 09:37: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 9C91FCAE; Fri, 6 Apr 2018 13:37:23 +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.9 101/102] Revert "ip6_vti: adjust vti mtu according to mtu of lower device" Date: Fri, 6 Apr 2018 15:24:22 +0200 Message-Id: <20180406084345.630242498@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman This reverts commit 1139d77d8a7f9aa6b6ae0a1c902f94775dad2f52 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 @@ -625,7 +625,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)); @@ -638,25 +637,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); } /**