diff options
author | Dave Barach <dave@barachs.net> | 2016-08-05 18:09:54 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-08-05 18:10:06 -0400 |
commit | a8d77eda738855480c3028664028c7a448d52424 (patch) | |
tree | c3e30344155ab5aef053e2dd57bc89bb1349bda3 /vpp/stats/stats.h | |
parent | 310f7fe7a60467569f9d62d97847bc36dd5eb4ca (diff) |
VPP-237 Coding standards cleanup
Change-Id: I239143f920285050ad85244ece6893236195534f
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp/stats/stats.h')
-rw-r--r-- | vpp/stats/stats.h | 67 |
1 files changed, 39 insertions, 28 deletions
diff --git a/vpp/stats/stats.h b/vpp/stats/stats.h index d6046a42..d6b4724a 100644 --- a/vpp/stats/stats.h +++ b/vpp/stats/stats.h @@ -25,46 +25,57 @@ #include <vlibmemory/api.h> #include <vlibmemory/unix_shared_memory_queue.h> -typedef struct { - u32 client_index; /* in memclnt registration pool */ - u32 client_pid; +typedef struct +{ + u32 client_index; /* in memclnt registration pool */ + u32 client_pid; } vpe_client_registration_t; -typedef struct { - volatile u32 lock; - volatile u32 release_hint; - u32 thread_id; - u32 count; - int tag; +typedef struct +{ + volatile u32 lock; + volatile u32 release_hint; + u32 thread_id; + u32 count; + int tag; } data_structure_lock_t; -typedef struct { - void *mheap; - pthread_t thread_self; - pthread_t thread_handle; +typedef struct +{ + void *mheap; + pthread_t thread_self; + pthread_t thread_handle; - u32 stats_poll_interval_in_seconds; - u32 enable_poller; + u32 stats_poll_interval_in_seconds; + u32 enable_poller; - uword *stats_registration_hash; - vpe_client_registration_t *stats_registrations; + uword *stats_registration_hash; + vpe_client_registration_t *stats_registrations; - /* control-plane data structure lock */ - data_structure_lock_t * data_structure_lock; + /* control-plane data structure lock */ + data_structure_lock_t *data_structure_lock; - /* bail out of FIB walk if set */ - clib_longjmp_t jmp_buf; + /* bail out of FIB walk if set */ + clib_longjmp_t jmp_buf; - /* convenience */ - vlib_main_t * vlib_main; - vnet_main_t * vnet_main; - vnet_interface_main_t * interface_main; - api_main_t * api_main; + /* convenience */ + vlib_main_t *vlib_main; + vnet_main_t *vnet_main; + vnet_interface_main_t *interface_main; + api_main_t *api_main; } stats_main_t; stats_main_t stats_main; -void dslock (stats_main_t *sm, int release_hint, int tag); -void dsunlock (stats_main_t *sm); +void dslock (stats_main_t * sm, int release_hint, int tag); +void dsunlock (stats_main_t * sm); #endif /* __included_stats_h__ */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |