Message ID | 1424723769-8762-11-git-send-email-robking@cisco.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index 94103e5..0961cce 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -42,6 +42,7 @@ int odp_shm_init_local(void); int odp_pool_init_global(void); int odp_pool_term_global(void); +int odp_pool_term_local(void); int odp_pktio_init_global(void); int odp_pktio_term_global(void); diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index ad36283..29e4b22 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -156,6 +156,11 @@ int odp_term_local(void) rc = -1; } + if (odp_pool_term_local()) { + ODP_ERR("ODP buffer pool local term failed.\n"); + rc = -1; + } + rc_thd = odp_thread_term_local(); if (rc_thd < 0) { ODP_ERR("ODP thread local term failed.\n"); diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 441429a..ef7d7ec 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -123,6 +123,12 @@ int odp_pool_term_global(void) return rc; } +int odp_pool_term_local(void) +{ + _odp_flush_caches(); + return 0; +} + /** * Pool creation */