From patchwork Wed Dec 13 15:00:17 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: 121780 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5594390qgn; Wed, 13 Dec 2017 07:11:04 -0800 (PST) X-Google-Smtp-Source: ACJfBosyLPzs8YqFH5dNfpspg4fZOJJW0q43sg8CVmT94XGgJlA4a7ntLtGajlCtCba8lK4YGvG+ X-Received: by 10.55.82.194 with SMTP id g185mr7445290qkb.279.1513177864116; Wed, 13 Dec 2017 07:11:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513177864; cv=none; d=google.com; s=arc-20160816; b=07K10Tfk5Ze4NbC+nv9pbixG+rJrxOwOLi2k6Hkv33UO+3TGbCgKEp9G3+bc0gAhqG rIRiZOyw/ZCyZhYPGgICGE3QGv/N6kUGNyHxfrnqtef5SLOKuBhryNTrOt552JcaRZWw W6R0NdstmYi0EHLdV5nCO8PP0Y1vFrH+nmZdijEvul6HXn4JRQh7LzoE6l2pdiWg2lhL 5jJhnKo0CKmRtcnMxM2JkqQ7zzTd1YDRXGfjPBoHmBReg0PGVFR2e2OpGsELkqB38S4e c/Adb07PtnFd5qij8M9+2MFM8CNs+Et5gBsvIck6O19k+QzdSVDftJrbgBgNeHGIRHRJ KjoA== 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=XjzEXqfFcjj2tPXNAgqX60T1xsjI8iz+NJiayB1VacA=; b=Y3vKAv3NkpPJHPCkKU+xAeq+6EWY8sfuh8dN9z6HSicXN0R6PGhkYG/KjwzHJbLbVa mxdIwlTuPEDGEIr68brg5sU63MgpnrKmb1AZOg8PtDUAN1UQOf/Dp1R4/VF7UA2rwbrI GNbqLcbz5pnCiib4FVQQNJLYDOpFC35GQ3EEK9tItTxNmVl6c9B5oDx8Fiw1JfiwNTQF I5g6Yvu6iSRnhl2z2bZehrMlfKNQLnU/4eq/SO/Nrl3FTh63f3Hvi9886lVrutHeVJ0O Aji+92W2t2b2gi54FWWIDVTRaVMDKFdgmX8hDOtro5UCPL7LDBWeDndaqjrCPLmEa3cl nFyA== 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 b84si2185942qkb.17.2017.12.13.07.11.03; Wed, 13 Dec 2017 07:11:04 -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 C863F6074A; Wed, 13 Dec 2017 15:11:03 +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=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 23F276091E; Wed, 13 Dec 2017 15:01:56 +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 A87F76091E; Wed, 13 Dec 2017 15:01:48 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id C182660840 for ; Wed, 13 Dec 2017 15:00:23 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward105o.mail.yandex.net (Yandex) with ESMTP id D18794443A47 for ; Wed, 13 Dec 2017 18:00:21 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CTcpJZLs8u-0LYepnVS; Wed, 13 Dec 2017 18:00:21 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TIlNgphY6V-0LwCgb0H; Wed, 13 Dec 2017 18:00:21 +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 18:00:17 +0300 Message-Id: <1513177217-8215-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513177217-8215-1-git-send-email-odpbot@yandex.ru> References: <1513177217-8215-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 338 Subject: [lng-odp] [PATCH API-NEXT v2 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: d96a8207591fbcaac25b79286d7d72a537354c1f ** Merge commit sha: 7427c77cd44f5de84a2788e6d7d0cefaf146f479 **/ 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);