git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Add compile time check for rxhash
[sliver-openvswitch.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
3af3ddc
..
4f22600
100644
(file)
--- a/
datapath/linux/compat/include/linux/skbuff.h
+++ b/
datapath/linux/compat/include/linux/skbuff.h
@@
-220,7
+220,7
@@
static inline int skb_unclone(struct sk_buff *skb, gfp_t pri)
extern u32 __skb_get_rxhash(struct sk_buff *skb);
static inline __u32 skb_get_rxhash(struct sk_buff *skb)
{
-#if
LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34)
+#if
def HAVE_RXHASH
if (skb->rxhash)
return skb->rxhash;
#endif