]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - samples/pktgen/pktgen_sample01_simple.sh
pktgen: Specify num packets per thread
[mirror_ubuntu-artful-kernel.git] / samples / pktgen / pktgen_sample01_simple.sh
index 29ef4ba507963e5d185bebe94af879f8ed831962..35b7fe34bda29404d28c2ca9e5923a61edae8d0d 100755 (executable)
@@ -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