diff options
author | Barry Spinney <spinney@ezchip.com> | 2016-02-25 22:02:02 -0600 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-03-04 13:24:49 +0300 |
commit | 464579c6f941577443f6be8d2d7c17ffd1e1bf54 (patch) | |
tree | 91e8529e2a29acdd3beada0f12c3d38eafa9377e /platform/linux-generic/odp_init.c | |
parent | 46a01f019481e8885b1be0f62adcfcb825d121fa (diff) |
linux-generic: tm: Add missing name table initialization call.
This patch adds a call from odp_init.c to _odp_int_name_tbl_init().
Signed-off-by: Barry Spinney <spinney@ezchip.com>
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/odp_init.c')
-rw-r--r-- | platform/linux-generic/odp_init.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 769cc8d22..b94a4b210 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -96,7 +96,13 @@ int odp_init_global(const odp_init_t *params, if (odp_tm_init_global()) { ODP_ERR("ODP traffic manager init failed\n"); - return -1; + goto init_failed; + } + stage = TRAFFIC_MNGR_INIT; + + if (_odp_int_name_tbl_init_global()) { + ODP_ERR("ODP name table init failed\n"); + goto init_failed; } return 0; @@ -117,10 +123,19 @@ int _odp_term_global(enum init_stage stage) switch (stage) { case ALL_INIT: + case NAME_TABLE_INIT: + if (_odp_int_name_tbl_term_global()) { + ODP_ERR("Name table term failed.\n"); + rc = -1; + } + /* Fall through */ + + case TRAFFIC_MNGR_INIT: + /* Fall through */ case CLASSIFICATION_INIT: if (odp_classification_term_global()) { - ODP_ERR("ODP classificatio term failed.\n"); + ODP_ERR("ODP classification term failed.\n"); rc = -1; } /* Fall through */ |