Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix vpp_lite build caused by missing definition of unlikely macro
[vpp.git]
/
vnet
/
vnet
/
devices
/
netmap
/
netmap.h
diff --git
a/vnet/vnet/devices/netmap/netmap.h
b/vnet/vnet/devices/netmap/netmap.h
index
15b14db
..
026f000
100644
(file)
--- 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);
}