diff mbox series

[API-NEXT,v4,4/5] linux-gen: pktio: loop: reset flags before reparsing packtes

Message ID 1513875646-25336-5-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v4,1/5] linux-gen: loop: support multiple loop devices | expand

Commit Message

Github ODP bot Dec. 21, 2017, 5 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 340 (lumag:ipsec-api-example)
 ** https://github.com/Linaro/odp/pull/340
 ** Patch: https://github.com/Linaro/odp/pull/340.patch
 ** Base sha: c38fc105f0e9a88dd4ebb4d9e7ac9e1160466322
 ** Merge commit sha: 82c8f20abfb7a55542ca78d82428d0c4e42670d1
 **/
 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 698d363e4..8d27dd8b7 100644
--- a/platform/linux-generic/pktio/loop.c
+++ b/platform/linux-generic/pktio/loop.c
@@ -102,6 +102,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;