diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-11-08 08:14:21 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-11-09 20:03:33 -0800 |
commit | 2baf0e0c6cd2a96afd43cd7df2b94afe94dd1d4c (patch) | |
tree | 5b783aeec895ef2628e74d0cf7923a965cf7d04d /datapath/compat.h | |
parent | 684b5f5dd127f304155c4619cf0874111da9dcdb (diff) | |
download | openvswitch-2baf0e0c6cd2a96afd43cd7df2b94afe94dd1d4c.tar.gz |
datapath: Fix few mpls issues.
Found during MPLS upstreaming. Also sync-up MPLS header files
with upstream code.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'datapath/compat.h')
-rw-r--r-- | datapath/compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/datapath/compat.h b/datapath/compat.h index 9632a6e60..5ef626fdb 100644 --- a/datapath/compat.h +++ b/datapath/compat.h @@ -76,4 +76,14 @@ static inline struct rtable *find_route(struct net *net, return rt; #endif } + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) +static inline bool skb_encapsulation(struct sk_buff *skb) +{ + return skb->encapsulation; +} +#else +#define skb_encapsulation(skb) false +#endif + #endif /* compat.h */ |