aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_entry_cover.c
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2020-11-26 09:34:39 +0000
committerBeno�t Ganne <bganne@cisco.com>2020-11-26 13:18:29 +0000
commitfdf6b6f52460890305f231c041e060fbb232550b (patch)
tree07f5301bd4b7ce912a38f1b79fded3a1fdf5b804 /src/vnet/fib/fib_entry_cover.c
parentab4fbedf27ece4ea623d7c3b54cc54f0133ba1f7 (diff)
fib: Expressive type for walk return code. Honour code.
Type: improvement Signed-off-by: Neale Ranns <neale.ranns@cisco.com> Change-Id: I487e698555545fce85d02d55deaaf7bb0007e388
Diffstat (limited to 'src/vnet/fib/fib_entry_cover.c')
-rw-r--r--src/vnet/fib/fib_entry_cover.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/vnet/fib/fib_entry_cover.c b/src/vnet/fib/fib_entry_cover.c
index 153bd70a5bf..47bc5c30ce6 100644
--- a/src/vnet/fib/fib_entry_cover.c
+++ b/src/vnet/fib/fib_entry_cover.c
@@ -72,7 +72,7 @@ typedef struct fib_enty_cover_walk_ctx_t_ {
void *ctx;
} fib_enty_cover_walk_ctx_t;
-static int
+static walk_rc_t
fib_entry_cover_walk_node_ptr (fib_node_ptr_t *depend,
void *args)
{
@@ -80,8 +80,7 @@ fib_entry_cover_walk_node_ptr (fib_node_ptr_t *depend,
ctx->walk(ctx->cover, depend->fnp_index, ctx->ctx);
- /* continue */
- return (1);
+ return (WALK_CONTINUE);
}
void
@@ -107,7 +106,7 @@ fib_entry_cover_walk (fib_entry_t *cover,
&ctx);
}
-static int
+static walk_rc_t
fib_entry_cover_change_one (fib_entry_t *cover,
fib_node_index_t covered,
void *args)
@@ -144,8 +143,7 @@ fib_entry_cover_change_one (fib_entry_t *cover,
fib_entry_cover_changed(covered);
}
}
- /* continue */
- return (1);
+ return (WALK_CONTINUE);
}
void
@@ -161,15 +159,14 @@ fib_entry_cover_change_notify (fib_node_index_t cover_index,
uword_to_pointer(covered, void*));
}
-static int
+static walk_rc_t
fib_entry_cover_update_one (fib_entry_t *cover,
fib_node_index_t covered,
void *args)
{
fib_entry_cover_updated(covered);
- /* continue */
- return (1);
+ return (WALK_CONTINUE);
}
void