diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-06-15 19:07:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-16 19:32:34 +0300 |
commit | e0e16672ee9e2c31d9601d762cf934196b13a7fc (patch) | |
tree | fe98cc2b576624b43bd00dbebcdcb2636d952401 /samples/pktgen/pktgen_sample05_flow_per_thread.sh | |
parent | 69137ea60c9dad58773a1918de6c1b00b088520c (diff) | |
download | linux-e0e16672ee9e2c31d9601d762cf934196b13a7fc.tar.xz |
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_sample05_flow_per_thread.sh')
-rwxr-xr-x | samples/pktgen/pktgen_sample05_flow_per_thread.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pktgen/pktgen_sample05_flow_per_thread.sh b/samples/pktgen/pktgen_sample05_flow_per_thread.sh index f4fb79409fd0..ac9cfd6b2c0a 100755 --- a/samples/pktgen/pktgen_sample05_flow_per_thread.sh +++ b/samples/pktgen/pktgen_sample05_flow_per_thread.sh @@ -30,7 +30,7 @@ DELAY="0" # Zero means max speed 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 dev=${DEV}@${thread} # Add remove all other devices and add_device $dev to thread @@ -66,7 +66,7 @@ done # Run if user hits control-c function print_result() { # 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:" |