summaryrefslogtreecommitdiffstats
path: root/src/vpp/stats/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp/stats/stats.c')
-rw-r--r--src/vpp/stats/stats.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vpp/stats/stats.c b/src/vpp/stats/stats.c
index 5eea25e4464..25b8c184546 100644
--- a/src/vpp/stats/stats.c
+++ b/src/vpp/stats/stats.c
@@ -2154,11 +2154,9 @@ udp_encap_stats_walk_cb (index_t uei, void *arg)
vl_api_udp_encap_counter_t *stat;
udp_encap_t *ue;
- ue = udp_encap_get (uei);
vec_add2 (ctx->stats, stat, 1);
- stat->id = ue->ue_id;
- udp_encap_get_stats (ue->ue_id, &stat->packets, &stat->bytes);
+ udp_encap_get_stats (uei, &stat->packets, &stat->bytes);
return (WALK_CONTINUE);
}