Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: bihash walk cb typedef and continue/stop controls
[vpp.git]
/
src
/
plugins
/
pppoe
/
pppoe.c
diff --git
a/src/plugins/pppoe/pppoe.c
b/src/plugins/pppoe/pppoe.c
index
1f8a728
..
46faa1f
100644
(file)
--- a/
src/plugins/pppoe/pppoe.c
+++ b/
src/plugins/pppoe/pppoe.c
@@
-628,7
+628,7
@@
typedef struct pppoe_show_walk_ctx_t_
u32 total_entries;
} pppoe_show_walk_ctx_t;
u32 total_entries;
} pppoe_show_walk_ctx_t;
-static
void
+static
int
pppoe_show_walk_cb (BVT (clib_bihash_kv) * kvp, void *arg)
{
pppoe_show_walk_ctx_t *ctx = arg;
pppoe_show_walk_cb (BVT (clib_bihash_kv) * kvp, void *arg)
{
pppoe_show_walk_ctx_t *ctx = arg;
@@
-656,6
+656,8
@@
pppoe_show_walk_cb (BVT (clib_bihash_kv) * kvp, void *arg)
result.fields.session_index == ~0
? -1 : result.fields.session_index);
ctx->total_entries++;
result.fields.session_index == ~0
? -1 : result.fields.session_index);
ctx->total_entries++;
+
+ return (BIHASH_WALK_CONTINUE);
}
/** Display the contents of the PPPoE Fib. */
}
/** Display the contents of the PPPoE Fib. */