common/mlx5: add DevX API to create ASO flow hit object
[dpdk.git] / kernel / linux / kni / kni_fifo.h
index 2cb3a4a..5c91b55 100644 (file)
@@ -6,7 +6,15 @@
 #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