Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: refactor clib_bitmap_foreach macro
[vpp.git]
/
src
/
vnet
/
fib
/
ip6_fib.c
diff --git
a/src/vnet/fib/ip6_fib.c
b/src/vnet/fib/ip6_fib.c
index
6943166
..
62bf16f
100644
(file)
--- a/
src/vnet/fib/ip6_fib.c
+++ b/
src/vnet/fib/ip6_fib.c
@@
-264,11
+264,11
@@
compute_prefix_lengths_in_search_order (ip6_fib_table_instance_t *table)
old = table->prefix_lengths_in_search_order;
/* Note: bitmap reversed so this is in fact a longest prefix match */
old = table->prefix_lengths_in_search_order;
/* Note: bitmap reversed so this is in fact a longest prefix match */
- clib_bitmap_foreach (i, table->non_empty_dst_address_length_bitmap
,
-
(
{
+ clib_bitmap_foreach (i, table->non_empty_dst_address_length_bitmap
)
+
{
int dst_address_length = 128 - i;
vec_add1(prefix_lengths_in_search_order, dst_address_length);
int dst_address_length = 128 - i;
vec_add1(prefix_lengths_in_search_order, dst_address_length);
- }
));
+ }
table->prefix_lengths_in_search_order = prefix_lengths_in_search_order;
table->prefix_lengths_in_search_order = prefix_lengths_in_search_order;