aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-06-06 15:09:05 +0300
committerMatias Elo <matias.elo@nokia.com>2022-06-20 16:13:54 +0300
commit6d365eb66573c4cd7fab868bd69395cc9acdc123 (patch)
treea1de51fcf09a60bd14c260bb7c5dd44630193828 /platform/linux-dpdk
parent2156fa3a50bb7f9bef27954ae2f2db83ec1fbe26 (diff)
linux-dpdk: pool: header include clean-up
Add missing, remove unnecessary, and group existing includes. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk')
-rw-r--r--platform/linux-dpdk/odp_pool.c42
1 files changed, 20 insertions, 22 deletions
diff --git a/platform/linux-dpdk/odp_pool.c b/platform/linux-dpdk/odp_pool.c
index 3f8aea9bb..d121b8253 100644
--- a/platform/linux-dpdk/odp_pool.c
+++ b/platform/linux-dpdk/odp_pool.c
@@ -5,43 +5,41 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include <odp/api/std_types.h>
+#include <odp/api/align.h>
+#include <odp/api/hints.h>
#include <odp/api/pool.h>
-#include <odp_pool_internal.h>
-#include <odp_buffer_internal.h>
-#include <odp_packet_internal.h>
-#include <odp_timer_internal.h>
-
#include <odp/api/shared_memory.h>
-#include <odp/api/align.h>
-#include <odp_init_internal.h>
+#include <odp/api/std_types.h>
+
+#include <odp/api/plat/pool_inline_types.h>
+
+#include <odp_buffer_internal.h>
#include <odp_config_internal.h>
-#include <odp/api/hints.h>
-#include <odp/api/debug.h>
#include <odp_debug_internal.h>
-#include <odp_macros_internal.h>
-#include <odp/api/cpumask.h>
-#include <odp_libconfig_internal.h>
#include <odp_event_vector_internal.h>
-
-#include <string.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <math.h>
-#include <inttypes.h>
-
-#include <odp/api/plat/pool_inline_types.h>
+#include <odp_init_internal.h>
+#include <odp_libconfig_internal.h>
+#include <odp_macros_internal.h>
+#include <odp_packet_internal.h>
+#include <odp_pool_internal.h>
+#include <odp_timer_internal.h>
#include <rte_config.h>
#include <rte_errno.h>
+#include <rte_malloc.h>
#include <rte_mempool.h>
#include <rte_mbuf_pool_ops.h>
-#include <rte_malloc.h>
/* ppc64 rte_memcpy.h (included through rte_mempool.h) may define vector */
#if defined(__PPC64__) && defined(vector)
#undef vector
#endif
+#include <inttypes.h>
+#include <math.h>
+#include <stddef.h>
+#include <stdlib.h>
+#include <string.h>
+
#ifdef POOL_USE_TICKETLOCK
#include <odp/api/ticketlock.h>
#define LOCK(a) odp_ticketlock_lock(a)