diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-06-15 18:07:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-16 18:32:34 +0200 |
commit | 69137ea60c9dad58773a1918de6c1b00b088520c (patch) | |
tree | 6300bfe517a2d5cb0c0e8edb71fd6119988d2ec4 /samples/pktgen/pktgen_sample01_simple.sh | |
parent | Merge branch 'net-mvmdio-add-xMDIO-xSMI-support' (diff) | |
download | linux-69137ea60c9dad58773a1918de6c1b00b088520c.tar.xz linux-69137ea60c9dad58773a1918de6c1b00b088520c.zip |
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_sample01_simple.sh')
-rwxr-xr-x | samples/pktgen/pktgen_sample01_simple.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pktgen/pktgen_sample01_simple.sh b/samples/pktgen/pktgen_sample01_simple.sh index 29ef4ba50796..35b7fe34bda2 100755 --- a/samples/pktgen/pktgen_sample01_simple.sh +++ b/samples/pktgen/pktgen_sample01_simple.sh @@ -20,10 +20,10 @@ fi [ -z "$CLONE_SKB" ] && CLONE_SKB="0" # Example enforce param "-m" for dst_mac [ -z "$DST_MAC" ] && usage && err 2 "Must specify -m dst_mac" +[ -z "$COUNT" ] && COUNT="100000" # Zero means indefinitely # Base Config DELAY="0" # Zero means max speed -COUNT="100000" # Zero means indefinitely # Flow variation random source port between min and max UDP_MIN=9 |