diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-01-14 09:14:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-01-14 09:14:02 +0000 |
commit | def98b1a2af5292519b18893133e419e940a850b (patch) | |
tree | 6ee1801da406b91a65bc971b28e5a48c0d166dd9 /hicn-plugin/src/strategies/dpo_rr.c | |
parent | 63312d00f31de987101a3a3edc4939730d269fef (diff) | |
parent | 6a268308c499edf4b5d72531388269114802de29 (diff) |
Merge changes from topic "HICN-475"
* changes:
[HICN-475] Adding multihoming in case the producer is facing the producer
[HICN-474] Enabling print of FIB and TFIB status
Diffstat (limited to 'hicn-plugin/src/strategies/dpo_rr.c')
-rw-r--r-- | hicn-plugin/src/strategies/dpo_rr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hicn-plugin/src/strategies/dpo_rr.c b/hicn-plugin/src/strategies/dpo_rr.c index 027087f7b..447a25c52 100644 --- a/hicn-plugin/src/strategies/dpo_rr.c +++ b/hicn-plugin/src/strategies/dpo_rr.c @@ -134,8 +134,17 @@ format_hicn_strategy_rr_ctx (u8 * s, va_list * ap) s = format (s, "hicn-rr, next hop Face %d", dpo->default_ctx.next_hops[dpo->current_nhop].dpoi_index); + for (i = 0; i < HICN_PARAM_FIB_ENTRY_NHOPS_MAX; i++) { + u8 *buf = NULL; + if (i < dpo->default_ctx.entry_count) + buf = format(NULL, "FIB"); + else if (i >= HICN_PARAM_FIB_ENTRY_NHOPS_MAX - dpo->default_ctx.tfib_entry_count) + buf = format(NULL, "TFIB"); + else + continue; + next_hop = &dpo->default_ctx.next_hops[i]; face_vft = hicn_face_get_vft (next_hop->dpoi_type); if (face_vft != NULL) @@ -144,6 +153,7 @@ format_hicn_strategy_rr_ctx (u8 * s, va_list * ap) s = format (s, "%U ", face_vft->format_face, next_hop->dpoi_index, indent); + s = format (s, " %s", buf); } } |