perftest/0001-Set-default-un-support-for-contig-memory.patch
Honggang Li b2ba9b0f98 Rebase to latest upstream release V4.2-0.5
Resolves: bz1568309

Signed-off-by: Honggang Li <honli@redhat.com>
2018-04-17 22:23:35 -04:00

37 lines
1.2 KiB
Diff

From 198473181e0365f97c5840b8fd406ff52af6335b Mon Sep 17 00:00:00 2001
From: Zohar Ben Aharon <zoharb@mellanox.com>
Date: Wed, 14 Mar 2018 10:33:59 +0200
Subject: [PATCH] Set default un-support for contig memory
By default we will not support this since it is EXP verbs supported
Signed-off-by: Zohar Ben Aharon <zoharb@mellanox.com>
---
src/perftest_resources.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/perftest_resources.c b/src/perftest_resources.c
index c983105..c0c098a 100755
--- a/src/perftest_resources.c
+++ b/src/perftest_resources.c
@@ -1455,13 +1455,12 @@ int ctx_init(struct pingpong_context *ctx, struct perftest_parameters *user_para
}
#endif
+ ctx->is_contig_supported = FAILURE;
#ifdef HAVE_VERBS_EXP
- ctx->is_contig_supported = check_for_contig_pages_support(ctx->context);
+ if (!user_param->use_hugepages)
+ ctx->is_contig_supported = check_for_contig_pages_support(ctx->context);
#endif
- if (user_param->use_hugepages)
- ctx->is_contig_supported = FAILURE;
-
/* Allocating an event channel if requested. */
if (user_param->use_event) {
ctx->channel = ibv_create_comp_channel(ctx->context);
--
2.17.0