Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11795639pjo; Thu, 2 Jan 2020 14:25:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwwt22VfI3P+6Bbda2RcDUQJe5ISuJokgJaO2/XgZDPUhYa7Xw8ww9AbFsGPGR38HwILGpP X-Received: by 2002:a05:6830:1d5b:: with SMTP id p27mr73935948oth.263.1578003915754; Thu, 02 Jan 2020 14:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003915; cv=none; d=google.com; s=arc-20160816; b=HwZU/fCTxd8dKF1Illg7qsKyDmowDVxgO+CmZIqJaHeinGZ0pGzpVRPxRfViJlEmQo UFBIRPLiWDmbCIw3mSjRVXZ434g3/tPksNhASZbtVbqVQ3qdxmSBP3iTZIxtlxyYbM5J R2UYOH4fTk2R8xFOtk+/eQysGrD3Nmea7GopJQQJ9CaaHZxH2PoD1GXGOsANMbo4+L9z LVouBEf6mjP9CFM0L/75JtN0yvYvy2kHquz3ZmXSaMgkmlcEZFRVETJ6JguDc9IAo0Dq jslXueRIlnDlhbFL1GF4kNwCjkLBS6fhoGH3Is3uftEQz0+bHpzXqbnSbD7bApMWlfFC CLhg== 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=7er8Y6rbVKxRpGdBHNv15OZ6mcWUqDsRB/jRAXceY84=; b=NRyuhrLTQFYpDIqnVqau+021Zig4KNUtaH6ub9eF1Nnvf/+wYpY7kd6muss4iCDo8i IvxNFnsb7rn2TCzmMsKuZx2Ufu3rlx4XqppYzNaFDQ1ZjwvJk2Vfxzqor7mKnn+H7QuN 6T8tIkOniqRbgRBgs2qZxGVIQ/M1+ZdqsVs0+Fhh0+ABEQx0GXr+rLGXX2vfx/0RSzBD hl51ppykImcE+fGIaw29QF4Br4kyNUHIuHkoibIc3vgVwS6X9fxylSoEfzxQie44/vG2 WmjfiZrgzUpLT7JHZ3BOjd33mMa87iIySL8HFArISWMOylwAS6pTFxUwpUVqfidXPJZN DwAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1uZfoBni; 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 r12si28465064otq.156.2020.01.02.14.25.03; Thu, 02 Jan 2020 14:25:15 -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=1uZfoBni; 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 S1727657AbgABWXb (ORCPT + 99 others); Thu, 2 Jan 2020 17:23:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:45642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729228AbgABWX2 (ORCPT ); Thu, 2 Jan 2020 17:23:28 -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 ED84620866; Thu, 2 Jan 2020 22:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003807; bh=BSA/pcBUGl1nwFwAirAYzR7/hzKPhS7OOnadprGSpm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1uZfoBniFXz62yG8/sK2J1ehnxOaqnwTRuF3vp6GUZgD3n6qMoKXnM3IjgjmYaXet ZZ/s/rotmmUt/t9+cWCaiyDr050eeaXrY5sV2Dw530iu6fzj/eim+oCGSWl01raIZh Y9lWKD9zwEoFhPOYUpiDllAvjWIaXrXiyyQiE/kU= 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 101/114] tunnel: do not confirm neighbor when do pmtu update Date: Thu, 2 Jan 2020 23:07:53 +0100 Message-Id: <20200102220039.383709605@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 7a1592bcb15d71400a98632727791d1e68ea0ee8 ] When do 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. v5: No Change. v4: Update commit description 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. Fixes: 0dec879f636f ("net: use dst_confirm_neigh for UDP, RAW, ICMP, L2TP") Reviewed-by: Guillaume Nault Tested-by: Guillaume Nault Acked-by: David Ahern Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ip_tunnel.c | 2 +- net/ipv6/ip6_tunnel.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c @@ -513,7 +513,7 @@ static int tnl_update_pmtu(struct net_de else mtu = skb_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu; - skb_dst_update_pmtu(skb, mtu); + skb_dst_update_pmtu_no_confirm(skb, mtu); if (skb->protocol == htons(ETH_P_IP)) { if (!skb_is_gso(skb) && --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -645,7 +645,7 @@ ip4ip6_err(struct sk_buff *skb, struct i if (rel_info > dst_mtu(skb_dst(skb2))) goto out; - skb_dst_update_pmtu(skb2, rel_info); + skb_dst_update_pmtu_no_confirm(skb2, rel_info); } icmp_send(skb2, rel_type, rel_code, htonl(rel_info)); @@ -1137,7 +1137,7 @@ route_lookup: mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ? IPV6_MIN_MTU : IPV4_MIN_MTU); - skb_dst_update_pmtu(skb, mtu); + skb_dst_update_pmtu_no_confirm(skb, mtu); if (skb->len - t->tun_hlen - eth_hlen > mtu && !skb_is_gso(skb)) { *pmtu = mtu; err = -EMSGSIZE;