Linux PCI Non-Transparent Bridge framework and drivers
 help / color / mirror / Atom feed
* [PATCH] NTB: ntb_test: fix bug printing ntb_perf results
@ 2017-06-05 16:13 Logan Gunthorpe
  2017-06-05 17:58 ` Allen Hubbe
  2017-06-21  7:22 ` kpriyambada48
  0 siblings, 2 replies; 3+ messages in thread
From: Logan Gunthorpe @ 2017-06-05 16:13 UTC (permalink / raw)
  To: linux-ntb; +Cc: Logan Gunthorpe, Jon Mason, Allen Hubbe

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 <logang@deltatee.com>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Allen Hubbe <Allen.Hubbe@dell.com>
---

 Oops, this was my own bug.

 tools/testing/selftests/ntb/ntb_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/ntb/ntb_test.sh b/tools/testing/selftests/ntb/ntb_test.sh
index a676d3eefefb..13f5198ba0ee 100755
--- a/tools/testing/selftests/ntb/ntb_test.sh
+++ b/tools/testing/selftests/ntb/ntb_test.sh
@@ -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
--
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-21  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 16:13 [PATCH] NTB: ntb_test: fix bug printing ntb_perf results Logan Gunthorpe
2017-06-05 17:58 ` Allen Hubbe
2017-06-21  7:22 ` kpriyambada48

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox