diff options
Diffstat (limited to 'net/mpls/internal.h')
-rw-r--r-- | net/mpls/internal.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/mpls/internal.h b/net/mpls/internal.h index 732a5c17e986..bdfef6c3271a 100644 --- a/net/mpls/internal.h +++ b/net/mpls/internal.h | |||
@@ -1,9 +1,6 @@ | |||
1 | #ifndef MPLS_INTERNAL_H | 1 | #ifndef MPLS_INTERNAL_H |
2 | #define MPLS_INTERNAL_H | 2 | #define MPLS_INTERNAL_H |
3 | 3 | #include <net/mpls.h> | |
4 | struct mpls_shim_hdr { | ||
5 | __be32 label_stack_entry; | ||
6 | }; | ||
7 | 4 | ||
8 | struct mpls_entry_decoded { | 5 | struct mpls_entry_decoded { |
9 | u32 label; | 6 | u32 label; |
@@ -93,11 +90,6 @@ struct mpls_route { /* next hop label forwarding entry */ | |||
93 | 90 | ||
94 | #define endfor_nexthops(rt) } | 91 | #define endfor_nexthops(rt) } |
95 | 92 | ||
96 | static inline struct mpls_shim_hdr *mpls_hdr(const struct sk_buff *skb) | ||
97 | { | ||
98 | return (struct mpls_shim_hdr *)skb_network_header(skb); | ||
99 | } | ||
100 | |||
101 | static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned ttl, unsigned tc, bool bos) | 93 | static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned ttl, unsigned tc, bool bos) |
102 | { | 94 | { |
103 | struct mpls_shim_hdr result; | 95 | struct mpls_shim_hdr result; |