From patchwork Wed Dec 13 13:00:06 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: 121769 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5444997qgn; Wed, 13 Dec 2017 05:04:25 -0800 (PST) X-Google-Smtp-Source: ACJfBosx81Et8AskQ79Ieu55YjQFuKybZrJLv1Cc2eThY1lZtBpTHSt4aqc8hsdRTl14YRy2P57U X-Received: by 10.37.198.194 with SMTP id k185mr1563933ybf.136.1513170265203; Wed, 13 Dec 2017 05:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513170265; cv=none; d=google.com; s=arc-20160816; b=if3gWY4fWMBxngPgGZaSSnKONY58+LNgV3ND1G4Yz6L+cinpSxv83lSYjs/dYOXPge RIyk+qFqAnHklbScr4Cv/KqdijetcYrpbUZWqv8hEOhOHSdFPe2awQl7DQwFm5ZHu9nN 1LvJYOpZMLkdaYl7tVR0AFFY3a8i9znl6a/fHEvt4cNYD3mTASuKePOMXczB5DOvJpeA Dp2RjbdJk1+rbVFRt69hWrHJhej545+Tf5ejd3UwClSvLxAk7nkO1bs45kil9cMBdf7V Ii0dNndYkNMgRKAo4zj5ZqWHftZuNAeXY1KY3eeStpV+BLG2Oox3qpEalKlxTMjJJzVK GvvQ== 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=JLinCVNFBOcVALeCoxMweCkVZp0ot5hD7i8gwnv3eyI=; b=ZYBzFLj9TxGGzEkn2h9iomdjLWujdPzAT0H8qhxfrXHTjK4dD25/iohE/LsDL+e+9F MeC/zHDzGhMIbjF2/oXspBtbYQieMkfa/H4VGRTMW6Ry43tgDCfPc85QJomZ8qSUBDhQ mDCoG8OIuTStrrPbTJVUxo+zfZ+3JHGnqR5q974mR+SSudbqLonWzYn8cBkdGTkhC4gN F0KMQVjycmS5WZkU3tnJN4Lsdv3tBPkQ9aRYzOAY0xfLCy2IPAURoMPeryXDJLuh7hJ/ xdzgoSdVIVIzPeoWepExOc5kv0ZDX1a854E++FKFArMltPMEq9jXSrPF+dp6ZYJdUPVQ oPnw== 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 e44si1817313qtf.10.2017.12.13.05.04.24; Wed, 13 Dec 2017 05:04:25 -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 CD15C607C5; Wed, 13 Dec 2017 13:04:24 +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 141516088A; Wed, 13 Dec 2017 13:02:19 +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 6218960888; Wed, 13 Dec 2017 13:02:03 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 1F2A1607C5 for ; Wed, 13 Dec 2017 13:00:38 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 8E853184775 for ; Wed, 13 Dec 2017 16:00:36 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vcycusfZTE-0aZ4Hj3M; Wed, 13 Dec 2017 16:00:36 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZKo7wGnMCt-0UUCCNXJ; Wed, 13 Dec 2017 16:00:30 +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, 13 Dec 2017 16:00:06 +0300 Message-Id: <1513170009-9281-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513170009-9281-1-git-send-email-odpbot@yandex.ru> References: <1513170009-9281-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 338 Subject: [lng-odp] [PATCH API-NEXT v1 3/6] 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: d96a8207591fbcaac25b79286d7d72a537354c1f ** Merge commit sha: 874b90ec6730e9189edd69774044ef32d7f0d95f **/ 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 7b39c2c5a..b99bee94e 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);