From patchwork Mon Dec 11 16:00:10 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: 121429 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2981929qgn; Mon, 11 Dec 2017 08:09:39 -0800 (PST) X-Google-Smtp-Source: ACJfBovXGWBmALfBDWXZ/9LY9Y/MqptwrcAsGQIUKSMilkvsoFNkUKbyV5ny7gRv6Bf5iN6xzpiq X-Received: by 10.107.200.203 with SMTP id y194mr1147155iof.197.1513008578989; Mon, 11 Dec 2017 08:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513008578; cv=none; d=google.com; s=arc-20160816; b=PCYCSjwOdYKYrtZbDf4v1Hp0mlYayck3OxOY+LyjfJbxkyMK2YQTL40YTfb8Rlg1jf 4NVrIgYhgvHCWEcUkIAozu25+cRUC1lm6wvOALhDRzc+LaX0I+HZoHLS7BWpJEOQmzE2 xlU61NL4sosn69Ah6l8fGlzrnpSH0EmACqQJCgNWHoxFkuSbuCwlRv/wn8dz24G1HGan HQ2x9rbvK4R29qWgeC/dI9DDuaJ5NXNY8OUjfElBhmsbs1I3QAggOxNYgABznf63fVI7 4WWB6jrhvB3D8nhHXSFWjnzYAANgZCjzqAbAM7Qpuvg9XLgLTr4S/s5cGpEy7jGD0kd6 Up5A== 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=+mfKGqVEoSigetZsBjSOA+vHQ9zNDIdYqF3ToUbljJY=; b=UCBe3Z5NwaYU4Vf8tomN7tmUnrSViVxFWVCe6GzY9xHrRPDWCBGyNmCQqUnxS7AvbP 21oxvgUVfb6gRADcS1awqq4HMx3Aq5et57p8IaAf5Kzi19wPOsX16objOYhZL1QNIkK0 Y3ekxMQMKG5zb7wXJbTEvNTtHxKIG9chreGTxGjQkTYwy5G3BzJqNksaa9f1PFOMrh3R atTt7rS+HvIQjw9tkF+/beGOKH+eyeIj+8vMQCp8aVgo7KRNoQgihgDgQ2yf5i7b/ejg dBSMF/LU9//XBWgJcl8Pl59PEfx5qLZ8XxV1qb//Hy5GLDoP07FU/0SjrsiYXJrvlNkI vwLA== 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 y6si6469364itd.86.2017.12.11.08.09.38; Mon, 11 Dec 2017 08:09:38 -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 8523D608E8; Mon, 11 Dec 2017 16:09:38 +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 97F6D609A7; Mon, 11 Dec 2017 16:01: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 4D4BC60963; Mon, 11 Dec 2017 16:00:39 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id 3725B6095D for ; Mon, 11 Dec 2017 16:00:23 +0000 (UTC) Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward106j.mail.yandex.net (Yandex) with ESMTP id E73E7180160C for ; Mon, 11 Dec 2017 19:00:19 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0zz852snB0-0J0Kv3mc; Mon, 11 Dec 2017 19:00:19 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BifhbGdIDb-0JTOBNcR; Mon, 11 Dec 2017 19:00:19 +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: Mon, 11 Dec 2017 19:00:10 +0300 Message-Id: <1513008012-9231-13-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> References: <1513008012-9231-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 335 Subject: [lng-odp] [PATCH API-NEXT v1 12/14] example: generator: increase maximum TX burst size to 512 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 Bigger TX bursts may increase packet throughput. Signed-off-by: Bogdan Pricope Reviewed-by: Ilias Apalodimas Signed-off-by: Maxim Uvarov --- /** Email created from pull request 335 (muvarov:devel/api-next_master_merge) ** https://github.com/Linaro/odp/pull/335 ** Patch: https://github.com/Linaro/odp/pull/335.patch ** Base sha: 630d8422564ebf4991b468cb38a29e9483fc2ec2 ** Merge commit sha: 2de2af9eca01b713e51c66fee7a5c7e535502f85 **/ example/generator/odp_generator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 6ee4f6389..47b91d6ef 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -26,7 +26,8 @@ #define POOL_NUM_PKT 2048 /* Number of packets in packet pool */ #define POOL_PKT_LEN 1856 /* Max packet length */ #define DEFAULT_PKT_INTERVAL 1000 /* Interval between each packet */ -#define MAX_UDP_TX_BURST 32 +#define DEFAULT_UDP_TX_BURST 16 +#define MAX_UDP_TX_BURST 512 #define MAX_RX_BURST 32 #define APPL_MODE_UDP 0 /**< UDP mode */ @@ -1311,7 +1312,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) appl_args->payload = 56; appl_args->timeout = -1; appl_args->interval = DEFAULT_PKT_INTERVAL; - appl_args->udp_tx_burst = 16; + appl_args->udp_tx_burst = DEFAULT_UDP_TX_BURST; appl_args->srcport = 0; appl_args->dstport = 0;