Skip to content

Commit 07ece0d

Browse files
committed
Perftest: disable T10DIF due to performance overhead
Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
1 parent 24889e5 commit 07ece0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ AC_TRY_LINK([
206206
#include <infiniband/mlx5dv.h>],
207207
[int x = MLX5DV_CONTEXT_MASK_SIGNATURE_OFFLOAD;],[HAVE_SIG_OFFLOAD=yes], [HAVE_SIG_OFFLOAD=no])
208208
AM_CONDITIONAL([HAVE_SIG_OFFLOAD],[test "x$HAVE_SIG_OFFLOAD" = "xyes"])
209+
HAVE_SIG_OFFLOAD=no
209210
if [test $HAVE_SIG_OFFLOAD = yes] && [test $HAVE_MLX5DV = yes]; then
210211
AC_DEFINE([HAVE_SIG_OFFLOAD], [1], [Have signutre offload support])
211212
fi

src/perftest_resources.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,7 @@ static uint32_t get_device_vendor(struct ibv_context *context)
17391739
/******************************************************************************
17401740
*
17411741
******************************************************************************/
1742+
#ifdef HAVE_SIG_OFFLOAD
17421743
static int is_sig_offload_supported(struct ibv_context *ibv_ctx)
17431744
{
17441745
uint32_t is_mlnx_device = get_device_vendor(ibv_ctx) == MLNX_VENDOR_ID;
@@ -1760,7 +1761,7 @@ static int is_sig_offload_supported(struct ibv_context *ibv_ctx)
17601761

17611762
return 1;
17621763
}
1763-
1764+
#endif
17641765
/******************************************************************************
17651766
*
17661767
******************************************************************************/
@@ -1965,7 +1966,7 @@ static struct ibv_mr *register_mr(struct pingpong_context *ctx,
19651966
fprintf(stderr, "Couldn't get data direct sysfs path with error=%d\n", error);
19661967
if (error == ENODEV)
19671968
fprintf(stderr, "No data direct support\n");
1968-
return FAILURE;
1969+
return NULL;
19691970
}
19701971
printf("Using data direct device at /sys%s\n", data_direct_path);
19711972
printf("Calling mlx5dv_reg_dmabuf_mr(offset=%lu, size=%lu, addr=%p, fd=%d) for QP #%d\n",

0 commit comments

Comments
 (0)