]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - samples/pktgen/pktgen_sample02_multiqueue.sh
pktgen: Specify num packets per thread
[mirror_ubuntu-artful-kernel.git] / samples / pktgen / pktgen_sample02_multiqueue.sh
index c88a161d3e6f6d7a612a147d6c340d867b58e58c..164194d1c79b4a4331680519c3582b4108397d0e 100755 (executable)
@@ -13,9 +13,10 @@ root_check_run_with_sudo "$@"
 # Required param: -i dev in $DEV
 source ${basedir}/parameters.sh
 
+[ -z "$COUNT" ] && COUNT="100000" # Zero means indefinitely
+
 # Base Config
 DELAY="0"        # Zero means max speed
-COUNT="100000"   # Zero means indefinitely
 [ -z "$CLONE_SKB" ] && CLONE_SKB="0"
 
 # Flow variation random source port between min and max