From patchwork Sat Jan 13 04:00:02 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: 124405 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp30254lje; Fri, 12 Jan 2018 20:01:01 -0800 (PST) X-Google-Smtp-Source: ACJfBotQ0MVuwwQyZfNm5dyT7ElQhU6+UUwJydnbfOUh+nhf7698BURaCoZ/tO4oSeevASOpVXYz X-Received: by 10.237.37.202 with SMTP id y10mr16052866qtc.66.1515816060963; Fri, 12 Jan 2018 20:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515816060; cv=none; d=google.com; s=arc-20160816; b=J3je1EuSu2SVpskxZMgyGLnZWjpjY3jLzH4qcKTIx7EYi+NBRzJe1uOD5E8xJ7Tq1Q avfEJKgAW+HOcJIx87xXQ8DlRF3lDkCzpXswe7QLmPQdzqJuOq8pl7u+2fDQkCRfbsO9 k6AG/D7eflp2RwmAgd1Wy2Fr5xYOWfRUdFVF7YXspvRHqxuG0bHe3vjVhQf2Y6q9ODjB Zp2VXO1axdcfmNXZN1LGgcYDUBVuWhQOq2478BY5ndWdxhrmFmLJhji67jahe2c5RjgH U3GkQWlvYFS1zJr6dNfG5c6VWl5QCkXVXdSQmF+IARMeYnRcf7LlC+NLJwnv0E2/iy65 mRSA== 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=OxQe4zu1B8T5WFztcl/AvNRCfXXcVHdPr+JNBzqizlI=; b=GM3o78o4BKocYreS20FAJxX/mZLPCwvRPrVMs8F2KNISjj2VS16Hncj5I+BeMTilJy i7fZNAYjpx4eVWSal1ZUvhVDiawGlxAzvZmud3tYn0IbwXXK6aM3RN4cMkm1yW8Rl1wm myoiz5DhTxO0IxBFQZ47hWqhO0iRuXFOONBGArSXK1QtiuBKvQpmNXCtNOAcqrTJd4VV 4GgvwM0BaOhI479/GtcGY/GTwO0dMxO4PqGkW1OKgsL8jd7ReqyaUoJrXBKmNQ1RcAYV +puu1chomz2D1z7zGhYpPEELF9PBHi2IyHE1r2j8FaaATha8QkT7TQj30P3OqhW4yAGQ jzWg== 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 c78si14477091qkj.158.2018.01.12.20.01.00; Fri, 12 Jan 2018 20:01:00 -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 A15336175C; Sat, 13 Jan 2018 04: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 F198161719; Sat, 13 Jan 2018 04:00:21 +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 AB5D2616B9; Sat, 13 Jan 2018 04:00:13 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id A310660958 for ; Sat, 13 Jan 2018 04:00:11 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 13BC34443A4E for ; Sat, 13 Jan 2018 07:00:10 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2Uh3p3JaQl-09fSK4uP; Sat, 13 Jan 2018 07:00:10 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id GnJsmNomDX-09G4B1ZH; Sat, 13 Jan 2018 07:00:09 +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: Sat, 13 Jan 2018 07:00:02 +0300 Message-Id: <1515816008-7212-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515816008-7212-1-git-send-email-odpbot@yandex.ru> References: <1515816008-7212-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 389 Subject: [lng-odp] [PATCH v1] [WIP 1/7] validation: ipsec: fix packet checksums 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 389 (lumag:parse-checksums) ** https://github.com/Linaro/odp/pull/389 ** Patch: https://github.com/Linaro/odp/pull/389.patch ** Base sha: 49ebafae0edebbc750742d8874ad0a7588286dea ** Merge commit sha: ab214b82da2a920444a5e65d029f3f42a98ec314 **/ test/validation/api/ipsec/ipsec.c | 1 + test/validation/api/ipsec/test_vectors.h | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c index ea3cff052..322b03ad2 100644 --- a/test/validation/api/ipsec/ipsec.c +++ b/test/validation/api/ipsec/ipsec.c @@ -905,6 +905,7 @@ int ipsec_config(odp_instance_t ODP_UNUSED inst) ipsec_config.outbound_mode = suite_context.outbound_op_mode; ipsec_config.inbound.default_queue = suite_context.queue; ipsec_config.inbound.parse_level = ODP_PROTO_LAYER_ALL; + ipsec_config.inbound.chksums.all_chksum = ~0; if (ODP_IPSEC_OK != odp_ipsec_config(&ipsec_config)) return -1; diff --git a/test/validation/api/ipsec/test_vectors.h b/test/validation/api/ipsec/test_vectors.h index a6b8616b6..0a46ec758 100644 --- a/test/validation/api/ipsec/test_vectors.h +++ b/test/validation/api/ipsec/test_vectors.h @@ -264,7 +264,7 @@ static const ODP_UNUSED ipsec_test_packet pkt_ipv4_icmp_0_ah_sha256_1_bad1 = { /* IP */ 0x45, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x00, 0x00, - 0x40, 0x33, 0xab, 0xd9, 0xc0, 0xa8, 0x6f, 0x02, + 0x40, 0x33, 0xab, 0xdb, 0xc0, 0xa8, 0x6f, 0x02, 0xc0, 0xa8, 0xde, 0x02, /* AH */ @@ -664,7 +664,7 @@ static const ODP_UNUSED ipsec_test_packet pkt_ipv4_icmp_0_esp_aes_cbc_null_1 = { /* IP */ 0x45, 0x00, 0x00, 0x9c, 0x00, 0x00, 0x00, 0x00, - 0x40, 0x32, 0xab, 0xca, 0xc0, 0xa8, 0x6f, 0x02, + 0x40, 0x32, 0xab, 0xda, 0xc0, 0xa8, 0x6f, 0x02, 0xc0, 0xa8, 0xde, 0x02, /* ESP */ @@ -1494,7 +1494,7 @@ static const ipsec_test_packet pkt_mcgrew_gcm_test_2_esp = { /* IP - not a part of RFC, added for simplicity */ 0x45, 0x00, 0x00, 0x74, 0x69, 0x8f, 0x00, 0x00, - 0x80, 0x32, 0x4d, 0x76, 0xc0, 0xa8, 0x01, 0x02, + 0x80, 0x32, 0x4d, 0x75, 0xc0, 0xa8, 0x01, 0x02, 0xc0, 0xa8, 0x01, 0x01, /* ESP */ @@ -1552,7 +1552,7 @@ static const ipsec_test_packet pkt_mcgrew_gcm_test_3_esp = { /* IP - not a part of RFC, added for simplicity */ 0x45, 0x00, 0x00, 0x68, 0x69, 0x8f, 0x00, 0x00, - 0x80, 0x32, 0x4d, 0x82, 0xc0, 0xa8, 0x01, 0x02, + 0x80, 0x32, 0x4d, 0x81, 0xc0, 0xa8, 0x01, 0x02, 0xc0, 0xa8, 0x01, 0x01, /* ESP */ @@ -1610,7 +1610,7 @@ static const ipsec_test_packet pkt_mcgrew_gcm_test_4_esp = { /* IP - not a part of RFC, added for simplicity */ 0x45, 0x00, 0x00, 0x74, 0x69, 0x8f, 0x00, 0x00, - 0x80, 0x32, 0x4d, 0x76, 0xc0, 0xa8, 0x01, 0x02, + 0x80, 0x32, 0x4d, 0x75, 0xc0, 0xa8, 0x01, 0x02, 0xc0, 0xa8, 0x01, 0x01, /* ESP */ @@ -1708,7 +1708,7 @@ static const ipsec_test_packet pkt_mcgrew_gcm_test_15_esp = { /* IP - not a part of RFC, added for simplicity */ 0x45, 0x00, 0x00, 0x68, 0x69, 0x8f, 0x00, 0x00, - 0x80, 0x32, 0x4d, 0xb2, 0xc0, 0xa8, 0x01, 0x02, + 0x80, 0x32, 0x4d, 0x81, 0xc0, 0xa8, 0x01, 0x02, 0xc0, 0xa8, 0x01, 0x01, /* ESP */ @@ -1752,7 +1752,7 @@ static const ODP_UNUSED ipsec_test_packet 0x11, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, /* UDP encap */ - 0x11, 0x94, 0x11, 0x94, 0x00, 0x90, 0x00, 0x00, + 0x11, 0x94, 0x11, 0x94, 0x00, 0x90, 0x51, 0x33, /* ESP */ 0x00, 0x00, 0x00, 0x7b, 0x00, 0x00, 0x00, 0x01,