projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Fix few mpls issues.
[cascardo/ovs.git]
/
datapath
/
compat.h
diff --git
a/datapath/compat.h
b/datapath/compat.h
index
9632a6e
..
5ef626f
100644
(file)
--- 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 */