projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dpif-netdev: Allow for Ethernet and VLAN header in buffer size calculation.
[openvswitch]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
linux
/
slab.h
diff --git
a/datapath/linux-2.6/compat-2.6/include/linux/slab.h
b/datapath/linux-2.6/compat-2.6/include/linux/slab.h
index 5c54c18a301d684fa55bd3058895871a994f0b93..7e9c3f4e2b9f13e83c0f14af4fd2d5476e8cd46c 100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/include/linux/slab.h
+++ b/
datapath/linux-2.6/compat-2.6/include/linux/slab.h
@@
-7,4
+7,8
@@
extern void *kmemdup(const void *src, size_t len, gfp_t gfp);
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+#define kmem_cache_create(n, s, a, f, c) kmem_cache_create(n, s, a, f, c, NULL)
+#endif
+
#endif