From patchwork Thu Dec 14 00:00:10 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: 121875 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6133336qgn; Wed, 13 Dec 2017 16:02:06 -0800 (PST) X-Google-Smtp-Source: ACJfBovTSQbYmoFniVJg9S2r4FsVgbhnLMDeTit4BbPy7JlgbszhqCFhpG6ZxD3TmSQ1GSbfSpfF X-Received: by 10.55.52.144 with SMTP id b138mr13993991qka.335.1513209726783; Wed, 13 Dec 2017 16:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513209726; cv=none; d=google.com; s=arc-20160816; b=S2/mV5rCLihAyKcXY1D9y+iO0ubhgRinpsJcUvGiAbB4At0wpU88vio+rp+CCda9Th SExexwRdREfC6gmyCaRchNvqwN04W1DfgH0HRx9kjRvzdAFtjb8yslsj87cLye3g5oyw 5AcjT+SB6j6NIHr8YOLvE7ZgVjrBVLVaJP64PQYzYI61RyP9k/z4bf1QDP/V0j8hL7y8 chqBJzJPuivdBo/oPVh6E8NK7gRJOeP7Lf4PSQD6QsI+XcDrk5GGExgOcBUC1VDCaYSs wAsFOi485R1s3LdmcIlCFhFikmMGGwIX9alKVj4ui9MFB6dPHnehXJUTx39Z9kDBNbqk AbQw== 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=/ZGUcXF22IuQ48Cwg9lC6vfv4sGfr5Bfx+LFwpzb0AM=; b=yvXdb2pJQrtEaDNEcZRdeviQsa1R2o1aTX59XN21buuKG8nSvvMD4TdZKbkjMMrNS+ XfiMgWh9VtI7lfH4c/tiE1enDuJp8/22LL2TT+dDfBq9YyMlyNkQmVQIO7L8iN7clu8g JoiPQbVqIvNe9kjrDi1xlTaXLy+2kwZsIrD7bxh0Wq6l/5UgSoIV/VeMZmnifMq5V/SX dqHMsuJ5kttYcfXLomD9OeIy1SUAU3acCM8gSu9YQkySC2i3vePrjdrhoueYRSBuGlb9 LIkKbfa6WG1PGPv+C07bW0vrlq/CTatPl+gUBEFHBdBYfv+8DsTUKuq99CcMG3t9waYV VGQA== 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 e68si3136884qkj.321.2017.12.13.16.02.06; Wed, 13 Dec 2017 16:02:06 -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 78732608F7; Thu, 14 Dec 2017 00:02:06 +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_H2, 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 4FB0B60922; Thu, 14 Dec 2017 00:00:37 +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 19E7F60888; Thu, 14 Dec 2017 00:00:19 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 2707C60605 for ; Thu, 14 Dec 2017 00:00:17 +0000 (UTC) Received: from mxback2g.mail.yandex.net (mxback2g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:163]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 30C604085B8B for ; Thu, 14 Dec 2017 03:00:16 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback2g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SEsjK9uFSV-0GN0h5Rx; Thu, 14 Dec 2017 03:00:16 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yIWKc0t7iQ-0Fr0N4aG; Thu, 14 Dec 2017 03:00:15 +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, 14 Dec 2017 03:00:10 +0300 Message-Id: <1513209611-8033-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513209611-8033-1-git-send-email-odpbot@yandex.ru> References: <1513209611-8033-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 340 Subject: [lng-odp] [PATCH API-NEXT v2 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: d96a8207591fbcaac25b79286d7d72a537354c1f ** Merge commit sha: 7371c04c5dc9238b8e9f601e6650b4bc36589be9 **/ 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;