From patchwork Tue Dec 19 17:00:58 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: 122400 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4423601qgn; Tue, 19 Dec 2017 09:08:08 -0800 (PST) X-Google-Smtp-Source: ACJfBovRFXgvy2qG2MKjsgkhHpkDI3FYxz8d7hGq/MRk/sLjhpGR0loFOn0M1EtuLDpbP7CzCs0k X-Received: by 10.55.43.38 with SMTP id r38mr5958097qkh.25.1513703288817; Tue, 19 Dec 2017 09:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513703288; cv=none; d=google.com; s=arc-20160816; b=nM8xxjOjGwzvpP0axcLCZxEydnFiEzsbqkToMMtl/TdIcs9NFqZz1ERg0RNcYE02vl fwdMvCivA2oaJW//uRr7uJ42czTkxZ4ZQui4wjzdpNyPfLbt6PCooQdIj818xa/PTDbs G45ohzTRv6SxgDhCDYeIRSBWm1tfOSA8qnpB4ZNiPB++6CNBt5rkytdrC4+cENlDkQHf 7HMTtexNYuYgbjlUeQDJ91/avh1kW4JseGUWRI0I4IBWpEKGGaODvuUiRDVbXl/X1xNT alLdBfEQtOVtNaenfZSI1UyxF52XnAHOmSAKK1WOzuFi/3whbIx74QAZc96J0v8jgUek KZ9A== 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=vzSBpAVLNwB2zcq826OMt+bPhqSeSdrcq4VDzr3LWh0=; b=vVDHqrIDF0OzPzT/sIH8+ElfiVKAPKLU6i53by4JfQbofLBKBVtZDu7PBFxNtQ68SW Ll57J+oxytBJMSOe4a5WSyK7R91RpXUvGWJ68h0OcmtA54MHErfvyZ7+KF36Dgt93Cn0 uT1TLhS759eN5h4NdxFLZI80eRFAPTHdkYcxpvnbuUGgJ2Q473gNRY4F75vgwnOsUyd4 23xtOCCgUhXSVIxCmwpL5yHTKU/u72LuZN7CsaYcOut5e9VX/csYAHcsZpAxm/qjH+V7 H6dH/h4KkOLfcqQsQm/wZQ1HE3pebGnYiMhkhxIHKTQeoMLzlAfKoRecjwP4KCT+XNEs YT/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 r71si5879897qkr.428.2017.12.19.09.08.08; Tue, 19 Dec 2017 09:08:08 -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 8894E6151C; Tue, 19 Dec 2017 17:08:08 +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_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 6BC0E61524; Tue, 19 Dec 2017 17:03: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 9ECC36151D; Tue, 19 Dec 2017 17:03:03 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id AD1F5608CE for ; Tue, 19 Dec 2017 17:01:19 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 1B5EE408283A for ; Tue, 19 Dec 2017 20:01:08 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id i0OPvRiTqf-18SWwYST; Tue, 19 Dec 2017 20:01:08 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fHOaUHATqc-16Ymkr5X; Tue, 19 Dec 2017 20:01:06 +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:58 +0300 Message-Id: <1513702859-14312-5-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 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: 12fd3a9224a856271934986a1bad981843915d68 ** Merge commit sha: f11c958e9552610bd1305f996e17c6b79a209a7e **/ 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) {