Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
crypto crypto-openssl: support hashing operations
[vpp.git]
/
src
/
vnet
/
fib
/
fib_bfd.c
diff --git
a/src/vnet/fib/fib_bfd.c
b/src/vnet/fib/fib_bfd.c
index
ae7ceec
..
b02fbc6
100644
(file)
--- a/
src/vnet/fib/fib_bfd.c
+++ b/
src/vnet/fib/fib_bfd.c
@@
-94,8
+94,8
@@
fib_bfd_notify (bfd_listen_event_e event,
* The creation of a new session
*/
if ((FIB_NODE_INDEX_INVALID != fei) &&
* The creation of a new session
*/
if ((FIB_NODE_INDEX_INVALID != fei) &&
- (fed = fib_entry_delegate_
get
(fib_entry_get(fei),
- FIB_ENTRY_DELEGATE_BFD)))
+ (fed = fib_entry_delegate_
find
(fib_entry_get(fei),
+
FIB_ENTRY_DELEGATE_BFD)))
{
/*
* already got state for this entry
{
/*
* already got state for this entry
@@
-132,8
+132,8
@@
fib_bfd_notify (bfd_listen_event_e event,
*/
ASSERT(FIB_NODE_INDEX_INVALID != fei);
*/
ASSERT(FIB_NODE_INDEX_INVALID != fei);
- fed = fib_entry_delegate_
get
(fib_entry_get(fei),
- FIB_ENTRY_DELEGATE_BFD);
+ fed = fib_entry_delegate_
find
(fib_entry_get(fei),
+
FIB_ENTRY_DELEGATE_BFD);
if (NULL != fed)
{
if (NULL != fed)
{
@@
-156,8
+156,8
@@
fib_bfd_notify (bfd_listen_event_e event,
* no FIB entry
*/
}
* no FIB entry
*/
}
- else if (fib_entry_delegate_
get
(fib_entry_get(fei),
- FIB_ENTRY_DELEGATE_BFD))
+ else if (fib_entry_delegate_
find
(fib_entry_get(fei),
+
FIB_ENTRY_DELEGATE_BFD))
{
/*
* has an associated BFD tracking delegate
{
/*
* has an associated BFD tracking delegate
@@
-183,14
+183,14
@@
fib_bfd_notify (bfd_listen_event_e event,
static clib_error_t *
fib_bfd_main_init (vlib_main_t * vm)
{
static clib_error_t *
fib_bfd_main_init (vlib_main_t * vm)
{
- clib_error_t * error = NULL;
-
- if ((error = vlib_call_init_function (vm, bfd_main_init)))
- return (error);
-
bfd_register_listener(fib_bfd_notify);
bfd_register_listener(fib_bfd_notify);
- return (
error
);
+ return (
NULL
);
}
}
-VLIB_INIT_FUNCTION (fib_bfd_main_init);
+/* *INDENT-OFF* */
+VLIB_INIT_FUNCTION (fib_bfd_main_init) =
+{
+ .runs_after = VLIB_INITS("bfd_main_init"),
+};
+/* *INDENT-ON* */