]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - samples/pktgen/pktgen_sample02_multiqueue.sh
pktgen: Specify the index of first thread
[mirror_ubuntu-artful-kernel.git] / samples / pktgen / pktgen_sample02_multiqueue.sh
index 164194d1c79b4a4331680519c3582b4108397d0e..cbdd3e2bceff384bf3e1b1b03bcc7ed65b93b909 100755 (executable)
@@ -33,7 +33,7 @@ fi
 pg_ctrl "reset"
 
 # Threads are specified with parameter -t value in $THREADS
-for ((thread = 0; thread < $THREADS; thread++)); do
+for ((thread = $F_THREAD; thread <= $L_THREAD; thread++)); do
     # The device name is extended with @name, using thread number to
     # make then unique, but any name will do.
     dev=${DEV}@${thread}
@@ -71,7 +71,7 @@ pg_ctrl "start"
 echo "Done" >&2
 
 # Print results
-for ((thread = 0; thread < $THREADS; thread++)); do
+for ((thread = $F_THREAD; thread <= $L_THREAD; thread++)); do
     dev=${DEV}@${thread}
     echo "Device: $dev"
     cat /proc/net/pktgen/$dev | grep -A2 "Result:"