From patchwork Mon Oct 23 11:10:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 116724 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4561621qgn; Mon, 23 Oct 2017 05:02:12 -0700 (PDT) X-Received: by 10.55.17.33 with SMTP id b33mr18523297qkh.58.1508760132271; Mon, 23 Oct 2017 05:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508760132; cv=none; d=google.com; s=arc-20160816; b=arN/g2Y6ptjrU038iTz6M2mQSfdVCwv2wgpl2327poncBIzusd/tnm7wf4p2QOF9Nn aYobFYRmPiFjpOrGzDpT1rISWRerNDZhiICCoUdn6IQOZOeFYoQd18kvGk4zsX/amQd7 1DkckPnqV+vpGOW/JYGAAyK8cINZc5P7UR/eBpOEsPPYRKOuu13fGdSgaFGKu/FTCDq4 +HD/AjAlvM7D2d7i2J1OhbYe0icZJ8PnjiMeYo5RgC8FPpkQSDTzfGZVfNfF9E4FaK3q nw+4LnfEUVD3kLTKg00L3+OsW619VByXSsRZUtdRUexsRL1HsWGyLGASEOunfZE75yCW ashg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=9nrZOKq5Ztx8TGZ2+3aTNV6pZZdRlYW/TjSwlcUE1+Q=; b=RMu/gwgCZMiiwl94BuzRg2a7yskyoHDMNZPRKgrOsel9M5R2Ny50UQSWSTnp9uIyd6 pHZdeDadQzYP9Xs9VHWk3d9jmxVkyyq/4sjgTJB226D1PPkJe6vcqZuSFl6EuTvr9UOI MAAg5FzxynN9ivYdalYbFneSIP8yoVABFQum8bTr0hBCW8wwXViqcXPPpiAlpWzhbKbO f2SvbUl7B0KkOKWC1xY3Nq6Z7rzMjM8WUAQWVYKs0H8a/zINxxfe1Dcsb/rXKFaEzaj4 Pot2/+2wGl8nyY6cDh+z18WoYaygvM+3/BxmJChUTo+lWjnmHLE3foUNDAfKqI02bEWw RI6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id t204si826173qke.42.2017.10.23.05.02.12; Mon, 23 Oct 2017 05:02:12 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E95FC61617; Mon, 23 Oct 2017 12:02:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7E6CB6290B; Mon, 23 Oct 2017 11:16:27 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6DFE06228A; Mon, 23 Oct 2017 11:16:19 +0000 (UTC) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by lists.linaro.org (Postfix) with ESMTPS id 743B86228A for ; Mon, 23 Oct 2017 11:11:35 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id 90so19650875lfs.13 for ; Mon, 23 Oct 2017 04:11:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9nrZOKq5Ztx8TGZ2+3aTNV6pZZdRlYW/TjSwlcUE1+Q=; b=B0TaLrDrn1kztG4YxwzhNmf2Wmg2/m49mvLY/IQRevbtPpuZypkTglyqtMHNADCHsA D+D9TtoC0xyCdOl5Br08YniXlY48APTGvJs7o6FwIzzPvQU8FYMyIWG3EX5y8jefliNT At0tKSaZxXrMDnnawM7WdgzRISBcdv/Lf4OEx6rzWXYHVUvC/Y/nvhZ+INklzRYPcHZe yn5Fm503aJMUgtULuo3IG2mqDzEyF9H3kDWzoH4oRMeygUad8KhTVXgSyQGFcJTFYDXp IBuwOy6Fd77WNs9LQMlHsMxY/75DUB2ua+gyvp1XM66ZgDjCBxkoZRBnQq8//07BeIV4 K4qA== X-Gm-Message-State: AMCzsaX/005TBKGHOGIwHo7dnsEWu8RBkxglDu+ybVx5cer4BpltnhlO ZRxTAwfoN/OBB9RVVkKPiYdFiyNUqh81Ww== X-Google-Smtp-Source: ABhQp+Sk7psL44KClfygcLWw15w9KheA9HrzFiOkF9Oj1MfybggLSsNyjdyf/y534DezqCPe7pWKrw== X-Received: by 10.46.58.17 with SMTP id h17mr5289275lja.194.1508757093926; Mon, 23 Oct 2017 04:11:33 -0700 (PDT) Received: from rhovanion.lumag.spb.ru ([94.25.228.135]) by smtp.gmail.com with ESMTPSA id i66sm1854643lji.51.2017.10.23.04.11.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 04:11:33 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 23 Oct 2017 14:10:52 +0300 Message-Id: <20171023111057.6328-25-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171023111057.6328-1-dmitry.ereminsolenikov@linaro.org> References: <20171023111057.6328-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 24/29] linux-gen, include: switch packet headers to api+abi X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Dmitry Eremin-Solenikov --- include/Makefile.am | 6 ++ .../include => include}/odp/api/classification.h | 2 +- .../include => include}/odp/api/crypto.h | 2 +- .../include => include}/odp/api/packet.h | 11 +--- .../include => include}/odp/api/packet_flags.h | 9 +-- .../include => include}/odp/api/packet_io.h | 6 +- .../include => include}/odp/api/packet_io_stats.h | 4 +- platform/linux-generic/Makefile.am | 12 ++-- .../linux-generic/include-abi/odp/api/abi/packet.h | 68 ++++++++++++++++++++++ .../include-abi/odp/api/abi/packet_flags.h | 27 +++++++++ .../include/odp/api/plat/packet_flag_inlines.h | 19 +----- .../plat/{packet_types.h => packet_inline_types.h} | 53 +---------------- .../include/odp/api/plat/packet_inlines.h | 27 +++------ .../linux-generic/include/odp_packet_internal.h | 3 +- platform/linux-generic/odp_packet.c | 2 +- platform/linux-generic/pktio/dpdk.c | 2 +- platform/linux-generic/pktio/netmap.c | 2 +- 17 files changed, 136 insertions(+), 119 deletions(-) rename {platform/linux-generic/include => include}/odp/api/classification.h (93%) rename {platform/linux-generic/include => include}/odp/api/crypto.h (92%) rename {platform/linux-generic/include => include}/odp/api/packet.h (67%) rename {platform/linux-generic/include => include}/odp/api/packet_flags.h (59%) rename {platform/linux-generic/include => include}/odp/api/packet_io.h (83%) rename {platform/linux-generic/include => include}/odp/api/packet_io_stats.h (79%) create mode 100644 platform/linux-generic/include-abi/odp/api/abi/packet.h create mode 100644 platform/linux-generic/include-abi/odp/api/abi/packet_flags.h rename platform/linux-generic/include/odp/api/plat/{packet_types.h => packet_inline_types.h} (76%) -- 2.14.2 diff --git a/include/Makefile.am b/include/Makefile.am index addf4bc92261..4ef4d89185d0 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -10,8 +10,10 @@ odpapiinclude_HEADERS = \ odp/api/buffer.h \ odp/api/byteorder.h \ odp/api/chksum.h \ + odp/api/classification.h \ odp/api/compiler.h \ odp/api/cpumask.h \ + odp/api/crypto.h \ odp/api/deprecated.h \ odp/api/errno.h \ odp/api/event.h \ @@ -20,6 +22,10 @@ odpapiinclude_HEADERS = \ odp/api/hints.h \ odp/api/init.h \ odp/api/ipsec.h \ + odp/api/packet.h \ + odp/api/packet_flags.h \ + odp/api/packet_io.h \ + odp/api/packet_io_stats.h \ odp/api/pool.h \ odp/api/queue.h \ odp/api/random.h \ diff --git a/platform/linux-generic/include/odp/api/classification.h b/include/odp/api/classification.h similarity index 93% rename from platform/linux-generic/include/odp/api/classification.h rename to include/odp/api/classification.h index 01be7063d102..ecdf92031d0a 100644 --- a/platform/linux-generic/include/odp/api/classification.h +++ b/include/odp/api/classification.h @@ -20,7 +20,7 @@ extern "C" { #include #include #include -#include +#include #include #include diff --git a/platform/linux-generic/include/odp/api/crypto.h b/include/odp/api/crypto.h similarity index 92% rename from platform/linux-generic/include/odp/api/crypto.h rename to include/odp/api/crypto.h index ead28eab0bfc..3f4104677201 100644 --- a/platform/linux-generic/include/odp/api/crypto.h +++ b/include/odp/api/crypto.h @@ -18,7 +18,7 @@ extern "C" { #endif #include -#include +#include #include #include #include diff --git a/platform/linux-generic/include/odp/api/packet.h b/include/odp/api/packet.h similarity index 67% rename from platform/linux-generic/include/odp/api/packet.h rename to include/odp/api/packet.h index 5d744df544d6..88c4f0278c84 100644 --- a/platform/linux-generic/include/odp/api/packet.h +++ b/include/odp/api/packet.h @@ -10,8 +10,8 @@ * ODP packet descriptor */ -#ifndef ODP_PLAT_PACKET_H_ -#define ODP_PLAT_PACKET_H_ +#ifndef ODP_API_PACKET_H_ +#define ODP_API_PACKET_H_ #ifdef __cplusplus extern "C" { @@ -20,15 +20,10 @@ extern "C" { #include #include #include -#include +#include #include #include -#include -#if ODP_ABI_COMPAT == 0 -#include -#endif - #include #ifdef __cplusplus diff --git a/platform/linux-generic/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h similarity index 59% rename from platform/linux-generic/include/odp/api/packet_flags.h rename to include/odp/api/packet_flags.h index 1e55af823736..2b3006b5192c 100644 --- a/platform/linux-generic/include/odp/api/packet_flags.h +++ b/include/odp/api/packet_flags.h @@ -10,17 +10,14 @@ * ODP packet flags */ -#ifndef ODP_PLAT_PACKET_FLAGS_H_ -#define ODP_PLAT_PACKET_FLAGS_H_ +#ifndef ODP_API_PACKET_FLAGS_H_ +#define ODP_API_PACKET_FLAGS_H_ #ifdef __cplusplus extern "C" { #endif -#include -#if ODP_ABI_COMPAT == 0 -#include -#endif +#include #include diff --git a/platform/linux-generic/include/odp/api/packet_io.h b/include/odp/api/packet_io.h similarity index 83% rename from platform/linux-generic/include/odp/api/packet_io.h rename to include/odp/api/packet_io.h index 9107685a36dc..a854d7b987b0 100644 --- a/platform/linux-generic/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -10,8 +10,8 @@ * ODP Packet IO */ -#ifndef ODP_PLAT_PACKET_IO_H_ -#define ODP_PLAT_PACKET_IO_H_ +#ifndef ODP_API_PACKET_IO_H_ +#define ODP_API_PACKET_IO_H_ #ifdef __cplusplus extern "C" { @@ -20,7 +20,7 @@ extern "C" { #include #include #include -#include +#include #include #include diff --git a/platform/linux-generic/include/odp/api/packet_io_stats.h b/include/odp/api/packet_io_stats.h similarity index 79% rename from platform/linux-generic/include/odp/api/packet_io_stats.h rename to include/odp/api/packet_io_stats.h index a9cd9535e610..b2b32075ea22 100644 --- a/platform/linux-generic/include/odp/api/packet_io_stats.h +++ b/include/odp/api/packet_io_stats.h @@ -10,8 +10,8 @@ * ODP packet IO stats */ -#ifndef ODP_PLAT_PACKET_IO_STATS_H_ -#define ODP_PLAT_PACKET_IO_STATS_H_ +#ifndef ODP_API_PACKET_IO_STATS_H_ +#define ODP_API_PACKET_IO_STATS_H_ #ifdef __cplusplus extern "C" { diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 14b449ea42c1..f2454ac51fff 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -20,14 +20,8 @@ odpinclude_HEADERS = \ odpapiincludedir= $(includedir)/odp/api odpapiinclude_HEADERS = \ include/odp/api/align.h \ - include/odp/api/classification.h \ include/odp/api/cpu.h \ - include/odp/api/crypto.h \ - include/odp/api/debug.h \ - include/odp/api/packet_flags.h \ - include/odp/api/packet.h \ - include/odp/api/packet_io.h \ - include/odp/api/packet_io_stats.h + include/odp/api/debug.h odpapiplatincludedir= $(includedir)/odp/api/plat odpapiplatinclude_HEADERS = \ @@ -35,9 +29,9 @@ odpapiplatinclude_HEADERS = \ include/odp/api/plat/byteorder_inlines.h \ include/odp/api/plat/packet_flag_inlines.h \ include/odp/api/plat/packet_flag_inlines_api.h \ + include/odp/api/plat/packet_inline_types.h \ include/odp/api/plat/packet_inlines.h \ include/odp/api/plat/packet_inlines_api.h \ - include/odp/api/plat/packet_types.h \ include/odp/api/plat/std_clib_inlines.h \ include/odp/api/plat/strong_types.h \ include/odp/api/plat/sync_inlines.h \ @@ -60,6 +54,8 @@ odpapiabiarchinclude_HEADERS = \ include-abi/odp/api/abi/event.h \ include-abi/odp/api/abi/init.h \ include-abi/odp/api/abi/ipsec.h \ + include-abi/odp/api/abi/packet.h \ + include-abi/odp/api/abi/packet_flags.h \ include-abi/odp/api/abi/packet_io.h \ include-abi/odp/api/abi/pool.h \ include-abi/odp/api/abi/queue.h \ diff --git a/platform/linux-generic/include-abi/odp/api/abi/packet.h b/platform/linux-generic/include-abi/odp/api/abi/packet.h new file mode 100644 index 000000000000..31d446f8dd9f --- /dev/null +++ b/platform/linux-generic/include-abi/odp/api/abi/packet.h @@ -0,0 +1,68 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP packet descriptor + */ + +#ifndef ODP_API_ABI_PACKET_H_ +#define ODP_API_ABI_PACKET_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +/** @ingroup odp_packet + * @{ + */ + +typedef ODP_HANDLE_T(odp_packet_t); + +#define ODP_PACKET_INVALID _odp_cast_scalar(odp_packet_t, 0) + +#define ODP_PACKET_OFFSET_INVALID 0xffff + +typedef uint8_t odp_packet_seg_t; + +static inline uint8_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg) +{ + return (uint8_t)seg; +} + +static inline odp_packet_seg_t _odp_packet_seg_from_ndx(uint8_t ndx) +{ + return (odp_packet_seg_t)ndx; +} + +#define ODP_PACKET_SEG_INVALID ((odp_packet_seg_t)-1) + +typedef enum { + ODP_PACKET_GREEN = 0, + ODP_PACKET_YELLOW = 1, + ODP_PACKET_RED = 2, + ODP_PACKET_ALL_COLORS = 3, +} odp_packet_color_t; + +#define ODP_NUM_PACKET_COLORS 3 + +#include +#include +#include + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/platform/linux-generic/include-abi/odp/api/abi/packet_flags.h b/platform/linux-generic/include-abi/odp/api/abi/packet_flags.h new file mode 100644 index 000000000000..9a8474a33eda --- /dev/null +++ b/platform/linux-generic/include-abi/odp/api/abi/packet_flags.h @@ -0,0 +1,27 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP packet descriptor + */ + +#ifndef ODP_API_ABI_PACKET_FLAGS_H_ +#define ODP_API_ABI_PACKET_FLAGS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/platform/linux-generic/include/odp/api/plat/packet_flag_inlines.h b/platform/linux-generic/include/odp/api/plat/packet_flag_inlines.h index 42003e3179ea..3212248f336c 100644 --- a/platform/linux-generic/include/odp/api/plat/packet_flag_inlines.h +++ b/platform/linux-generic/include/odp/api/plat/packet_flag_inlines.h @@ -13,7 +13,8 @@ #ifndef _ODP_PLAT_PACKET_FLAG_INLINES_H_ #define _ODP_PLAT_PACKET_FLAG_INLINES_H_ -#include +#include +#include #include /** @internal Inline function offsets */ @@ -70,20 +71,4 @@ static inline int _odp_packet_has_ts(odp_packet_t pkt) return flags.timestamp; } -/* Include inlined versions of API functions */ -#include -#if ODP_ABI_COMPAT == 0 - -/** @ingroup odp_packet - * @{ - */ - -#include - -/** - * @} - */ - -#endif - #endif diff --git a/platform/linux-generic/include/odp/api/plat/packet_types.h b/platform/linux-generic/include/odp/api/plat/packet_inline_types.h similarity index 76% rename from platform/linux-generic/include/odp/api/plat/packet_types.h rename to platform/linux-generic/include/odp/api/plat/packet_inline_types.h index 68c66312b2f3..0bfd0241331a 100644 --- a/platform/linux-generic/include/odp/api/plat/packet_types.h +++ b/platform/linux-generic/include/odp/api/plat/packet_inline_types.h @@ -11,61 +11,14 @@ * ODP packet descriptor */ -#ifndef ODP_PACKET_TYPES_H_ -#define ODP_PACKET_TYPES_H_ +#ifndef ODP_PACKET_INLINE_TYPES_H_ +#define ODP_PACKET_INLINE_TYPES_H_ #ifdef __cplusplus extern "C" { #endif -#include - -#include -#if ODP_ABI_COMPAT == 1 -#include -#else - -#include -#include - -/** @ingroup odp_packet - * @{ - */ - -typedef ODP_HANDLE_T(odp_packet_t); - -#define ODP_PACKET_INVALID _odp_cast_scalar(odp_packet_t, 0) - -#define ODP_PACKET_OFFSET_INVALID 0xffff - -typedef uint8_t odp_packet_seg_t; - -static inline uint8_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg) -{ - return (uint8_t)seg; -} - -static inline odp_packet_seg_t _odp_packet_seg_from_ndx(uint8_t ndx) -{ - return (odp_packet_seg_t)ndx; -} - -#define ODP_PACKET_SEG_INVALID ((odp_packet_seg_t)-1) - -typedef enum { - ODP_PACKET_GREEN = 0, - ODP_PACKET_YELLOW = 1, - ODP_PACKET_RED = 2, - ODP_PACKET_ALL_COLORS = 3, -} odp_packet_color_t; - -#define ODP_NUM_PACKET_COLORS 3 - -/** - * @} - */ - -#endif +#include /** @internal Packet field accessor */ #define _odp_pkt_get(pkt, cast, field) \ diff --git a/platform/linux-generic/include/odp/api/plat/packet_inlines.h b/platform/linux-generic/include/odp/api/plat/packet_inlines.h index bfd65cbf1068..48475ba823e8 100644 --- a/platform/linux-generic/include/odp/api/plat/packet_inlines.h +++ b/platform/linux-generic/include/odp/api/plat/packet_inlines.h @@ -13,16 +13,21 @@ #ifndef _ODP_PLAT_PACKET_INLINES_H_ #define _ODP_PLAT_PACKET_INLINES_H_ -#include -#include +#include #include -#include +#include #include +#include +#include + +#include /** @internal Inline function offsets */ extern const _odp_packet_inline_offset_t _odp_packet_inline; +#include #if ODP_ABI_COMPAT == 1 +#include /** @internal Inline function @param seg @return */ static inline uint32_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg) { @@ -164,20 +169,4 @@ static inline odp_buffer_t packet_to_buffer(odp_packet_t pkt) return (odp_buffer_t)pkt; } -/* Include inlined versions of API functions */ -#include -#if ODP_ABI_COMPAT == 0 - -/** @ingroup odp_packet - * @{ - */ - -#include - -/** - * @} - */ - -#endif - #endif diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index fed562aa3409..db4864ff0b5e 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -23,11 +23,12 @@ extern "C" { #include #include #include +#include #include #include #include #include -#include +#include #include /** Minimum segment length expected by packet_parse_common() */ diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 603ac7181dea..ada02faec018 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -6,8 +6,8 @@ #include "config.h" -#include #include +#include #include #include #include diff --git a/platform/linux-generic/pktio/dpdk.c b/platform/linux-generic/pktio/dpdk.c index 1a930a487abf..28b4d25d282f 100644 --- a/platform/linux-generic/pktio/dpdk.c +++ b/platform/linux-generic/pktio/dpdk.c @@ -17,8 +17,8 @@ #include -#include #include +#include #include #include diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c index 812416b2fc94..1473d0b8030a 100644 --- a/platform/linux-generic/pktio/netmap.c +++ b/platform/linux-generic/pktio/netmap.c @@ -10,8 +10,8 @@ #include -#include #include +#include #include #include