aboutsummaryrefslogtreecommitdiffstats
path: root/vpp/stats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-12-05 09:50:05 -0500
committerDave Barach <openvpp@barachs.net>2016-12-05 15:33:51 +0000
commit6d963c272cb59cbcb41a2f2c7e01834a80fad683 (patch)
tree4cd6e9245731df4621ca0b8916f16500e0d3b5a1 /vpp/stats
parent6dcda02dd89e570118d5468a3226e80968d36f18 (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')
-rw-r--r--vpp/stats/stats.c14
-rw-r--r--vpp/stats/stats.h7
2 files changed, 15 insertions, 6 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)
{
diff --git a/vpp/stats/stats.h b/vpp/stats/stats.h
index d6b4724a..118115be 100644
--- a/vpp/stats/stats.h
+++ b/vpp/stats/stats.h
@@ -24,12 +24,7 @@
#include <vlib/unix/unix.h>
#include <vlibmemory/api.h>
#include <vlibmemory/unix_shared_memory_queue.h>
-
-typedef struct
-{
- u32 client_index; /* in memclnt registration pool */
- u32 client_pid;
-} vpe_client_registration_t;
+#include <vlibapi/api_helper_macros.h>
typedef struct
{