Skip to content

Commit

Permalink
NTB: ntb_test: fix bug printing ntb_perf results
Browse files Browse the repository at this point in the history
The code mistakenly prints the local perf results for the remote test
so the script reports identical results for both directions. Fix this
by ensuring we print the remote result.

Signed-off-by: Logan Gunthorpe <[email protected]>
Fixes: a9c59ef ("ntb_test: Add a selftest script for the NTB subsystem")
Acked-by: Allen Hubbe <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
lsgunth authored and jonmason committed Jun 19, 2017
1 parent 94fc795 commit 07b0b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/ntb/ntb_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function perf_test()
echo "Running remote perf test $WITH DMA"
write_file "" $REMOTE_PERF/run
echo -n " "
read_file $LOCAL_PERF/run
read_file $REMOTE_PERF/run
echo " Passed"

_modprobe -r ntb_perf
Expand Down

0 comments on commit 07b0b22

Please sign in to comment.