From patchwork Tue Feb 6 20:00:15 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: 127096 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3234737ljc; Tue, 6 Feb 2018 12:02:54 -0800 (PST) X-Google-Smtp-Source: AH8x225vrXpprB9B1YWR1p3SP2sY7xdcmTRo9keERX+r9NO3eFs5/xhkFpPeC2KDors3mN8rJUNO X-Received: by 10.200.50.3 with SMTP id x3mr5161104qta.130.1517947374371; Tue, 06 Feb 2018 12:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517947374; cv=none; d=google.com; s=arc-20160816; b=FrTN423dq/bnG8G7WwPVJ7MON5TXHlAaKtjpMpjkE4HWYuVf2vRPHFT5pgCJuukSvC ltqH0e9VgTO+i/cg5emlrzN8JFLE/0o1o7u5os81r8XrkA5GQBBDsB72F7DqN65dnYfP mvsAjlJ6+UUUeUqvICv7KUYKmSu01L20MOJG3u6xI8ENwvlvjfkMVQZy2y1QCuC7kvCm SRZAZN42IWNjIJXtHyeK9Z5dZdUwhpuiCHW828xxpCPztmxL48rdTI7IoGF5zlDGj07z 9MVNlRb14ERYtNPwcB6pPBsWGxMAv8BcdFqoM/kLH+W8NJitp9ojjXijm1eX4f1aAynZ 2fHA== 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=bXAVFq3RBnDWSvBSZ4sFaMfwEkvlce4jkJNrU1eCQBM=; b=h0pbErQ5lohi3jDhmmtxDuv+77pcFOqHuQ8w1zDbSsl0kxxve3KHTGK/aXCe8P41qn g30EBT17haHSDBu0392X08WP6fSDt8+xevJIvugrJjMniTeLphopZq4FSlkmx5Dx1hMV U8aC0IZupTRbW0/jpSVcMSbm+Yb236g5qHB0VQidDBGH90gLGgRQWsOPvmjRpJvYW65a o5CymzoI4FyLwbYspS7ZKAZLjQry4uL/ayj0n/B7qP/P/BpbvvbbCoAeRf9A/hQhtZi6 NtTAfHr4406C1KmNGTCRJod9H5tdCzw0SA0MlQjmLgxxkLX+kx0dVWdbs9KAzbaW8DFE x4sw== 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 i58si1184669qtc.438.2018.02.06.12.02.54; Tue, 06 Feb 2018 12:02:54 -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 018F76171C; Tue, 6 Feb 2018 20:02:53 +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_H3, RCVD_IN_MSPIKE_WL 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 0F95860C48; Tue, 6 Feb 2018 20:01:30 +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 7A5B860B0E; Tue, 6 Feb 2018 20:01:24 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id C472F60B52 for ; Tue, 6 Feb 2018 20:00:32 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 06C5B5601867 for ; Tue, 6 Feb 2018 23:00:25 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FYggm6AW9U-0OjOZLDO; Tue, 06 Feb 2018 23:00:24 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id UiwDHD0Ynz-0O6SJ2vY; Tue, 06 Feb 2018 23:00:24 +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:15 +0300 Message-Id: <1517947216-12970-3-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 2/3] linux-gen: ptkio: loop: inline odp_packet_has_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 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 79c21ee7a..1533a1b3c 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -155,7 +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 && - odp_packet_has_ipsec(pkt)) + pkt_hdr->p.input_flags.ipsec) _odp_ipsec_try_inline(&pkt); pktio_entry->s.stats.in_octets += pkt_len;