Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11790939pjo; Thu, 2 Jan 2020 14:20:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyWSEihe3BydpnMhH8SUdJ/faJyuAXbAFyKZ8NaKzkOfYftRCfgMXVf1LozNNcI9WLgWzLo X-Received: by 2002:a9d:7593:: with SMTP id s19mr89102776otk.219.1578003622652; Thu, 02 Jan 2020 14:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003622; cv=none; d=google.com; s=arc-20160816; b=QRA3j9HYz8dQclkxTNWH1Nq1n6hx+I0oa2ZaPrLYgIdYaC4W/2eM4Z7hpJGCp4FI+U jjvAX6zlhImpHENuBQ5iyptTjT5szamVGr3mYfFP4OhPjaI5Zc6Napa2kegDc6CHkzza 3FsHBrn/hPLVlkR8ksrgoDMV/nYh/t69ADAM+j1iCSGRdMPqmeUKd1b+EmHLXpMwyrUS Y1i+lL/pDrNCA8pU1OuMMfDL08n10HaS1MB1eyUtA7k6VrIGxVBTG/2DHyAFdeGM0HSQ 6OrKM+G6KAnyFqrIOOCJ6tjnQ9FZi9fFpa8BUcjreVvai1EcVJHWrNHaDu4mgR/9VD/p oepw== 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=ReTZGfDwWggTP7Hs8zqroBOZ1bkHog98b8ic9E2L8Tw=; b=AAQ87dm0oNIdb1xubmeKErnKTR6UAhPdd2RWi5QvgN0XVpf8EMuaBa1B1pnogzj/zt YydAE/RBnPIOcUn4VV7pEmcn8j+MSUNXOblwmZNO/WXtPIFEArjvO9KcWmKwWfKfgUoK SSarcL+mj1zOr1G5SDwFe6KUIRJ54KIt2iJGKSJk5/SaLrQqdqOjIBDb+c/XWgfgdl6u 8YvihtTVGQl4mk66Z5+Uw13O6emsiUsJ5CHgW93HtcXxktI8Ue0nT2f0hwftJBJcmQGR oHpye9O/P3F0diKIcfAfbcq4ojZBgH6VJDz3WzQaU2+jNG0e9t2eP+jSLR3s/tjn2Fm3 sIig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KU6o1NTI; 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 v5si30593218otn.155.2020.01.02.14.20.11; Thu, 02 Jan 2020 14:20: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=KU6o1NTI; 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 S1728475AbgABWSj (ORCPT + 99 others); Thu, 2 Jan 2020 17:18:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:34010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbgABWSh (ORCPT ); Thu, 2 Jan 2020 17:18:37 -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 8D13E2253D; Thu, 2 Jan 2020 22:18:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003517; bh=NS5YAvQuPF8LGqne4QikjhrH8sI3xfzOa4RMFogxKnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KU6o1NTIUac5QlhrqGhgLvvs500dnq3+rcXJiSNHunzqPtn0mTiU/LMLpVQByxoxP Dms2krH7a/Nn415CYf4TAte8n4+kjlTUeSW1M/Ym3jteZWOF1gRKYjmDCsjmZvviYL hDHJ0ePpc8xZ4N8Th/1Us5XSxrr3vl4ZwE01LX/g= 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 5.4 174/191] net/dst: do not confirm neighbor for vxlan and geneve pmtu update Date: Thu, 2 Jan 2020 23:07:36 +0100 Message-Id: <20200102215847.955146723@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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 f081042d128a0c7acbd67611def62e1b52e2d294 ] 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. So disable the neigh confirm for vxlan and geneve pmtu update. 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. Fixes: a93bf0ff4490 ("vxlan: update skb dst pmtu on tx path") Fixes: 52a589d51f10 ("geneve: update skb dst pmtu on tx path") 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 --- include/net/dst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/net/dst.h +++ b/include/net/dst.h @@ -535,7 +535,7 @@ static inline void skb_tunnel_check_pmtu u32 encap_mtu = dst_mtu(encap_dst); if (skb->len > encap_mtu - headroom) - skb_dst_update_pmtu(skb, encap_mtu - headroom); + skb_dst_update_pmtu_no_confirm(skb, encap_mtu - headroom); } #endif /* _NET_DST_H */