From patchwork Wed Dec 13 13:00:07 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: 121770 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5445240qgn; Wed, 13 Dec 2017 05:04:34 -0800 (PST) X-Google-Smtp-Source: ACJfBovEpE9A9Sb7Qwje9Wxnf4ScLTM0N0VjNTcA2T5HaEZvkO4LMm6vm5oLdKY6UjC9oini1PWE X-Received: by 10.55.170.130 with SMTP id t124mr10447199qke.84.1513170274374; Wed, 13 Dec 2017 05:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513170274; cv=none; d=google.com; s=arc-20160816; b=BeViL0l1a++NeehdrE2gR/PbInaIIGQYNSYALCLB6fe9X3Pv3FfOVyurp3oXqsGq5c 7XdDSJmGI80G0+hTAGsu06P1BBPoKJSRbRd9PRwEHUBgN6Wg9V34BcBBm2wQJHDm2dnp RMQsPBlHhBwQ34evlttk1cMnJ9tObW4KfhZIe98GLzaDwCaP2vkjbECLYycIZMC19izm Vew+813Ml0GFFbgAaVw1DZNrC84tpcUk0oFZLo5psxfQ3ELJYVX5b06N8EyhQbvYFYz1 xRW1vBd5K7Cb847gWxyk5z35I13TzXVtQfmr8rLQAe1SClPFUyLQat3W59QDgN++Nb2I LXRA== 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=C1X+onpzIcdSX7Eg00oTOyWzkny3Ck3SEmTdVoLlxZg=; b=sHqoPEgahAQLPEDKt9CWaIzPfp7swiYv2ztZaQa5LYZMrh1YDBPDvVbW6etX58JRPA bgm4vnre14og3u2Ovz/3KDg9B2SwjbKn+yzHIoIJ8O25yJCeqkWJ/1IIpBcbYXvjmaTI jmhftq0rPDYpiDErIRnsGm12SDFA3sQhFBfx6Vk9O7BuvGjGPHdResakYM+nc4jWPdqT LR/04nt72g2Qk8MjoruPSChXua+n+m+K9D26h9aVY5EVcfR23tDHMN6W9W2tghhsbu5A ltBEtgFZpBUGRvHSeMO1AghLUMs/e8I2DAz6Hp1euXMIZS9XF2yrXqQEGbb7tohKx58c EmRg== 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 o25si2059066qkh.28.2017.12.13.05.04.33; Wed, 13 Dec 2017 05:04:34 -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 D5D0F60800; Wed, 13 Dec 2017 13:04:33 +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 4E79460927; Wed, 13 Dec 2017 13:02:24 +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 76388607C5; Wed, 13 Dec 2017 13:02:05 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 2552A608F6 for ; Wed, 13 Dec 2017 13:00:53 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 33A145D840BD for ; Wed, 13 Dec 2017 16:00:43 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tclxAYeKYC-0hjekrDo; Wed, 13 Dec 2017 16:00:43 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZKo7wGnMCt-0aUOoEAE; Wed, 13 Dec 2017 16:00:36 +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:07 +0300 Message-Id: <1513170009-9281-5-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 4/6] 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: 874b90ec6730e9189edd69774044ef32d7f0d95f **/ 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) {