diff mbox

[v3] ODP-DPDK temporary patch

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

Commit Message

Venkatesh Vivekanandan July 16, 2014, 6:42 a.m. UTC
From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>

Need not push this patch to the upstream

- Fix to give transmitted buffers back to buffer pool.
- If there are issues seen while sending traffic, ONLY then this patch
  has to be applied. Intention of this patch is to fix the traffic
  issue.

Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
---
 platform/linux-dpdk/odp_packet_io.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-dpdk/odp_packet_io.c b/platform/linux-dpdk/odp_packet_io.c
index abea0ec..3d4f5d4 100644
--- a/platform/linux-dpdk/odp_packet_io.c
+++ b/platform/linux-dpdk/odp_packet_io.c
@@ -323,6 +323,9 @@  int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len)
 	if (pktio_entry == NULL)
 		return -1;
 
+	if (pktio_entry->s.params.type == ODP_PKTIO_TYPE_DPDK)
+		odp_pktio_send(id, pkt_table, 0);
+
 	lock_entry(pktio_entry);
 	switch (pktio_entry->s.params.type) {
 	case ODP_PKTIO_TYPE_SOCKET_BASIC: