From patchwork Tue Feb 6 20:00:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 127094 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3232523ljc; Tue, 6 Feb 2018 12:01:01 -0800 (PST) X-Google-Smtp-Source: AH8x22631WfEhdm/TgW4yxOmvEWEMC7O/teuAIRrNXCcFPjiUNqu//Y8Friu07XnH6NhG+9ZOUKD X-Received: by 10.200.49.121 with SMTP id h54mr4941884qtb.227.1517947261197; Tue, 06 Feb 2018 12:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517947261; cv=none; d=google.com; s=arc-20160816; b=zvKjwIMKenM3eGT7EHmj6J+6TqrvnndM2ufLZnkaeckKPIuP/LBD4SqylI+fmjgU9V bSKWNf2I3hTlBZNzbgCGYveWDrwgq8vDI6/Hpi/NZzoc4pz6I0rBxxvRJDlmUa7lzecv b1wqfaHTR/Jh+1NOGfumZZCAI/CRY3TghgtaNfVIk+nDBCJCyVUTPIdL72SwYZ9F8huJ e2IDgElFVR3l6uzV7Ssm6vHT/biEMMajBJQNGYTZhfVKDyhgL2dO74ulZtaHiOr3h9st /gj2VSJPJKtocKaNGK1yG7qhE/9Pg5RWSG967JSVdXsmOYmI9/02iJszAu+ia0vC9v+l j75Q== 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=J/hwQC4Hf8DO0VxzCFBye2BD+gb66eODzE0AtrnffVg=; b=jyFUiW+f/GIHA5YgaqCX/Snco6eDbIFfdT399KQ0prp4f3A86dFRVeBuO0/dB+51v0 Q+cpdSBAK4+B9TKrdjhf32leAMzJp7YO+/MNwxyaLl3rFLqUjwvPnw22GPFYJUmgT+yq 9d20WVU2AveX3ogRrGbXeTUqLHQxNaEaL4XmpPGvP7KEM7m1369T4b3t2/qRElIwXqlm oftf7bR+JTKyojlkdrUQEA4/jioHzM4aQDLnLzVOM8EqzXdxxZ7kf1iBjLu3tuUSC97N lV9CsJ1UUFZsz7sczZA42huyOf/T+KSRYmCYWjYxQWDt8sBc3/Lu9h6gL8fXbwBJr59m +VFA== 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 r24si346258qte.248.2018.02.06.12.01.00; Tue, 06 Feb 2018 12:01:01 -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 DB85C617BE; Tue, 6 Feb 2018 20:01:00 +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 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 BE53B60A1A; Tue, 6 Feb 2018 20:00:31 +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 A99EE608EF; Tue, 6 Feb 2018 20:00:28 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 68C2D6074F for ; Tue, 6 Feb 2018 20:00:27 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 06C8E13448C9 for ; Tue, 6 Feb 2018 23:00:26 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EyiDBOQE62-0PEOwB3c; Tue, 06 Feb 2018 23:00:25 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id UiwDHD0Ynz-0P6S1aX8; Tue, 06 Feb 2018 23:00:25 +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: Tue, 6 Feb 2018 23:00:16 +0300 Message-Id: <1517947216-12970-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517947216-12970-1-git-send-email-odpbot@yandex.ru> References: <1517947216-12970-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 456 Subject: [lng-odp] [PATCH v1 3/3] linux-gen: pktio: loop: check for ip error before trying IPsec 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 Check for ip_err error flag before calling _odp_ipsec_try_inline(). Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 456 (lumag:ipsec-fix) ** https://github.com/Linaro/odp/pull/456 ** Patch: https://github.com/Linaro/odp/pull/456.patch ** Base sha: 257b08b35ceea41bad5a7f1c626496cf111e657a ** Merge commit sha: 6f522c3fa758a8b611b2c0f92ace175b16a2517c **/ 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 1533a1b3c..b56059b96 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -155,6 +155,7 @@ static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED, /* Try IPsec inline processing */ if (pktio_entry->s.config.inbound_ipsec && + !pkt_hdr->p.error_flags.ip_err && pkt_hdr->p.input_flags.ipsec) _odp_ipsec_try_inline(&pkt);