DPDK patches and discussions
 help / color / mirror / Atom feed
From: Julien Castets <castets.j@gmail.com>
To: dev@dpdk.org
Cc: Julien Castets <jcastets@scaleway.com>
Subject: [dpdk-dev] [PATCH] Fix rate computation
Date: Tue, 21 Mar 2017 10:54:40 +0100	[thread overview]
Message-ID: <20170321095440.22216-1-castets.j@gmail.com> (raw)

From: Julien Castets <jcastets@scaleway.com>

Signed-off-by: Julien Castets <jcastets@scaleway.com>
---
 app/pktgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/pktgen.c b/app/pktgen.c
index e315bff..9a304c0 100644
--- a/app/pktgen.c
+++ b/app/pktgen.c
@@ -110,7 +110,7 @@ pktgen_packet_rate(port_info_t *info)
 	uint64_t cpp = (pps > 0) ? (pktgen.hz / pps) : (pktgen.hz / 4);
 
 	info->tx_pps    = pps;
-	info->tx_cycles = ((cpp * info->tx_burst) / get_port_txcnt(pktgen.l2p, info->pid));
+	info->tx_cycles = ((cpp * info->tx_burst) * get_port_txcnt(pktgen.l2p, info->pid));
 }
 
 /**************************************************************************//**
-- 
2.11.0

             reply	other threads:[~2017-03-21  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21  9:54 Julien Castets [this message]
2017-03-21 14:48 ` Wiles, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170321095440.22216-1-castets.j@gmail.com \
    --to=castets.j@gmail.com \
    --cc=dev@dpdk.org \
    --cc=jcastets@scaleway.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).