From patchwork Wed Dec 13 20:00:09 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: 121854 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5915428qgn; Wed, 13 Dec 2017 12:03:13 -0800 (PST) X-Google-Smtp-Source: ACJfBou2hrmeNr0Ht+uBOegJz9VEBLCYRcKeHvZF7a3lk3ao9TDEBn+wi97UESw/HvQmJOFYkeFl X-Received: by 10.55.101.9 with SMTP id z9mr12398531qkb.206.1513195393360; Wed, 13 Dec 2017 12:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513195393; cv=none; d=google.com; s=arc-20160816; b=ASqJQ9650xdhiAfAKGXt9PmI7e4h6bR/fGpGXAfV56sXfViTdO3KvKLRjRvYzhOUZL 4OY+t5NgCXxzUIPFJAUm36zgjafuFTxbKSbgTYv8eB5sFGJgj5cbYO63KJFS4Nj0CXbk p8dnG3VIT0Q5Ry6MfHtSuRHMEdWskAQSiRL95lJ6dbaLRZiO3JUKPfhkHait4jjZ0CGi kRiBgLirYvNLGoHV0AkaUaSqXnbjr2fUz/zPBLxWcSUfn7W5/5iqXsIFnBCtlqJCHe9F UxDLX6zTcU6//Wat8eGVg2rktuVdXTCblbamqf6kYfpjkw2aghwOn+VELMJvaIejU/8/ /ZVw== 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=xW3qdWifz/SWw0D7VXuA4QrDEN8iUaUdaNxR1zFGfrg=; b=ZLd+YHiE3+PZ4il71NFZ4ONUmYqrEOoP9hbxU878G9HUOBR1DG1YHD2kIDz0zHHwOt 1Sgg5Bj84TroTnSKwhkHj0roM7MUtq302KecLuHYUT6RlNApTrnPaEr0fR/h3bO6wl9i fT1sObGiNog8BGqGx7o3jcSjk2U8+EFXGInCnAYOae/sPQZb+b6XbX3NgJlJgTizPojP jk1aiwL3r4aukf2b8hRnqUSPPjXk0Zfd0JRRIgXA+N0DRhmN+YiSx3DB6O/3qZDgb2X2 PntKjaCvBqXi9FVW4ggweDDdEXqcsimTfoG+tbxauiKbuJu9TtlrS8Dfueta+zdEVcHW x5yA== 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 z81si2716941qkz.106.2017.12.13.12.03.13; Wed, 13 Dec 2017 12:03:13 -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 0868A60954; Wed, 13 Dec 2017 20:03:12 +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 6199B6091B; Wed, 13 Dec 2017 20:02:02 +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 208C06088A; Wed, 13 Dec 2017 20:01:51 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 6F1B360819 for ; Wed, 13 Dec 2017 20:01:05 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward105p.mail.yandex.net (Yandex) with ESMTP id DAA654084D35 for ; Wed, 13 Dec 2017 23:01:03 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oR0FY3HaIu-13g4vmS9; Wed, 13 Dec 2017 23:01:03 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bm31k7WFt4-0dUCO6QV; Wed, 13 Dec 2017 23:00:39 +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: Wed, 13 Dec 2017 23:00:09 +0300 Message-Id: <1513195210-1807-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513195210-1807-1-git-send-email-odpbot@yandex.ru> References: <1513195210-1807-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 340 Subject: [lng-odp] [PATCH API-NEXT v1 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: 83316d73abd3a48692d4212732f1f7b1e8ab1911 **/ 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;