X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdpo%2Freplicate_dpo.c;h=6742bff41aa6bf58cda1462e76e32e8834a5ad12;hb=2fd4b56aea5833a4752525d58cac335909190e9c;hp=95d7f9748abc4c304fa6599bec0937bb513b48e1;hpb=f051072f8518097cbce1a8a20510c4e43cb7167c;p=vpp.git diff --git a/src/vnet/dpo/replicate_dpo.c b/src/vnet/dpo/replicate_dpo.c index 95d7f9748ab..6742bff41aa 100644 --- a/src/vnet/dpo/replicate_dpo.c +++ b/src/vnet/dpo/replicate_dpo.c @@ -59,7 +59,12 @@ replicate_t *replicate_pool; /** * The one instance of replicate main */ -replicate_main_t replicate_main; +replicate_main_t replicate_main = { + .repm_counters = { + .name = "mroutes", + .stat_segment_name = "/net/mroute", + }, +}; static inline index_t replicate_get_index (const replicate_t *rep) @@ -690,11 +695,15 @@ replicate_inline (vlib_main_t * vm, next0 = dpo0->dpoi_next_node; vnet_buffer (c0)->ip.adj_index[VLIB_TX] = dpo0->dpoi_index; - if (PREDICT_FALSE(c0->flags & VLIB_BUFFER_IS_TRACED)) + if (PREDICT_FALSE(b0->flags & VLIB_BUFFER_IS_TRACED)) { replicate_trace_t *t; - vlib_trace_buffer (vm, node, next0, c0, 0); + if (c0 != b0) + { + vlib_buffer_copy_trace_flag (vm, b0, ci0); + VLIB_BUFFER_TRACE_TRAJECTORY_INIT (c0); + } t = vlib_add_trace (vm, node, c0, sizeof (*t)); t->rep_index = repi0; t->dpo = *dpo0;