diff options
author | Matias Elo <matias.elo@nokia.com> | 2018-11-22 12:10:23 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-12-03 18:37:33 +0300 |
commit | 294856cc30d48d57e12485076bae49da36d346ed (patch) | |
tree | 29ec839552880c1e73fa8cc339b2035f456e9f87 /platform/linux-generic/include/odp_traffic_mngr_internal.h | |
parent | 6b79ac4b1640e8050b076ba0ecb590cc297320b0 (diff) |
linux-gen: traffic_mngr: move tm_schedulers_obj_t inside tm_node_obj_t
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-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.h | 4 |
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 199bfbb67..3dc212c23 100644 --- a/platform/linux-generic/include/odp_traffic_mngr_internal.h +++ b/platform/linux-generic/include/odp_traffic_mngr_internal.h @@ -258,7 +258,7 @@ typedef struct { uint8_t num_priorities; uint8_t highest_priority; uint8_t locked; - tm_sched_state_t sched_states[0]; + tm_sched_state_t sched_states[ODP_TM_MAX_PRIORITIES]; } tm_schedulers_obj_t; struct tm_queue_obj_s { @@ -294,7 +294,7 @@ struct tm_queue_obj_s { struct tm_node_obj_s { void *user_context; tm_wred_node_t *tm_wred_node; - tm_schedulers_obj_t *schedulers_obj; + tm_schedulers_obj_t schedulers_obj; tm_shaper_obj_t *fanin_list_head; tm_shaper_obj_t *fanin_list_tail; tm_shaper_obj_t shaper_obj; |