From patchwork Wed Dec 13 13:00:08 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: 121768 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5444143qgn; Wed, 13 Dec 2017 05:03:51 -0800 (PST) X-Google-Smtp-Source: ACJfBov6zIoqTg61YlKHd2MFHSWifHTpTzENlM9A9/3npOLOG0JqtnAtSf6aPzHQNELuAEAv2HL2 X-Received: by 10.55.170.130 with SMTP id t124mr10443539qke.84.1513170231424; Wed, 13 Dec 2017 05:03:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513170231; cv=none; d=google.com; s=arc-20160816; b=cOKqfhLidD6TCSxyqpcw6vr60x2vnNhoqeAGHMo/EMki8O6Y5rpz+20uiquiC5gRe3 NZlFi7Jhjxf9MDbyXKjZPmJnwCkWQWRd27Ym8XBCytVcB4KKoRb6zZLwB8asdXot9foR 3TDlIWD9pMGPPJ5MvnAFKIe8cafPK0legVSW079LgP3CKoQyGa535pK0R3O1IMEWjEI7 H59bGoEVENAKi3iGfMvbEbK4bN5dfr3LszdstnRT6u25qxaiozLQRshFOlO7B5Ltv2zD PbDbw0XxE1jseDRofSOVYM4A4JhiLuoKbAwgvBzHx7kxKM4HUS4B0VuD/Q623TbXXyVi 8Jqw== 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=NXdQ+8ieyoOFfNbMyb7vqvl2bUBs+z1bgBZLoyRi+F4=; b=p+9z0N10nwH1kYxaVnvuWFS2D2tKE6eiFgCCkxg8a+kBCFaSTdfo3cKU/iBJEutTLZ 7Qhp/wk2hUm9lBuW6aToVvA95ZxTwqeFWivkxWw2HNVGIQ3XLIDnWG/4Pd4lRSgGQvF+ 8edX1tnOpd8x2uFhcnS3+pwonLImcJX7UW+5sXOG7uHZ9xQbyopaN/zd66Dbx0FGzuZ7 ejIFSUtdhUKozJtqihlPDJDe+W+NAWoqvuJuL+HgjVIitaj2uKg3If00tkYVXYrDI9TI ygNQdTj9DrnVISpjdJQcIbmV03vBTRgNLcwZu3mZBTpjfBvwpxTU5N34E0uBRLq+x5J+ fLVg== 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 k25si1894183qtk.28.2017.12.13.05.03.51; Wed, 13 Dec 2017 05:03:51 -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 0797C6074A; Wed, 13 Dec 2017 13:03:51 +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_H4,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 C00C9607C5; Wed, 13 Dec 2017 13:02:10 +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 14C5E60922; Wed, 13 Dec 2017 13:02:03 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 6C8186067F for ; Wed, 13 Dec 2017 13:00:51 +0000 (UTC) Received: from mxback5j.mail.yandex.net (mxback5j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10e]) by forward102j.mail.yandex.net (Yandex) with ESMTP id D900056065E0 for ; Wed, 13 Dec 2017 16:00:49 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback5j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ReKrBiqtWT-0nT4WVVL; Wed, 13 Dec 2017 16:00:49 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZKo7wGnMCt-0hUmuQjH; Wed, 13 Dec 2017 16:00:43 +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:08 +0300 Message-Id: <1513170009-9281-6-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 5/6] 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: d96a8207591fbcaac25b79286d7d72a537354c1f ** Merge commit sha: 874b90ec6730e9189edd69774044ef32d7f0d95f **/ 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);