From patchwork Thu Dec 21 17:00:45 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: 122592 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1162502qgn; Thu, 21 Dec 2017 09:12:49 -0800 (PST) X-Google-Smtp-Source: ACJfBouZVRK9YRz31+z7wjLoUi/pN4A1W0Nk4gKloyw8s68/9o0+hV3PHqyR/wVe7m7kr4Gc9hvh X-Received: by 10.55.100.9 with SMTP id y9mr14634870qkb.242.1513876369690; Thu, 21 Dec 2017 09:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513876369; cv=none; d=google.com; s=arc-20160816; b=p83F28CokRpcVK/l8BEG4LQMm3Vimj1L1B2c408jPVjJ8Jc2VmLbtfVhXL/hEbz4oZ fONdBZRqzipbhq7+1hLhb2LWPSFYeQ0yCL8DYtwxOKb5Lwvp8Q4iRxijyAYSGQAku4FB w//CAlDB6PGtvhPk95JHOzfkmPPE22bXdnpsofyPvqUb04TjATW5FqBKhn/9gOYc8KwH pAEFbGZs4VFaQXUPfhJTE6bW5Jzg0QdE57DLUPjhKLDP3sb8EQxcJnmDag9EmWmgiLCz JMbLcuK8JboROJPXjInLfQBEIXPDYiWTRA55yK9JwlMpB7zv6D+aKh4LYxg9V+hgUNxO WBYw== 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=sMwoc7ZZt457rhVDuprYQQjFW65tOMZfcwxE3XsMNys=; b=iU0ltHsEqM0hj0UiWc1lM0n33PclLnPnqMc1Ng2oLt1vGE+OiSK1fPS2CKHygF07ze Eo+1JNJrhnwyc9QE1TrzY/nfu5qNsRR32yyAPXDHsWzAsbTp7FdKRN1NegxGQAH5tTHJ d31l0jIvF7u1KKtf1j3DanyNMq4C78E724xGtimsDrm/kJN2CmksEsJLgn8Fq5Sx2yl9 NWCOWkBnfJZf95c9gbl/ivwxxE6uivshGuDyG5S/nSbS1PjVagtYqAzWylod7b97Vwq1 HXTA9K300Munnj6VaW5rqUVI20XneFNjpppT9aAAvHPJ7lBWc1oGOkvSZji++UEE56Hs KlbA== 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 x207si3482894qka.95.2017.12.21.09.12.48; Thu, 21 Dec 2017 09:12:49 -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 D5CBE61734; Thu, 21 Dec 2017 17:12:48 +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 070D86150A; Thu, 21 Dec 2017 17:03:36 +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 38E8F6151D; Thu, 21 Dec 2017 17:03:31 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id BECA06150E for ; Thu, 21 Dec 2017 17:00:57 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward104p.mail.yandex.net (Yandex) with ESMTP id C5685182165 for ; Thu, 21 Dec 2017 20:00:56 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ahnZY9sdcf-0u5S7BxY; Thu, 21 Dec 2017 20:00:56 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id l1vjHaT6xA-0uXO151V; Thu, 21 Dec 2017 20:00:56 +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 20:00:45 +0300 Message-Id: <1513875646-25336-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513875646-25336-1-git-send-email-odpbot@yandex.ru> References: <1513875646-25336-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 340 Subject: [lng-odp] [PATCH API-NEXT v4 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: c38fc105f0e9a88dd4ebb4d9e7ac9e1160466322 ** Merge commit sha: 82c8f20abfb7a55542ca78d82428d0c4e42670d1 **/ 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 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;