From patchwork Wed Feb 7 02:00:07 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: 127105 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp21109ljc; Tue, 6 Feb 2018 18:02:04 -0800 (PST) X-Google-Smtp-Source: AH8x2249+NI93zeWj/fwDEhrxbjorkU6OfucCfI+3pEZ6ixpvpM0OndwBJ886oT4l+tM+Rmric01 X-Received: by 10.55.129.195 with SMTP id c186mr6360685qkd.352.1517968924367; Tue, 06 Feb 2018 18:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517968924; cv=none; d=google.com; s=arc-20160816; b=p89H5CH5fpKL7y/FJZCXUqc+c1BATHh4SA0zeqYCRAgOELtjuW75QZU0kezjXgefa/ Zr69tIV/sTZz+/OCL2yfm9/8003P0UlZljKrpQ3Ia1pauN7xrMszB9zOn+6hEo7k/iIl z28p5O6pjbf4Ej02MmA9JScVRq1TRTazO1fZT7LuUXMFz00LnM+h/kcxSoZFe/2r4SSG UCYx+sEMOcGgLpYl9119/R4HmKeog6VGMraYJSeauODRy8QoPpLJWz/yzykbbMfPSHMb rquRD5x+f/VkfQb7bI/6wd0xpHoOZ6H/ySxz/VXSPn2HoPOHOVAIuTqujN1kJUza+U9W ISBg== 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=zL8ggeSCi+XVBSmJ0fclFoJ/Q0sUAXkaluby/x6u/AY=; b=oCOAFnl0h9VdznpoJlkiwtSQ8BxT4nFzCbUW0gS7lkpdh1rf39S1KyY+er97uxY4QM E1yh6/nbrIjUx93DPuclA8G858nrxexS3zBLWDZ7MPXiuj1/V47MyrtTd3W4jtNMdCgO dTTFlXiaLA0gg4h0A+kyeC6D7z6r4AGzENh/nltCPfDBFM8olmFK/0tjiKVI9c/fghDy GxQb8p4OVl9AaZo44e+BZdt4fu8kN55NZsR3/Cr9eRFcx2QuHzX61WJnU4P/XyDY0jr4 DzdIBdbPdz2DSu1s45DtGNXy/TEXz106zKgEXg5d46mkMUWBujbZRji5G8GyrbwjaYdp LHuQ== 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 i10si376762qke.483.2018.02.06.18.02.04; Tue, 06 Feb 2018 18:02:04 -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 15BA5616E9; Wed, 7 Feb 2018 02:02:04 +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 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 5589B6074A; Wed, 7 Feb 2018 02:00:58 +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 5D28060670; Wed, 7 Feb 2018 02:00:49 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 73A44614E1 for ; Wed, 7 Feb 2018 02:00:35 +0000 (UTC) Received: from mxback15j.mail.yandex.net (mxback15j.mail.yandex.net [IPv6:2a02:6b8:0:1619::91]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 0CDFE18534C for ; Wed, 7 Feb 2018 05:00:34 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback15j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id quGB12qyXL-0XvWolPU; Wed, 07 Feb 2018 05:00:34 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nKioYpbuPJ-0QVCmK80; Wed, 07 Feb 2018 05:00:26 +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, 7 Feb 2018 05:00:07 +0300 Message-Id: <1517968807-18097-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517968807-18097-1-git-send-email-odpbot@yandex.ru> References: <1517968807-18097-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 456 Subject: [lng-odp] [PATCH v3 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: e8666889f21113d1d24bf1d03ccd0bde538eabf0 **/ 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 a210c74ef..3ee2e33af 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -156,6 +156,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 && _odp_packet_has_ipsec(pkt)) _odp_ipsec_try_inline(&pkt);