diff options
author | 2016-12-05 09:50:05 -0500 | |
---|---|---|
committer | 2016-12-05 15:33:51 +0000 | |
commit | 6d963c272cb59cbcb41a2f2c7e01834a80fad683 (patch) | |
tree | 4cd6e9245731df4621ca0b8916f16500e0d3b5a1 /vpp/stats/stats.c | |
parent | 6dcda02dd89e570118d5468a3226e80968d36f18 (diff) |
Move interface APIs to vnet/vnet/{interface.api,interface_api.c}
Change-Id: If3f0f73ad1c1d54ac69122052c977eb83a9e16eb
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp/stats/stats.c')
-rw-r--r-- | vpp/stats/stats.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vpp/stats/stats.c b/vpp/stats/stats.c index ee9a6a6d..c46e2d5a 100644 --- a/vpp/stats/stats.c +++ b/vpp/stats/stats.c @@ -88,6 +88,13 @@ dslock (stats_main_t * sm, int release_hint, int tag) } void +stats_dslock_with_hint (int hint, int tag) +{ + stats_main_t *sm = &stats_main; + dslock (sm, hint, tag); +} + +void dsunlock (stats_main_t * sm) { u32 thread_id; @@ -108,6 +115,13 @@ dsunlock (stats_main_t * sm) } } +void +stats_dsunlock (int hint, int tag) +{ + stats_main_t *sm = &stats_main; + dsunlock (sm); +} + static void do_simple_interface_counters (stats_main_t * sm) { |