mbuf: fix build when scatter gather is disabled
authorIntel <intel.com>
Wed, 19 Dec 2012 23:00:00 +0000 (00:00 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 13:23:27 +0000 (15:23 +0200)
Signed-off-by: Intel
lib/librte_mbuf/rte_mbuf.h

index 6201bba..88f6f33 100644 (file)
@@ -59,7 +59,6 @@
  */
 
 #include <stdint.h>
-
 #include <rte_mempool.h>
 #include <rte_atomic.h>
 #include <rte_prefetch.h>
@@ -341,6 +340,8 @@ rte_mbuf_refcnt_set(struct rte_mbuf *m, uint16_t new_value)
 /** Mbuf prefetch */
 #define RTE_MBUF_PREFETCH_TO_FREE(m) do { } while(0)
 
+#define rte_mbuf_refcnt_set(m,v) do { } while(0)
+
 #endif /* RTE_MBUF_SCATTER_GATHER */