From patchwork Thu Dec 7 13:00:03 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: 120967 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8325653qgn; Thu, 7 Dec 2017 05:03:14 -0800 (PST) X-Google-Smtp-Source: AGs4zMYgv74/Dxcu+rhaL1NR6nHsNqt68hMv/ncF6aq9uEmIBGXNpZ9fraONGoS+7QbsTA6qlmEM X-Received: by 10.200.2.150 with SMTP id p22mr9974947qtg.328.1512651794477; Thu, 07 Dec 2017 05:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512651794; cv=none; d=google.com; s=arc-20160816; b=iPMi3Zs4GCokm326cHWPSAPtFX07JA8zmQDzhSwj456L/76KHkTuO7iqkrYeQMXiVW TrynXyRDTN6tIqQYbdVp6OqUzTi1bBJJxFFPQP1KT8JCtLKLi+EoG+6rVF4+ArJKLP3m G/PJ8qCMHnoLl74U/hc0uCrShTWljNW5+4xxHl1mmttnF/0Zi6iyD9OSAINFW+9OfjVj oT9JbnJRx+4nCZAn0kYe5YcmAy95+SZNNZ8lEtYb32YY3h8Ry22Dj7EBn5Wt3eyLFcEJ /+tRWIEb2PEW5VMDffsjBmcAQbLbdQQM6Cm6q3OrDkGadQ5fMyBVDs0x3S7ii45zziA/ nNzA== 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=YTQZu0B5Ee/2FuAJCfD1aWGje2iqbVbDh2UdfUhJjz8=; b=oOt9N0W5F0CjsWDKI8+3gE+YVnPtglGJjPSwYp5BaaNyetxF7BXtoHEQOjW6Ycrzzi VsT2B97JE4nJ9cFKyUIS0omQJElwzAtxYSyPSm/Rn6/P4WxJ89o1T0qeKjgiyQLcmXdm /M1P+h3mERqCUE0sg9EgeS2FHzC5FfBYtGJ7gWMbc6r906XO6Zby8Ed2btxaO19t2+0G qMBDD6SBr+1xyU+s8746m5ErKG+vu0xQi5M+LRek4S8p8gwkB68Uz6q1PxAo+juc0XHQ mGeT245HePEc7/JaPE/NeFBJ54n7BXcYnfiJcd+3z7xpT61/IHssh0v5GZir0h7hhp+K lGRg== 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 h126si1298658qkf.354.2017.12.07.05.03.13; Thu, 07 Dec 2017 05:03:14 -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 CA8ED6097C; Thu, 7 Dec 2017 13:03:13 +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 5244960951; Thu, 7 Dec 2017 13:00:36 +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 0F4D1608F6; Thu, 7 Dec 2017 13:00:21 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id E557A60903 for ; Thu, 7 Dec 2017 13:00:11 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward106o.mail.yandex.net (Yandex) with ESMTP id BAADC785A82 for ; Thu, 7 Dec 2017 16:00:09 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id l3k4XqY6QS-09v41j3x; Thu, 07 Dec 2017 16:00:09 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5HyJRBoKQy-08QCKFW3; Thu, 07 Dec 2017 16:00:08 +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: Thu, 7 Dec 2017 16:00:03 +0300 Message-Id: <1512651606-28483-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512651606-28483-1-git-send-email-odpbot@yandex.ru> References: <1512651606-28483-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 327 Subject: [lng-odp] [PATCH v1 1/4] example: generator: remove 1 ms sleep on send loop 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: Bogdan Pricope The 1 ms sleep is reducing total packet throughput. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 327 (bogdanPricope:master_update_generator_pr) ** https://github.com/Linaro/odp/pull/327 ** Patch: https://github.com/Linaro/odp/pull/327.patch ** Base sha: 811281a22b6274b7f41b926a9cfbe09e48a366bd ** Merge commit sha: 9edce40a148dd5654384464f71ff62c58d5105fa **/ example/generator/odp_generator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 53b397b33..6ee4f6389 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -655,7 +655,6 @@ static int gen_send_thread(void *arg) burst_size - ret); burst_start += ret; burst_size -= ret; - odp_time_wait_ns(ODP_TIME_MSEC_IN_NS); continue; } EXAMPLE_ERR(" [%02i] packet send failed\n", thr);