diff mbox series

[API-NEXT,v1,1/2] linux-gen: pktio: loop: reset flags before reparsing packtes

Message ID 1513861240-18876-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/2] linux-gen: pktio: loop: reset flags before reparsing packtes | expand

Commit Message

Github ODP bot Dec. 21, 2017, 1 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Stale flags can interfere with packet processing, so let's reset them.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 357 (lumag:loop-fix)
 ** https://github.com/Linaro/odp/pull/357
 ** Patch: https://github.com/Linaro/odp/pull/357.patch
 ** Base sha: f2a1a84b43642f3d0911a351d9308d5501693290
 ** Merge commit sha: 9c542050f3413f01be52e51336f5f628c4151742
 **/
 platform/linux-generic/pktio/loop.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c
index f887e1a2d..6d19863f6 100644
--- a/platform/linux-generic/pktio/loop.c
+++ b/platform/linux-generic/pktio/loop.c
@@ -88,6 +88,7 @@  static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED,
 		pkt_len = odp_packet_len(pkt);
 		pkt_hdr = odp_packet_hdr(pkt);
 
+		packet_parse_reset(pkt_hdr);
 		if (pktio_cls_enabled(pktio_entry)) {
 			odp_packet_t new_pkt;
 			odp_pool_t new_pool;