From patchwork Mon Nov 13 14:00:17 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: 118765 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1845462qgn; Mon, 13 Nov 2017 06:15:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMYS9wQO5vJEDvYiGw7d/ZCvAof+7wFz4GYSHtXfNcPdU61rzJfKsZfllNPGNkLp/ck+u+yJ X-Received: by 10.55.22.7 with SMTP id g7mr14087414qkh.82.1510582517233; Mon, 13 Nov 2017 06:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582517; cv=none; d=google.com; s=arc-20160816; b=VdFGz7/0cspubocbnX+J80IHuOQh0/LnS+BLyL/ke6G/6rLp/OH6tjsipWqgBEBfHd 78XeWqcHYjydAOanW1mmIwVWEjslZ5A4+whlDOkv50UOwEIfu26zl81DINcWWqXfaivK zcs/QZPepaomI1zcgJhiTu56jFiuMia8cEHa2bO/2tKwke1IReuNE8F9WKAbliJZ94GY EJaVeVOoPNuJSzHebM0CbXkWnIrenXPg1Fyshe7Ca1wQdmXlpHKAFE3mob2XIjWP2dBb z3GfDXb4D93f1HlqnRQSoStXu/Tsaunf7gJCtEHkj4U6AlGCIEiIj9ox+npi6QoRMhxW Om5A== 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=6Ot6lYKPDg23IxFU2moyB3/KeWSL7AVZqGXw9QDOc+E=; b=RPwAlhrdlUwt5SCpHcc166uRTZ/BHBZxkrgMEcl5sLVb3dCyJBsT0kwZ2FRGro9+Zq 4wOCGm0wbH2fEqrg7kkF5Gz/GWYnXrkJKyy3fQgvzGUY88j1qBkzm+AwwT9FxaWtmuHF uOSheLAp2KwgrQmcIbMGu3ECXNd1r0NHJEm5qgejSShhIddZe6MeUkm4uP0EpBnxl22c BkqYoFXZL6NCqqDXER3dr6mmKqIExeW2GmdO8QqOWsE342eH1XSTlZvmUZbpeCoHIfPf 4QdQ5Xuf5rNgyq9nmqA3DnWvXAfW3tRKLUCtFXk6UmGc2ou/aiee35B0kDTMfZy3ICJY hIIg== 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 z24si14839218qtz.159.2017.11.13.06.15.16; Mon, 13 Nov 2017 06:15:17 -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 D39A361036; Mon, 13 Nov 2017 14:15:16 +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,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 44E1B6104D; Mon, 13 Nov 2017 14:02:16 +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 4CBC861039; Mon, 13 Nov 2017 14:01:39 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id 49A7C60B47 for ; Mon, 13 Nov 2017 14:00:34 +0000 (UTC) Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward104j.mail.yandex.net (Yandex) with ESMTP id E7BE041925 for ; Mon, 13 Nov 2017 17:00:32 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GbLfSjtukJ-0WFOmpoD; Mon, 13 Nov 2017 17:00:32 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 955rfAmciQ-0WkqLTXs; Mon, 13 Nov 2017 17:00:32 +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: Mon, 13 Nov 2017 17:00:17 +0300 Message-Id: <1510581630-13993-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510581630-13993-1-git-send-email-odpbot@yandex.ru> References: <1510581630-13993-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 243 Subject: [lng-odp] [PATCH API-NEXT v16 3/16] validation: ipsec: verify inline_mode flag 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 Verify inline_mode flag being set for inbound inline packets. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 243 (lumag:ipsec-packet-impl-3) ** https://github.com/Linaro/odp/pull/243 ** Patch: https://github.com/Linaro/odp/pull/243.patch ** Base sha: a908a4dead95321e84d6a8a23de060051dcd8969 ** Merge commit sha: 845914564f2d99792452ac22a524279f44496a1d **/ test/validation/api/ipsec/ipsec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c index a8fdf2b14..ac0a083bd 100644 --- a/test/validation/api/ipsec/ipsec.c +++ b/test/validation/api/ipsec/ipsec.c @@ -608,6 +608,9 @@ void ipsec_check_in_one(const ipsec_test_part *part, odp_ipsec_sa_t sa) CU_ASSERT_EQUAL(0, odp_ipsec_result(&result, pkto[i])); CU_ASSERT_EQUAL(part->out[i].status.error.all, result.status.error.all); + CU_ASSERT_EQUAL(suite_context.inbound_op_mode == + ODP_IPSEC_OP_MODE_INLINE, + result.flag.inline_mode); CU_ASSERT_EQUAL(sa, result.sa); } ipsec_check_packet(part->out[i].pkt_out,