From patchwork Thu Dec 21 13:00:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122564 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp859946qgn; Thu, 21 Dec 2017 05:06:18 -0800 (PST) X-Google-Smtp-Source: ACJfBosYMDFOx/S6STq6An1id/Fise2hH8U+qnXLj+vs3m1r+ao7N28IVIm8ohRol/xFDehgnxDS X-Received: by 10.55.6.22 with SMTP id 22mr14409865qkg.231.1513861578423; Thu, 21 Dec 2017 05:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513861578; cv=none; d=google.com; s=arc-20160816; b=ZupWNJvqxUViUYOFoiw84MexjsHXyOWIp0MlRvK+FH0G5PROEBEI93FIFmv+A+Qx7F /f8sg9fC4ZEUhyd44CLDAcz2w/G+Bcdta+GtwtKhO79MDAlQXCAgFVnbvTxGlVsbu4yZ W8J+b1BE7OQTayFON0VXykErOI+RAKu4BQ7G8KjpRRsr1LxldyLRr3Pxf1rsIbHK5ciV xgo0FyeoGv01o58qIRRA19i2R7G9yURmFdp612y2dfmMoHrtiY+DwiQNptKYcHfBo4RX Szz49hjwCTuYw6ZChYPiUzubVb+2q9adsQ5l0bhlK04FikHb03EJzgOOkuKJtLFDYIw/ MmQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=LvAkf0rBpb45tMTjLvVSfYJDyJM5NEQ37v1T4TJmT3Q=; b=d71xS1Ym7Dux8FcGyjuyxxoMpEH1eUaUIXM9AKc9kLubXIFcfI9iG4Vv1Oxe9N5hy5 Br+DBmSMDTdd4XrVmdlYFyv3e0O7qjRxMjnRycK/oyFS0sxg7FgZQHJdwCdhq/KoJoLe Lth+BtQFe5iyoOFJK21uWZy0glBskL7SFFB14n1tUT34u12kHzICQ4eRrs2/mHrMOlle gy9hAyA8pclkjJKpGZyI3qFrgE0ks2BKMhhhvy5nqWcE68VVWI06uIrqhwGkL5uB7QtD iFuIc2INMciIKs1hnHcHQrvrNj7zp7DzjzQAtNa4IuwKX9C0M575vZIHrpSHHgyVTQOA uCrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id q90si5588824qkl.36.2017.12.21.05.06.18; Thu, 21 Dec 2017 05:06:18 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1AA7560C56; Thu, 21 Dec 2017 13:06:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5262761500; Thu, 21 Dec 2017 13:01:55 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 83C6260997; Thu, 21 Dec 2017 13:01:17 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 0BE3F60B0E for ; Thu, 21 Dec 2017 13:01:00 +0000 (UTC) Received: from mxback7j.mail.yandex.net (mxback7j.mail.yandex.net [IPv6:2a02:6b8:0:1619::110]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 1078918040AE for ; Thu, 21 Dec 2017 16:00:59 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback7j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id k4DyIgRrJm-0xVCkBGk; Thu, 21 Dec 2017 16:00:59 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bK5cnSlVPU-0w6Wxeou; Thu, 21 Dec 2017 16:00:58 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 16:00:52 +0300 Message-Id: <1513861253-18953-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513861253-18953-1-git-send-email-odpbot@yandex.ru> References: <1513861253-18953-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 340 Subject: [lng-odp] [PATCH API-NEXT v3 4/5] linux-gen: pktio: loop: reset flags before reparsing packtes X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Stale flags can interfere with packet processing, so let's reset them. Signed-off-by: Dmitry Eremin-Solenikov --- /** 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: f2a1a84b43642f3d0911a351d9308d5501693290 ** Merge commit sha: ec52601dbf5fe65742cf752c2bcf4c1cc927cdc1 **/ platform/linux-generic/pktio/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 87c837ea3..201c33393 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -101,6 +101,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;