summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2017-08-17 13:33:15 -0700
committerFlorin Coras <florin.coras@gmail.com>2017-08-18 16:45:36 +0000
commit8ea8916bb8fa85b298e0e5700ba15e4455235015 (patch)
tree67a421a4673ae38854fd94728ac40e1783b19a29 /src
parentb17f4c3ca7e5af281cf0f6fec5ec50b1e59db9c4 (diff)
IP4_FIB stats API not indexing after FIB changes - VPP-951
Change-Id: I9ec36ee82ddd8f2f7a551b458e19b2fbae4aa7e7 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/stats/stats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vpp/stats/stats.c b/src/vpp/stats/stats.c
index 422b7b3b7fe..b0fac73dbe7 100644
--- a/src/vpp/stats/stats.c
+++ b/src/vpp/stats/stats.c
@@ -647,9 +647,11 @@ again:
vec_foreach (r, routes)
{
vlib_counter_t c;
+ const dpo_id_t *dpo_id;
+ dpo_id = fib_entry_contribute_ip_forwarding(r->index);
vlib_get_combined_counter (&load_balance_main.lbm_to_counters,
- r->index, &c);
+ (u32)dpo_id->dpoi_index, &c);
/*
* If it has actually
* seen at least one packet, send it.