git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/crypto-perf: fix CSV format
[dpdk.git]
/
kernel
/
linux
/
kni
/
kni_fifo.h
diff --git
a/kernel/linux/kni/kni_fifo.h
b/kernel/linux/kni/kni_fifo.h
index
2cb3a4a
..
5c91b55
100644
(file)
--- a/
kernel/linux/kni/kni_fifo.h
+++ b/
kernel/linux/kni/kni_fifo.h
@@
-6,7
+6,15
@@
#ifndef _KNI_FIFO_H_
#define _KNI_FIFO_H_
#ifndef _KNI_FIFO_H_
#define _KNI_FIFO_H_
-#include <exec-env/rte_kni_common.h>
+#include <rte_kni_common.h>
+
+/* Skip some memory barriers on Linux < 3.14 */
+#ifndef smp_load_acquire
+#define smp_load_acquire(a) (*(a))
+#endif
+#ifndef smp_store_release
+#define smp_store_release(a, b) *(a) = (b)
+#endif
/**
* Adds num elements into the fifo. Return the number actually written
/**
* Adds num elements into the fifo. Return the number actually written