Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fib feature: Code mechanics to decouple dependency of feature on adj
[vpp.git]
/
src
/
vnet
/
adj
/
adj.c
diff --git
a/src/vnet/adj/adj.c
b/src/vnet/adj/adj.c
index
0966d97
..
a603925
100644
(file)
--- a/
src/vnet/adj/adj.c
+++ b/
src/vnet/adj/adj.c
@@
-405,10
+405,11
@@
adj_feature_update_walk_cb (adj_index_t ai,
return (ADJ_WALK_RC_CONTINUE);
}
return (ADJ_WALK_RC_CONTINUE);
}
-void
+
static
void
adj_feature_update (u32 sw_if_index,
u8 arc_index,
adj_feature_update (u32 sw_if_index,
u8 arc_index,
- u8 is_enable)
+ u8 is_enable,
+ void *data)
{
/*
* Walk all the adjacencies on the interface to update the cached
{
/*
* Walk all the adjacencies on the interface to update the cached
@@
-590,6
+591,8
@@
adj_module_init (vlib_main_t * vm)
adj_midchain_module_init();
adj_mcast_module_init();
adj_midchain_module_init();
adj_mcast_module_init();
+ vnet_feature_register(adj_feature_update, NULL);
+
return (NULL);
}
return (NULL);
}