[dpdk-dev] [PATCH 3/4] eal: introduce the rte macro for noinline

Jerin Jacob jerin.jacob at caviumnetworks.com
Sat May 13 11:27:27 CEST 2017


Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
---
 lib/librte_eal/common/include/rte_common.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h
index a9a749488..27bfbd4f8 100644
--- a/lib/librte_eal/common/include/rte_common.h
+++ b/lib/librte_eal/common/include/rte_common.h
@@ -107,6 +107,11 @@ typedef uint16_t unaligned_uint16_t;
  */
 #define __rte_always_inline inline __attribute__((always_inline))
 
+/**
+ * Force a function to be noinlined
+ */
+#define __rte_noinline  __attribute__((noinline))
+
 /*********** Macros for pointer arithmetic ********/
 
 /**
-- 
2.13.0



More information about the dev mailing list