xfrm: interface: do not confirm neighbor when do pmtu update
authorXu Wang <vulab@iscas.ac.cn>
Mon, 13 Jan 2020 09:00:36 +0000 (09:00 +0000)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 14 Jan 2020 07:55:38 +0000 (08:55 +0100)
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.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c

index 00393179f18521646c8377c29b21af156f4dd8e4..dc651a628dcf07df229ff85878c744a257f01f49 100644 (file)
@@ -294,7 +294,7 @@ xfrmi_xmit2(struct sk_buff *skb, struct net_device *dev, struct flowi *fl)
 
        mtu = dst_mtu(dst);
        if (!skb->ignore_df && skb->len > mtu) {
-               skb_dst_update_pmtu(skb, mtu);
+               skb_dst_update_pmtu_no_confirm(skb, mtu);
 
                if (skb->protocol == htons(ETH_P_IPV6)) {
                        if (mtu < IPV6_MIN_MTU)