aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/pktgen/pktgen_sample02_multiqueue.sh
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2017-06-15 19:07:22 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-16 12:32:34 -0400
commite0e16672ee9e2c31d9601d762cf934196b13a7fc (patch)
treefe98cc2b576624b43bd00dbebcdcb2636d952401 /samples/pktgen/pktgen_sample02_multiqueue.sh
parentpktgen: Specify num packets per thread (diff)
downloadwireguard-linux-e0e16672ee9e2c31d9601d762cf934196b13a7fc.tar.xz
wireguard-linux-e0e16672ee9e2c31d9601d762cf934196b13a7fc.zip
pktgen: Specify the index of first thread
Use "-f <num>", to specify the index of the first sender thread. In default first thread is #0. 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_sample02_multiqueue.sh')
-rwxr-xr-xsamples/pktgen/pktgen_sample02_multiqueue.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pktgen/pktgen_sample02_multiqueue.sh b/samples/pktgen/pktgen_sample02_multiqueue.sh
index 164194d1c79b..cbdd3e2bceff 100755
--- a/samples/pktgen/pktgen_sample02_multiqueue.sh
+++ b/samples/pktgen/pktgen_sample02_multiqueue.sh
@@ -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:"