diff options
author | Damjan Marion <damarion@cisco.com> | 2016-05-05 22:49:38 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-05-05 22:50:03 +0200 |
commit | 4e0fcd7932c9032f9de24379ec968fc3611421cb (patch) | |
tree | 830b60ecc45927ac81ce3d0bc9764a3872e7b75c /vnet | |
parent | a9edd85e4cb35fd55c515dbfbad37aecd28c1431 (diff) |
Fix vpp_lite build caused by missing definition of unlikely macro
Change-Id: I11b34e171c1c7907dd3faec219866418b4e792f6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/devices/netmap/netmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/devices/netmap/netmap.h b/vnet/vnet/devices/netmap/netmap.h index 15b14dbb0b7..026f0001f96 100644 --- a/vnet/vnet/devices/netmap/netmap.h +++ b/vnet/vnet/devices/netmap/netmap.h @@ -122,7 +122,7 @@ int netmap_delete_if(vlib_main_t * vm, u8 * host_if_name); 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); } |