diff options
author | Neale Ranns <nranns@cisco.com> | 2018-03-29 01:28:09 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-04-04 13:40:39 +0000 |
commit | 871dc4287d8c05ff76106dba4f5f8654c24347fe (patch) | |
tree | 97f6026e284f8cb570855f47512b22a0b58112d1 /src/vnet/interface_api.c | |
parent | 6df19030f2bf986f1876c2c46b44c046b9b2c686 (diff) |
Detailed stats collection feature
Use device-input and interface-output feautre arcs to collect unicast, multicast
and broadcast states for RX and TX resp. Since these feature arcs are present only
for 'physical' interfaces (i.e. not su-interfaces) counter collection is supported
only on parent interface types.
Change-Id: I915c235e336b0fc3a3c3de918f95dd674e4e0e4e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/interface_api.c')
-rw-r--r-- | src/vnet/interface_api.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index 3d9bb30f142..8d982e36b73 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -1177,14 +1177,9 @@ static void vl_api_collect_detailed_interface_stats_reply_t *rmp; int rv = 0; - if (mp->enable_disable) - { - collect_detailed_interface_stats_flag_set (); - } - else - { - collect_detailed_interface_stats_flag_clear (); - } + rv = + vnet_sw_interface_stats_collect_enable_disable (ntohl (mp->sw_if_index), + mp->enable_disable); REPLY_MACRO (VL_API_COLLECT_DETAILED_INTERFACE_STATS_REPLY); } |