diff mbox

[PATCHv4,DPDK,2/6] DPDK specific changes

Message ID 1424345197-8815-1-git-send-email-venkatesh.vivekanandan@linaro.org
State New
Headers show

Commit Message

Venkatesh Vivekanandan Feb. 19, 2015, 11:26 a.m. UTC
From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>

- Modified files to sync with linux-generic implementation

Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
---
 platform/linux-dpdk/include/odp_packet_dpdk.h | 2 --
 platform/linux-dpdk/odp_packet_dpdk.c         | 9 ++++-----
 2 files changed, 4 insertions(+), 7 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-dpdk/include/odp_packet_dpdk.h b/platform/linux-dpdk/include/odp_packet_dpdk.h
index c3a2b70..c982d5e 100644
--- a/platform/linux-dpdk/include/odp_packet_dpdk.h
+++ b/platform/linux-dpdk/include/odp_packet_dpdk.h
@@ -8,10 +8,8 @@ 
 #define ODP_PACKET_DPDK_H
 
 #include <stdint.h>
-#include <net/if.h>
 
 #include <odph_eth.h>
-#include <odph_packet.h>
 #include <odp_align.h>
 #include <odp_debug.h>
 #include <odp_packet.h>
diff --git a/platform/linux-dpdk/odp_packet_dpdk.c b/platform/linux-dpdk/odp_packet_dpdk.c
index 9fe4bbd..80ce74f 100644
--- a/platform/linux-dpdk/odp_packet_dpdk.c
+++ b/platform/linux-dpdk/odp_packet_dpdk.c
@@ -23,6 +23,8 @@ 
 #include <odp_hints.h>
 #include <odp_thread.h>
 
+#include <odp_system_info.h>
+#include <odp_debug_internal.h>
 #include <odp_packet_dpdk.h>
 #include <net/if.h>
 
@@ -164,11 +166,8 @@  int recv_pkt_dpdk(pkt_dpdk_t * const pkt_dpdk, odp_packet_t pkt_table[],
 	nb_rx = rte_eth_rx_burst((uint8_t)pkt_dpdk->portid,
 				 (uint16_t)pkt_dpdk->queueid,
 				 (struct rte_mbuf **)pkt_table, (uint16_t)len);
-	for (i = 0; i < nb_rx; i++) {
-		odp_packet_hdr_t *pkt_hdr = odp_packet_hdr(pkt_table[i]);
-		struct rte_mbuf *mb = &pkt_hdr->buf_hdr.mb;
-		odp_packet_parse(pkt_table[i], mb->pkt.pkt_len, 0);
-	}
+	for (i = 0; i < nb_rx; i++)
+		_odp_packet_parse(pkt_table[i]);
 	return nb_rx;
 }