summaryrefslogtreecommitdiffstats
path: root/include/net/mpls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mpls.h')
-rw-r--r--include/net/mpls.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/net/mpls.h b/include/net/mpls.h
index 3ebbc0bb57ff..1dbc669b770e 100644
--- a/include/net/mpls.h
+++ b/include/net/mpls.h
@@ -33,16 +33,4 @@ static inline struct mpls_shim_hdr *mpls_hdr(const struct sk_buff *skb)
33{ 33{
34 return (struct mpls_shim_hdr *)skb_network_header(skb); 34 return (struct mpls_shim_hdr *)skb_network_header(skb);
35} 35}
36
37/*
38 * For non-MPLS skbs this will correspond to the network header.
39 * For MPLS skbs it will be before the network_header as the MPLS
40 * label stack lies between the end of the mac header and the network
41 * header. That is, for MPLS skbs the end of the mac header
42 * is the top of the MPLS label stack.
43 */
44static inline unsigned char *skb_mpls_header(struct sk_buff *skb)
45{
46 return skb_mac_header(skb) + skb->mac_len;
47}
48#endif 36#endif