diff options
-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); } |