Skip to content

Commit

Permalink
Fallback to ibv_post_send() for devices not supporting ibv_wr* API
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Akhmedzhanov <dmitryak@mellanox.com>
  • Loading branch information
Dmitry Akhmedzhanov committed May 9, 2020
1 parent 54b2598 commit 1dbb125
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,12 +1394,25 @@ int verify_params_with_device_context(struct ibv_context *context,
}
}

if (current_dev == CONNECTX3_PRO || current_dev == CONNECTX3)
// those are devices supporting new post send
if (current_dev != CONNECTIB &&
current_dev != CONNECTX4 &&
current_dev != CONNECTX4LX &&
current_dev != CONNECTX5 &&
current_dev != CONNECTX5EX &&
current_dev != CONNECTX6 &&
current_dev != CONNECTX6DX &&
current_dev != CONNECTX6LX &&
current_dev != CONNECTX7 &&
current_dev != MLX5GENVF &&
current_dev != BLUEFIELD &&
current_dev != BLUEFIELD2 &&
current_dev != EFA)
{
if (!user_param->use_old_post_send)
{
fprintf(stderr, " Warning: ConnectX-3 and ConnectX-3 Pro don't support WR postsend API!\n");
fprintf(stderr, " Warning: Falling back to ibv_post_send() API\n");
fprintf(stderr, " Warning: The device chosen doesn't support WR post send API!\n");
fprintf(stderr, " Warning: Falling back to using ibv_post_send()\n");
user_param->use_old_post_send = 1;
}
}
Expand Down

0 comments on commit 1dbb125

Please sign in to comment.