X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Finterface.c;h=797fe44419a2f0e58cd1bab2d2b5072d91fd7821;hb=048a4e5a000017d0d632ebf02dcc23d9bf9ccf72;hp=9300074927dbebc23ad42e16474273520d169933;hpb=59ae61ee7587502c0446655ecbe3daa296498f56;p=vpp.git diff --git a/src/vnet/interface.c b/src/vnet/interface.c index 9300074927d..797fe44419a 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -1250,6 +1250,10 @@ vnet_interface_init (vlib_main_t * vm) CLIB_CACHE_LINE_BYTES); im->sw_if_counter_lock[0] = 1; /* should be no need */ + /* + * $$$$ add stat segment name(s) if desired + * set xxx.stat_segment_name = "whatever"... + */ vec_validate (im->sw_if_counters, VNET_N_SIMPLE_INTERFACE_COUNTER - 1); im->sw_if_counters[VNET_INTERFACE_COUNTER_DROP].name = "drops"; im->sw_if_counters[VNET_INTERFACE_COUNTER_PUNT].name = "punts";