From patchwork Wed Dec 13 15:00:16 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: 121782 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5595488qgn; Wed, 13 Dec 2017 07:11:50 -0800 (PST) X-Google-Smtp-Source: ACJfBovHC808/wAMF65tjSOG21AnLTSSehLmvTK1mb0f3fl9JXUTwO0uJECHCKRkpGqYSGvoJ1e1 X-Received: by 10.237.42.230 with SMTP id t93mr11703407qtd.50.1513177910285; Wed, 13 Dec 2017 07:11:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513177910; cv=none; d=google.com; s=arc-20160816; b=aQYfP+bKurW2nwU5pd6HXTixV6Ab1rBfyGVA18fYMwHOfIi3aHRwTmzhd1WgstFF7s MN18N83dQ8RJsyg1f4Eyqf05g6HmkdJ9Hn1fVgvFdLdiEXDaL7LzA8mNe6ZTtB3tH3gC mCGhu2ZlGSYoyyjsXxjSBCLYMfxudqTJgOp5L9hAhkn4255TJlSMTrSiuaMfELwNEwCL Hll+LMfrv3imfqaDJo/j6tBTxQbBklV2hgGSIhLxVz09nEXXHyGvRkZG18tbx7nj0zz+ LK3yft9oLWYsU/Y5+02zhBez2Bs4X8ZiuvEwswUv9isxzkDHCIWZC4mnOQ2VlidRceRx dZvg== 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=kRPW6phkGzwRpFej3AdO0bCTWgQ0V6G5EdY1Vt2/5JQ=; b=J4roIApRIaD7tQoxGphUHlDRLCftkfVLzO8MDH9RZmd2JqwQp2ZFEq5hBq6wn7NgR/ ERkCgJ7Azty/EgzrMan3+RQ1Eps4083wluYih7hnzsKt6Cm5Wo/m12og/rAKb7had1Id Ictw74cXkR9g2Z2QHMTZ7QC+vm0SHpbUeFF7dNTkywgjVbDM8gJXWq36/JQ69KRIPs6K l6ozx0odItvCHXha8kbFkyUif+XkNImymFCMtNrDMhKv/zH7HRi0pp81dJuvmBpEVP2Q klfkcm2TGSKdh2X0fCDhcRgr46uRRWWbz+KOKG+NjAptX8/SsNw5aWAC4lZJ83V3zl/t GdwQ== 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 28si2031854qtq.382.2017.12.13.07.11.49; Wed, 13 Dec 2017 07:11:50 -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 DD44A60732; Wed, 13 Dec 2017 15:11:49 +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 E07E66091D; Wed, 13 Dec 2017 15:02:12 +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 F11F46091E; Wed, 13 Dec 2017 15:01:51 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id B8CF76083F for ; Wed, 13 Dec 2017 15:00:22 +0000 (UTC) Received: from mxback6g.mail.yandex.net (mxback6g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:167]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 545BC785860 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 mxback6g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XaVxWuuXyQ-0L4uxBXk; Wed, 13 Dec 2017 18:00:21 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TIlNgphY6V-0KwWuOGf; Wed, 13 Dec 2017 18:00:20 +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:16 +0300 Message-Id: <1513177217-8215-5-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 4/5] performance: 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 **/ test/performance/odp_l2fwd.c | 4 ++-- test/performance/odp_pktio_ordered.c | 2 +- test/performance/odp_pktio_perf.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 0ebb0dd17..27b299399 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -737,8 +737,8 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx, odp_pktio_config_init(&config); config.parser.layer = gbl_args->appl.extra_check ? - ODP_PKTIO_PARSER_LAYER_ALL : - ODP_PKTIO_PARSER_LAYER_NONE; + ODP_PROTO_LAYER_ALL : + ODP_PROTO_LAYER_NONE; if (gbl_args->appl.chksum) { printf("Checksum offload enabled\n"); diff --git a/test/performance/odp_pktio_ordered.c b/test/performance/odp_pktio_ordered.c index ed4e2e8e4..2248eb2fd 100644 --- a/test/performance/odp_pktio_ordered.c +++ b/test/performance/odp_pktio_ordered.c @@ -618,7 +618,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); diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index a4599de62..4c09b12e4 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -797,7 +797,7 @@ static int test_init(void) * affects scalability. */ odp_pktio_config_init(&cfg); - cfg.parser.layer = ODP_PKTIO_PARSER_LAYER_NONE; + cfg.parser.layer = ODP_PROTO_LAYER_NONE; odp_pktio_config(gbl_args->pktio_rx, &cfg); if (gbl_args->args.num_ifaces > 1) {