Fix vpp_lite build caused by missing definition of unlikely macro
Change-Id: I11b34e171c1c7907dd3faec219866418b4e792f6
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/vnet/vnet/devices/netmap/netmap.h b/vnet/vnet/devices/netmap/netmap.h
index 15b14db..026f000 100644
--- a/vnet/vnet/devices/netmap/netmap.h
+++ b/vnet/vnet/devices/netmap/netmap.h
@@ -122,7 +122,7 @@
static inline uint32_t
nm_ring_next(struct netmap_ring *ring, uint32_t i)
{
- return ( unlikely(i + 1 == ring->num_slots) ? 0 : i + 1);
+ return ( PREDICT_FALSE(i + 1 == ring->num_slots) ? 0 : i + 1);
}