From 181abdc0214f328f9e574067edcf3f7367b00260 Mon Sep 17 00:00:00 2001 From: Hassan Khadour Date: Mon, 20 Mar 2023 16:34:03 +0200 Subject: [PATCH] Perftest: Add support for CONNECTX8. Add support for CONNECTX8 device by making it recognized by perftest. Unrecognized devices will use the old post send method that doesn't support some features(for example DC qp type). Making the CONENCTX8 device recognized by perftest will allow it to use the new post send method that contains features the device couldn't apply in the past. Signed-off-by: Hassan Khadour --- src/perftest_parameters.c | 1 + src/perftest_parameters.h | 1 + src/perftest_resources.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c index 0ad14bc2..a587df3b 100755 --- a/src/perftest_parameters.c +++ b/src/perftest_parameters.c @@ -1818,6 +1818,7 @@ enum ctx_device ib_dev_name(struct ibv_context *context) case 4126 : dev_fname = MLX5GENVF; break; case 4127 : dev_fname = CONNECTX6LX; break; case 4129 : dev_fname = CONNECTX7; break; + case 4131 : dev_fname = CONNECTX8; break; case 41682 : dev_fname = BLUEFIELD; break; case 41683 : dev_fname = BLUEFIELD; break; case 41686 : dev_fname = BLUEFIELD2; break; diff --git a/src/perftest_parameters.h b/src/perftest_parameters.h index d90f1879..f2080fad 100755 --- a/src/perftest_parameters.h +++ b/src/perftest_parameters.h @@ -382,6 +382,7 @@ enum ctx_device { BLUEFIELD3 = 28, ERDMA = 29, HNS = 30, + CONNECTX8 = 31, }; /* Units for rate limiter */ diff --git a/src/perftest_resources.c b/src/perftest_resources.c index ac50f91e..35979e44 100755 --- a/src/perftest_resources.c +++ b/src/perftest_resources.c @@ -2149,6 +2149,7 @@ int verify_params_with_device_context(struct ibv_context *context, current_dev != CONNECTX6DX && current_dev != CONNECTX6LX && current_dev != CONNECTX7 && + current_dev != CONNECTX8 && current_dev != MLX5GENVF && current_dev != BLUEFIELD && current_dev != BLUEFIELD2 &&