diff --git a/include/net/dst.h b/include/net/dst.h index cae3fe9a13a14199e0d5990f7c5c0d90c5fd0a6b..bf4442051899a23775cb6fc93752bf09b8ec219b 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -542,6 +542,15 @@ static inline void skb_dst_update_pmtu(struct sk_buff *skb, u32 mtu) dst->ops->update_pmtu(dst, NULL, skb, mtu, true); } +/* update dst pmtu but not do neighbor confirm */ +static inline void skb_dst_update_pmtu_no_confirm(struct sk_buff *skb, u32 mtu) +{ + struct dst_entry *dst = skb_dst(skb); + + if (dst && dst->ops->update_pmtu) + dst->ops->update_pmtu(dst, NULL, skb, mtu, false); +} + static inline void skb_tunnel_check_pmtu(struct sk_buff *skb, struct dst_entry *encap_dst, int headroom)