Commit 6a939460 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

ioat/perf: exit early if no channels found



If no channels are available, don't try to run the test.

Change-Id: I4c40635a3da598064da7c94b3c7960a83ba25f8f
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 59408ad2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -542,6 +542,12 @@ main(int argc, char **argv)
		goto cleanup;
	}

	if (g_ioat_chan_num == 0) {
		printf("No channels found\n");
		rc = 0;
		goto cleanup;
	}

	if (g_user_config.ioat_chan_num > g_ioat_chan_num) {
		printf("%d channels are requested, but only %d are found,"
		       "so only test %d channels\n", g_user_config.ioat_chan_num,