diff options
Diffstat (limited to 'include/net/dst.h')
-rw-r--r-- | include/net/dst.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index 4fb6c4381791..75766b42660e 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -53,6 +53,7 @@ struct dst_entry { | |||
53 | #define DST_NOHASH 0x0008 | 53 | #define DST_NOHASH 0x0008 |
54 | #define DST_NOCACHE 0x0010 | 54 | #define DST_NOCACHE 0x0010 |
55 | #define DST_NOCOUNT 0x0020 | 55 | #define DST_NOCOUNT 0x0020 |
56 | #define DST_NOPEER 0x0040 | ||
56 | 57 | ||
57 | short error; | 58 | short error; |
58 | short obsolete; | 59 | short obsolete; |
@@ -205,12 +206,7 @@ dst_feature(const struct dst_entry *dst, u32 feature) | |||
205 | 206 | ||
206 | static inline u32 dst_mtu(const struct dst_entry *dst) | 207 | static inline u32 dst_mtu(const struct dst_entry *dst) |
207 | { | 208 | { |
208 | u32 mtu = dst_metric_raw(dst, RTAX_MTU); | 209 | return dst->ops->mtu(dst); |
209 | |||
210 | if (!mtu) | ||
211 | mtu = dst->ops->default_mtu(dst); | ||
212 | |||
213 | return mtu; | ||
214 | } | 210 | } |
215 | 211 | ||
216 | /* RTT metrics are stored in milliseconds for user ABI, but used as jiffies */ | 212 | /* RTT metrics are stored in milliseconds for user ABI, but used as jiffies */ |