diff options
Diffstat (limited to 'include/net/dst.h')
-rw-r--r-- | include/net/dst.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 33d2a5433924..c63d2c37f6e9 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -504,4 +504,12 @@ static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) | |||
504 | } | 504 | } |
505 | #endif | 505 | #endif |
506 | 506 | ||
507 | static inline void skb_dst_update_pmtu(struct sk_buff *skb, u32 mtu) | ||
508 | { | ||
509 | struct dst_entry *dst = skb_dst(skb); | ||
510 | |||
511 | if (dst && dst->ops->update_pmtu) | ||
512 | dst->ops->update_pmtu(dst, NULL, skb, mtu); | ||
513 | } | ||
514 | |||
507 | #endif /* _NET_DST_H */ | 515 | #endif /* _NET_DST_H */ |