[lng-odp-dpk,21/24] linux-dpdk: fix build after porting "packet: inline functions"

Message ID 1491483242-716-2-git-send-email-balakrishna.garapati@linaro.org
State New
Headers show
Series
  • Untitled series #124
Related show

Commit Message

Krishna Garapati April 6, 2017, 12:53 p.m.
Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>
---
 platform/linux-dpdk/odp_packet.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Patch

diff --git a/platform/linux-dpdk/odp_packet.c b/platform/linux-dpdk/odp_packet.c
index 7972970..6612898 100644
--- a/platform/linux-dpdk/odp_packet.c
+++ b/platform/linux-dpdk/odp_packet.c
@@ -4,6 +4,7 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#include <odp/api/plat/packet_inlines.h>
 #include <odp/api/packet.h>
 #include <odp_packet_internal.h>
 #include <odp/api/hints.h>
@@ -61,10 +62,6 @@  ODP_STATIC_ASSERT(sizeof(dummy.hash.rss) == sizeof(uint32_t),
 ODP_STATIC_ASSERT(sizeof(dummy.ol_flags) == sizeof(uint64_t),
 		  "ol_flags should be uint64_t");
 
-#if ODP_ABI_COMPAT == 1
-#include <odp/api/plat/packet_inlines.h>
-#endif
-
 /*
  *
  * Alloc and free
@@ -1350,6 +1347,7 @@  int packet_parse_common(packet_parser_t *prs, const uint8_t *ptr,
 			parseptr += sizeof(_odp_vlanhdr_t);
 		}
 
+
 		prs->l3_offset = offset;
 		prs->parsed_layers = LAYER_L2;
 		if (layer == LAYER_L2)