From 5a9ca6230ed00f5cb15401dbdb516734f8d17328 Mon Sep 17 00:00:00 2001 From: Ivan Koveshnikov Date: Mon, 29 Mar 2021 16:12:15 +0500 Subject: trafgen: allow to set packet rate in kpps and Mpps Signed-off-by: Ivan Koveshnikov --- trafgen.8 | 2 +- trafgen.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/trafgen.8 b/trafgen.8 index 7d31b70..1b032b2 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -156,7 +156,7 @@ and TX_RING performance, Furthermore, the TX_RING interface does not cope with interpacket gaps. .TP .B -b , --rate -Specify the packet send rate pps/B/kB/MB/GB/kbit/Mbit/Gbit/KiB/MiB/GiB units. +Specify the packet send rate pps/kpps/Mpps/B/kB/MB/GB/kbit/Mbit/Gbit/KiB/MiB/GiB units. Like with the \fB-t\fP/\fB--gap\fP option, the packets are sent in slow mode. .TP .B -S , --ring-size diff --git a/trafgen.c b/trafgen.c index d024ab4..0f52cfe 100644 --- a/trafgen.c +++ b/trafgen.c @@ -197,7 +197,7 @@ static void __noreturn help(void) " -r|--rand Randomize packet selection (def: round robin)\n" " -P|--cpus Specify number of forks(<= CPUs) (def: #CPUs)\n" " -t|--gap