From patchwork Tue Dec 19 17:00:59 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: 122397 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4420922qgn; Tue, 19 Dec 2017 09:06:09 -0800 (PST) X-Google-Smtp-Source: ACJfBotcWqRQOc45LHOw0XZ3tVzt+SCBfIZ+gC/PJWKf8CnDVVhzS0EeyffJ2TxlT0lWOLPbv+dl X-Received: by 10.200.40.15 with SMTP id 15mr5694329qtq.74.1513703169688; Tue, 19 Dec 2017 09:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513703169; cv=none; d=google.com; s=arc-20160816; b=0D87MQa4UJvZICyGUekxXkgqlA2yzpS7J0d2Om+RFpn+bxdiTcOp1gZa9U5Q81kGRn WiY2LYAc5G5njmTxW2z7vgCzgGQuo/00mmQWMDMlqU9H+7SNTxfW3+WLBpBSFJQPMDRf NYcoJ8Xsl5VelL5kBJg27wIdFf1hKEQOofQPD+aaUONu+wN81q/kwadu7nCRHrmvmnTN kCSN5/00z9CQvalJg8uLV7qwsYR6CZzgrpbUVh18f3G5qT62NfC1cdCKGJgVeUyl3FVd kzvWb3aV0SGhCI58C8Je30FLmrG665toIMCSuPD8V5Ds7xYozA+fRbShACyXIkxsDs9G Kxlg== 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=Suhk5terl+zYbnQxhH17s6g+LHwuMAItlPmdfZYE31s=; b=rlBEatWilptfp9TS6TlZuLer7C7g01wxRHSeG44R5YS7U3Cr9ygN30adoanDdPvI// cnwEheTCOcsox7ObH1OgwriopxQpbsG7BuBcyFUiLJKmLtvciJiISJ8RokPLNs29BOBw LhZgYhcATYUbX+Zi8MaLsTE0sK/uGvPQ7Bc1vL4tVntD1EprPXf2TGN35kRhHNBxryhH FgaYRMcggY3V4uYjQtGrzncRIcoDMFso5IOG76lEvcehV6/oDjzhZ6uKrx+vO84fRDf6 1jEw3GgbPPjxMKrIhWyLEENDbBmeDPP1H6ARb95CooDdxn53qGzo3LFvb3mQ+YwoIh8p sI/Q== 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 123si1231572qkj.192.2017.12.19.09.06.09; Tue, 19 Dec 2017 09:06:09 -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 647E8616DC; Tue, 19 Dec 2017 17:06:09 +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 3EB9660974; Tue, 19 Dec 2017 17:02:51 +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 B5A0761515; Tue, 19 Dec 2017 17:02:42 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 949CD60974 for ; Tue, 19 Dec 2017 17:01:10 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 4334A182345 for ; Tue, 19 Dec 2017 20:01:09 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id QDXqwXpPd8-19xKJHQf; Tue, 19 Dec 2017 20:01:09 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fHOaUHATqc-18YOadv6; Tue, 19 Dec 2017 20:01:08 +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:59 +0300 Message-Id: <1513702859-14312-6-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 5/5] example: 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 **/ example/l2fwd_simple/odp_l2fwd_simple.c | 2 +- example/l3fwd/odp_l3fwd.c | 4 ++-- example/switch/odp_switch.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/l2fwd_simple/odp_l2fwd_simple.c b/example/l2fwd_simple/odp_l2fwd_simple.c index e63814555..2592c3744 100644 --- a/example/l2fwd_simple/odp_l2fwd_simple.c +++ b/example/l2fwd_simple/odp_l2fwd_simple.c @@ -52,7 +52,7 @@ static odp_pktio_t create_pktio(const char *name, odp_pool_t pool, } odp_pktio_config_init(&config); - config.parser.layer = ODP_PKTIO_PARSER_LAYER_L2; + config.parser.layer = ODP_PROTO_LAYER_L2; odp_pktio_config(pktio, &config); odp_pktin_queue_param_init(&in_queue_param); diff --git a/example/l3fwd/odp_l3fwd.c b/example/l3fwd/odp_l3fwd.c index d5a24aa63..3946546fb 100644 --- a/example/l3fwd/odp_l3fwd.c +++ b/example/l3fwd/odp_l3fwd.c @@ -123,8 +123,8 @@ static int create_pktio(const char *name, odp_pool_t pool, odp_pktio_config_init(&config); config.parser.layer = global.cmd_args.error_check ? - ODP_PKTIO_PARSER_LAYER_ALL : - ODP_PKTIO_PARSER_LAYER_L4; + ODP_PROTO_LAYER_ALL : + ODP_PROTO_LAYER_L4; odp_pktio_config(pktio, &config); fwd_pktio->nb_rxq = (int)capa.max_input_queues; diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c index be4830998..3e52970be 100644 --- a/example/switch/odp_switch.c +++ b/example/switch/odp_switch.c @@ -240,7 +240,7 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx, } odp_pktio_config_init(&config); - config.parser.layer = ODP_PKTIO_PARSER_LAYER_L2; + config.parser.layer = ODP_PROTO_LAYER_L2; odp_pktio_config(pktio, &config); odp_pktin_queue_param_init(&pktin_param);