Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11793863pjo; Thu, 2 Jan 2020 14:23:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwKXn5oQsUF5FXHQ24LWkcyCWQli0B/LmaCAu1kcKahHfurQbRkLDzNHXZ4K/QT/pT8YvBX X-Received: by 2002:aca:503:: with SMTP id 3mr2947394oif.24.1578003803008; Thu, 02 Jan 2020 14:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003803; cv=none; d=google.com; s=arc-20160816; b=GohXRRkdKwlveXyTMlnrOOw/rICyxGClLa3+9C6HXYM3rj52uoYWL+brd2W7Hwe5zx 6b9hs3x7UsIPd/P1bqmsf1XrC1e/XHqoVS61IkTewDJVoIw4TQWuxQ47YDtLESt7ICrb qplSWX42Eh/t4fnSk7yhGNosa4TGFPC30fXb0fuSBspI0I3rQeLnnpbnZr4/QbuUTDMj Q1Tz4TFI6V79WrK7VvGH1enzZfNSt4U/4YOfG2KXgvNifcojTDzUGI2aCYnnkM84+OaV fsVlWY7+Jalg6hSdfT/c7sXfuN3rO9JSPKzQQtrEM+Gbu623vcVptJ6Y1GeTsoJPVo3f FiSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UWYAKxjGZ2m8lp1rCdeZZ6GLTKWcwQIlnCreAGPXbkc=; b=VZE70QKdLx/W3iFDQC9LoIMyzLaCc2GFeO6q2p7bNMxofdsoep7TJiGOOmGzLLmRYv FiA7OooMFslFIa4qh2ChhzpIBQS3l+FXcWvuR5VehGLLE1tEPEytHApAot6hwN0YYXmz wf2w+oJi7KbCf8kUd3S/1OtttkIIaa9IzW2iGhy7KX0llkz+7LyM8VPnZg38ntFIjTTD 6t4AcxBm+nslf4nOf9rT/cOkFOFHIMiCSCEKWQBBOf+Pc3Bw80lH4Hsof8aKPaaE3LbA RPHLoxi5k8ZpqdEWURTKwlJXPDUlagpQHC52GnxfiveRNiTkBtCpD18rMsRkAVtaXGCX IBmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WbWH8hgZ; 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 i12si26667085oik.171.2020.01.02.14.23.11; Thu, 02 Jan 2020 14:23:22 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=WbWH8hgZ; 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 S1728798AbgABWWg (ORCPT + 99 others); Thu, 2 Jan 2020 17:22:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:43220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729150AbgABWWc (ORCPT ); Thu, 2 Jan 2020 17:22:32 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B32F220863; Thu, 2 Jan 2020 22:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003752; bh=1eaTU/ag9x+F7XSNOX59Gr70kIYFMlNTRF77kgMWL74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WbWH8hgZ2T2BjWI37hpmrEf1+N8u0f6qdVWWRZnOZHZlaBEzxxmxNHjyRrn1utEII 400dokW3YiidL1QP025aRGbaQwDAELG7ciA2lV17JMN8sH8fl/+zt0Xp6IjdVcHunh hdFO8Sw8ELnUEHY3SLDP8XSdooaQDfkdQ1n/i86w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guillaume Nault , David Ahern , Hangbin Liu , "David S. Miller" Subject: [PATCH 4.19 099/114] gtp: do not confirm neighbor when do pmtu update Date: Thu, 2 Jan 2020 23:07:51 +0100 Message-Id: <20200102220039.186556057@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220029.183913184@linuxfoundation.org> References: <20200102220029.183913184@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hangbin Liu [ Upstream commit 6e9105c73f8d2163d12d5dfd762fd75483ed30f5 ] When do IPv6 tunnel PMTU update and calls __ip6_rt_update_pmtu() in the end, we should not call dst_confirm_neigh() as there is no two-way communication. Although GTP only support ipv4 right now, and __ip_rt_update_pmtu() does not call dst_confirm_neigh(), we still set it to false to keep consistency with IPv6 code. v5: No change. v4: No change. v3: Do not remove dst_confirm_neigh, but add a new bool parameter in dst_ops.update_pmtu to control whether we should do neighbor confirm. Also split the big patch to small ones for each area. v2: Remove dst_confirm_neigh in __ip6_rt_update_pmtu. Reviewed-by: Guillaume Nault Acked-by: David Ahern Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/gtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/gtp.c +++ b/drivers/net/gtp.c @@ -545,7 +545,7 @@ static int gtp_build_skb_ip4(struct sk_b mtu = dst_mtu(&rt->dst); } - rt->dst.ops->update_pmtu(&rt->dst, NULL, skb, mtu, true); + rt->dst.ops->update_pmtu(&rt->dst, NULL, skb, mtu, false); if (!skb_is_gso(skb) && (iph->frag_off & htons(IP_DF)) && mtu < ntohs(iph->tot_len)) {