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
/
gbp
/
gbp_endpoint.c
diff --git
a/src/plugins/gbp/gbp_endpoint.c
b/src/plugins/gbp/gbp_endpoint.c
index
bef6777
..
c6cab3f
100644
(file)
--- a/
src/plugins/gbp/gbp_endpoint.c
+++ b/
src/plugins/gbp/gbp_endpoint.c
@@
-1268,8
+1268,8
@@
gbp_endpoint_show_one (index_t gei, void *ctx)
return (WALK_CONTINUE);
}
return (WALK_CONTINUE);
}
-static
void
-gbp_endpoint_walk_ip_itf (c
onst c
lib_bihash_kv_24_8_t * kvp, void *arg)
+static
int
+gbp_endpoint_walk_ip_itf (clib_bihash_kv_24_8_t * kvp, void *arg)
{
ip46_address_t ip;
vlib_main_t *vm;
{
ip46_address_t ip;
vlib_main_t *vm;
@@
-1283,10
+1283,11
@@
gbp_endpoint_walk_ip_itf (const clib_bihash_kv_24_8_t * kvp, void *arg)
format_ip46_address, &ip, IP46_TYPE_ANY,
format_vnet_sw_if_index_name, vnet_get_main (),
sw_if_index, kvp->value);
format_ip46_address, &ip, IP46_TYPE_ANY,
format_vnet_sw_if_index_name, vnet_get_main (),
sw_if_index, kvp->value);
+ return (BIHASH_WALK_CONTINUE);
}
}
-static
void
-gbp_endpoint_walk_mac_itf (c
onst c
lib_bihash_kv_16_8_t * kvp, void *arg)
+static
int
+gbp_endpoint_walk_mac_itf (clib_bihash_kv_16_8_t * kvp, void *arg)
{
mac_address_t mac;
vlib_main_t *vm;
{
mac_address_t mac;
vlib_main_t *vm;
@@
-1300,6
+1301,7
@@
gbp_endpoint_walk_mac_itf (const clib_bihash_kv_16_8_t * kvp, void *arg)
format_mac_address_t, &mac,
format_vnet_sw_if_index_name, vnet_get_main (),
sw_if_index, kvp->value);
format_mac_address_t, &mac,
format_vnet_sw_if_index_name, vnet_get_main (),
sw_if_index, kvp->value);
+ return (BIHASH_WALK_CONTINUE);
}
static clib_error_t *
}
static clib_error_t *