projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Check for backported skb_orphan_frags().
[cascardo/ovs.git]
/
datapath
/
linux
/
compat
/
include
/
linux
/
skbuff.h
diff --git
a/datapath/linux/compat/include/linux/skbuff.h
b/datapath/linux/compat/include/linux/skbuff.h
index
cc2bf0e
..
714c955
100644
(file)
--- a/
datapath/linux/compat/include/linux/skbuff.h
+++ b/
datapath/linux/compat/include/linux/skbuff.h
@@
-243,12
+243,12
@@
static inline int skb_unclone(struct sk_buff *skb, gfp_t pri)
}
#endif
}
#endif
-#if
LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)
+#if
ndef HAVE_SKB_ORPHAN_FRAGS
static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask)
{
return 0;
}
static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask)
{
return 0;
}
-#endif
/* LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) */
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
#define __skb_get_rxhash rpl__skb_get_rxhash
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
#define __skb_get_rxhash rpl__skb_get_rxhash