tunnels: PMTU discovery support for directly bridged IP packets
[linux-block.git] / include / net / dst.h
index 852d8fb36ab72390c5f417eaff9f9580eac69429..6ae2e625050dbd9da571f5f75f36986d9b56c94c 100644 (file)
@@ -535,14 +535,4 @@ static inline void skb_dst_update_pmtu_no_confirm(struct sk_buff *skb, u32 mtu)
                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)
-{
-       u32 encap_mtu = dst_mtu(encap_dst);
-
-       if (skb->len > encap_mtu - headroom)
-               skb_dst_update_pmtu_no_confirm(skb, encap_mtu - headroom);
-}
-
 #endif /* _NET_DST_H */