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 support for kernels 3.13
[sliver-openvswitch.git]
/
datapath
/
linux
/
compat
/
utils.c
diff --git
a/datapath/linux/compat/utils.c
b/datapath/linux/compat/utils.c
index
dc4df2a
..
9404e20
100644
(file)
--- a/
datapath/linux/compat/utils.c
+++ b/
datapath/linux/compat/utils.c
@@
-6,6
+6,7
@@
#include <linux/mm.h>
#include <linux/net.h>
#include <net/checksum.h>
#include <linux/mm.h>
#include <linux/net.h>
#include <net/checksum.h>
+#include <net/ip.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/percpu.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/percpu.h>
@@
-38,6
+39,7
@@
void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb,
}
#endif
}
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
bool __net_get_random_once(void *buf, int nbytes, bool *done,
atomic_t *done_key)
{
bool __net_get_random_once(void *buf, int nbytes, bool *done,
atomic_t *done_key)
{
@@
-58,3
+60,4
@@
bool __net_get_random_once(void *buf, int nbytes, bool *done,
return true;
}
return true;
}
+#endif