From patchwork Thu Dec 7 13:00:04 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: 120965 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8322520qgn; Thu, 7 Dec 2017 05:01:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMaPUMQo/ME69sKnKrb1dc+6L0FNKzyobo/rVLPOpcZo3k3uVid9jmR6MYYJx4wUIHZTMpF1 X-Received: by 10.129.112.72 with SMTP id l69mr18516539ywc.506.1512651683361; Thu, 07 Dec 2017 05:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512651683; cv=none; d=google.com; s=arc-20160816; b=pXFwnl92BKHEy9u0xrcrOylYoeDxq4mJIdrwdxUnwm6z+4dBWF+wMWBbpWU3zX4iSc gn/tDrYj+4+qLg9Cbcoue7kkO+G31QokYjHyIMfyrLhmNqn0yU5UfhY8wHeVPVzCMdQz WqRLpRUzDTSbbdjl2wIUvAQtg219v4ITuEHszJL3KxitIwI5DY9RavHPPY2Kd2seGC4S AD8ErYrjpVs3DX8mETSGAk3Bg+gYuleZAtORCRuEkEKU6ipHFs7gVX98rpaKvXK3qq+L mkEfiKRj9/eE57+8uxnYSY2iXh7EA5vZ9uPvRiADiGTIHC8aajcCFUnVhvrwdyMaO0/S LnVw== 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=nON5D6Ntv/ZBjJoYRwxTYPrpbvy8CLqiTaiATUhrju0=; b=LEdedcDOY4FT5D7p9R5WBIn0evbXGEoT5cPl/fFwCwjz5Pdm8C3k0L/12kFok/bto+ 1nf7Tt9cszcOjjZ6/CC1z0D20Wd+zKWI7BDUWMnY7/6zJzJUHeep9UdikaCuDpzqvuZE DRchudRZmAZpg6qYbjl81OQcuo4DqupRhFSDoB+eacXJT+dm0+IeGDA/u7qVaY/qAElW bW2aYvGSxwqSOHPwRFx2J/vLRMSqcEgrxylN15mnRkv/Qj5CuXzeEynKVZPMPZ51rxJg 9MkKcwyRKFeR9ejZiL3+e/aCLEyWHy6vHUhAhDpZW0idMQMJEfXoYjDAzZZqIMipVJZS nCKQ== 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 c13si2667499qth.423.2017.12.07.05.01.22; Thu, 07 Dec 2017 05:01:23 -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 D12BB60973; Thu, 7 Dec 2017 13:01:22 +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 B9E7060918; Thu, 7 Dec 2017 13:00:25 +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 AEF2A6091D; Thu, 7 Dec 2017 13:00:16 +0000 (UTC) Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by lists.linaro.org (Postfix) with ESMTPS id 4A2646090A for ; Thu, 7 Dec 2017 13:00:13 +0000 (UTC) Received: from mxback7j.mail.yandex.net (mxback7j.mail.yandex.net [IPv6:2a02:6b8:0:1619::110]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 2CD202A24282 for ; Thu, 7 Dec 2017 16:00:11 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback7j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tOHhtGDhYx-0AbG31iF; Thu, 07 Dec 2017 16:00:11 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5HyJRBoKQy-09QKJs8K; Thu, 07 Dec 2017 16:00:09 +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:04 +0300 Message-Id: <1512651606-28483-3-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 2/4] 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 --- /** 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 | 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;