aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_traffic_mngr_internal.h
diff options
context:
space:
mode:
authorBarry Spinney <spinney@mellanox.com>2016-05-20 11:17:12 -0400
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-05-24 17:15:22 +0300
commit242759cfb1dba52b17d76733c3d4a538eb5bec0f (patch)
treed19ae379d0d53d37e2abc8eb1a9318fce0ea309c /platform/linux-generic/include/odp_traffic_mngr_internal.h
parent618065ec07a2cfc1a7cc309a220b9527f697a128 (diff)
linux-generic: traffic-mngr: 32-bit platform fixes
Fixed some coverity warnings. Changed all 32-bit atomic variables to be 64 bit. Add PRIu64 and PRIX64 macros and other 32-bit platform fixes. Changed timer_wheel API to use uint64_t for user data instead of void *, which makes it easier to support 32-bit platforms. Added code to affinitize the tm_thread as well as the main thread. Signed-off-by: Barry Spinney <spinney@mellanox.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_traffic_mngr_internal.h')
-rw-r--r--platform/linux-generic/include/odp_traffic_mngr_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-generic/include/odp_traffic_mngr_internal.h b/platform/linux-generic/include/odp_traffic_mngr_internal.h
index 90036dee7..30a62ff1e 100644
--- a/platform/linux-generic/include/odp_traffic_mngr_internal.h
+++ b/platform/linux-generic/include/odp_traffic_mngr_internal.h
@@ -311,7 +311,7 @@ typedef struct {
uint64_t total_enqueues;
uint64_t enqueue_fail_cnt;
uint64_t total_dequeues;
- odp_atomic_u32_t queue_cnt;
+ odp_atomic_u64_t queue_cnt;
uint32_t peak_cnt;
uint32_t head_idx;
uint32_t tail_idx;
@@ -351,7 +351,7 @@ typedef struct {
odp_ticketlock_t tm_system_lock;
odp_barrier_t tm_system_barrier;
odp_barrier_t tm_system_destroy_barrier;
- odp_atomic_u32_t destroying;
+ odp_atomic_u64_t destroying;
_odp_int_name_t name_tbl_id;
void *trace_buffer;