eal: introduce macro for always inline
[dpdk.git] / lib / librte_eal / common / include / rte_common.h
index e057f6e..a9a7494 100644 (file)
@@ -102,6 +102,11 @@ typedef uint16_t unaligned_uint16_t;
  */
 #define RTE_SET_USED(x) (void)(x)
 
+/**
+ * Force a function to be inlined
+ */
+#define __rte_always_inline inline __attribute__((always_inline))
+
 /*********** Macros for pointer arithmetic ********/
 
 /**