diff options
author | Ole Troan <ot@cisco.com> | 2018-11-23 23:07:13 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-26 19:53:55 +0000 |
commit | 2152e1cf8b3420d94ba31fe25853977ad945f35a (patch) | |
tree | d47a26f6db134ab823fe240cf7e7464a1f8f4815 /src/vpp | |
parent | 3d2df215bf1de516ffbd8ee3815091ca3c3a492f (diff) |
stats: Remove unneeded dependencies in stat_client
Remove exposing stat_client_main internals and atomics to
simplify use from C++.
Change-Id: Ie864170fee8b4eaa2fd7f98556cf0ebb46cb1a2a
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp')
-rw-r--r-- | src/vpp/stats/stat_segment.c | 2 | ||||
-rw-r--r-- | src/vpp/stats/stat_segment.h | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/vpp/stats/stat_segment.c b/src/vpp/stats/stat_segment.c index 3c5d4ebf2f4..9b6b37b934f 100644 --- a/src/vpp/stats/stat_segment.c +++ b/src/vpp/stats/stat_segment.c @@ -21,7 +21,7 @@ #include <vnet/devices/devices.h> /* vnet_get_aggregate_rx_packets */ #undef HAVE_MEMFD_CREATE #include <vppinfra/linux/syscall.h> - +#include <vpp-api/client/stat_client.h> stat_segment_main_t stat_segment_main; /* diff --git a/src/vpp/stats/stat_segment.h b/src/vpp/stats/stat_segment.h index 21c7c3b0d48..3ce82809255 100644 --- a/src/vpp/stats/stat_segment.h +++ b/src/vpp/stats/stat_segment.h @@ -19,18 +19,7 @@ #include <stdatomic.h> #include <vlib/vlib.h> #include <vppinfra/socket.h> - -/* Default socket to exchange segment fd */ -#define STAT_SEGMENT_SOCKET_FILE "/run/vpp/stats.sock" - -typedef enum -{ - STAT_DIR_TYPE_ILLEGAL = 0, - STAT_DIR_TYPE_SCALAR_INDEX, - STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE, - STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED, - STAT_DIR_TYPE_ERROR_INDEX, -} stat_directory_type_t; +#include <vpp-api/client/stat_client.h> typedef enum { |