summaryrefslogtreecommitdiff
path: root/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2017-06-15 19:07:21 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-16 19:32:34 +0300
commit69137ea60c9dad58773a1918de6c1b00b088520c (patch)
tree6300bfe517a2d5cb0c0e8edb71fd6119988d2ec4 /samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
parentcb7fbb6470aaadf6786d00af1664703f794788ac (diff)
downloadlinux-69137ea60c9dad58773a1918de6c1b00b088520c.tar.xz
pktgen: Specify num packets per thread
Use -n <num>, to specify the number of packets every thread sends. Zero means indefinitely. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh')
-rwxr-xr-xsamples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh b/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
index f3e1bedfd77f..d2694a12de61 100755
--- a/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
+++ b/samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh
@@ -39,10 +39,10 @@ if [ -z "$DEST_IP" ]; then
fi
[ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
[ -z "$BURST" ] && BURST=1024
+[ -z "$COUNT" ] && COUNT="10000000" # Zero means indefinitely
# Base Config
DELAY="0" # Zero means max speed
-COUNT="10000000" # Zero means indefinitely
# General cleanup everything since last run
pg_ctrl "reset"