From patchwork Tue Dec 19 17:00:57 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: 122399 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4422768qgn; Tue, 19 Dec 2017 09:07:32 -0800 (PST) X-Google-Smtp-Source: ACJfBosvjV+19u0g+x9IbeuoUGXaf6v0tOJ2AEhVyal99+L2FQ8HficeaAYgQv3Epd13Cf9/0zha X-Received: by 10.200.50.39 with SMTP id x36mr6388786qta.255.1513703252361; Tue, 19 Dec 2017 09:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513703252; cv=none; d=google.com; s=arc-20160816; b=Xc/ieJdcAJN/CTaJmE04DjBV/7ZOG5qGWKvciIon3+0AkMqPq0zdihubpCmJgJSLRC raYFCt98SPiwPw1ah7XW2BDU4ndMcgcspGcCkZaW5TzlNk5IOjA55/pIk0yeHioEnCl6 5H0N0IriufkeDJwmD6pRkvT3l91cCB6hud02nwqghIzomeg6hW33XfP+Oz7zzGCqdLu1 2GvLCndevlJPMbuiYWs7mLy5rYl5tY7Eye3pYNUuEgltHzS5wKsmo8JkU57Xya5zBZ2b rqcvFO0yOxvZMEfOSLCtlQfGbCXKL1hypgfPNz+TLrkiNnEr/S1zy/L1yI6YkqE3LkjZ OItQ== 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=0YVLdKAXjh65/hMkRIr3KkUN/5e8tgIyTfmZu8f9IRg=; b=mAFAAVtiVfvIEAULmjonFA2z0/TJMXYoRDIEbxQgdvDWNrye1mG/kQtXp7PAQTmkoi IHL87KSgPiZDj1z7+GOynfXVcSG6T8ozikV4uSQu0joXqgUZrWFaFR2e6pnppwJuj5To Mj556LWaJi2rQpnBRJOCP8/jhuadV10Hw//+1fuOa/U/tHtSmAIFlNUpOf9vYkejno/m E2Pms0fZmftDy/bjjmpIkUe7TzSTnEOwoGjWlykW862tiRFv1wD8izgQXEdxEdpscIch 9b0W1I0tIyyANT/iY9U5ChZwJww2QP7yibnEFRGR/sf3hVPz3yiP+8CAuydYOE04+aDq 9JGw== 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 q27si2689800qtq.459.2017.12.19.09.07.32; Tue, 19 Dec 2017 09:07:32 -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 19D9C609A2; Tue, 19 Dec 2017 17:07:32 +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,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 1559661511; Tue, 19 Dec 2017 17:03:03 +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 C6F0261513; Tue, 19 Dec 2017 17:02:54 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id 1C17360975 for ; Tue, 19 Dec 2017 17:01:11 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 3539012448ED for ; Tue, 19 Dec 2017 20:01:06 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1KLgkkQ3b9-16qeA0Tt; Tue, 19 Dec 2017 20:01:06 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fHOaUHATqc-15YOqomU; Tue, 19 Dec 2017 20:01:05 +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, 19 Dec 2017 20:00:57 +0300 Message-Id: <1513702859-14312-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513702859-14312-1-git-send-email-odpbot@yandex.ru> References: <1513702859-14312-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 338 Subject: [lng-odp] [PATCH API-NEXT v3 3/5] validation: use odp_proto_layer_t instead of odp_pktio_parser_layer_t 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 338 (lumag:pktio_parse_layer) ** https://github.com/Linaro/odp/pull/338 ** Patch: https://github.com/Linaro/odp/pull/338.patch ** Base sha: 12fd3a9224a856271934986a1bad981843915d68 ** Merge commit sha: f11c958e9552610bd1305f996e17c6b79a209a7e **/ test/validation/api/ipsec/ipsec.c | 2 +- test/validation/api/pktio/parser.c | 2 +- test/validation/api/pktio/pktio.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c index 097216730..9d263dfcd 100644 --- a/test/validation/api/ipsec/ipsec.c +++ b/test/validation/api/ipsec/ipsec.c @@ -84,7 +84,7 @@ static int pktio_start(odp_pktio_t pktio, odp_bool_t in, odp_bool_t out) return 0; odp_pktio_config_init(&config); - config.parser.layer = ODP_PKTIO_PARSER_LAYER_ALL; + config.parser.layer = ODP_PROTO_LAYER_ALL; config.inbound_ipsec = in; config.outbound_ipsec = out; diff --git a/test/validation/api/pktio/parser.c b/test/validation/api/pktio/parser.c index 66e726d09..1788d4d64 100644 --- a/test/validation/api/pktio/parser.c +++ b/test/validation/api/pktio/parser.c @@ -122,7 +122,7 @@ static odp_pktio_t create_pktio(int iface_idx, odp_pool_t pool) } odp_pktio_config_init(&config); - config.parser.layer = ODP_PKTIO_PARSER_LAYER_ALL; + config.parser.layer = ODP_PROTO_LAYER_ALL; if (odp_pktio_config(pktio, &config)) { printf("Error: failed to configure %s\n", iface); return ODP_PKTIO_INVALID; diff --git a/test/validation/api/pktio/pktio.c b/test/validation/api/pktio/pktio.c index 39451de3b..a6820a1de 100644 --- a/test/validation/api/pktio/pktio.c +++ b/test/validation/api/pktio/pktio.c @@ -1230,7 +1230,7 @@ void pktio_test_pktio_config(void) odp_pktio_config_init(&config); - CU_ASSERT(config.parser.layer == ODP_PKTIO_PARSER_LAYER_ALL); + CU_ASSERT(config.parser.layer == ODP_PROTO_LAYER_ALL); CU_ASSERT(odp_pktio_config(pktio, NULL) == 0);