代码拉取完成,页面将自动刷新
From 3dcb9a00f4f92bfb842ff7b670f1fd2b30bbf89a Mon Sep 17 00:00:00 2001
From: Chengchang Tang <[email protected]>
Date: Tue, 8 Nov 2022 20:20:41 +0800
Subject: Perftest: Add support for HNS
Add support for HNS device by making it recognized by perftest.
Make the perftest allow testing new post send method for hns roce.
And a suitable default inline data size is applied.
Signed-off-by: Chengchang Tang <[email protected]>
---
src/perftest_parameters.c | 9 +++++++++
src/perftest_parameters.h | 1 +
src/perftest_resources.c | 3 ++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c
index 1d26e4f..9c49265 100755
--- a/src/perftest_parameters.c
+++ b/src/perftest_parameters.c
@@ -1866,6 +1866,13 @@ enum ctx_device ib_dev_name(struct ibv_context *context)
case 61344 : dev_fname = EFA; break;
case 61345 : dev_fname = EFA; break;
case 4223 : dev_fname = ERDMA; break;
+ case 41506 : dev_fname = HNS; break;
+ case 41507 : dev_fname = HNS; break;
+ case 41508 : dev_fname = HNS; break;
+ case 41509 : dev_fname = HNS; break;
+ case 41510 : dev_fname = HNS; break;
+ case 41512 : dev_fname = HNS; break;
+ case 41519 : dev_fname = HNS; break;
default : dev_fname = UNKNOWN;
}
}
@@ -2039,6 +2046,8 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param
user_param->inline_size = 128;
else if (current_dev == ERDMA)
user_param->inline_size = 96;
+ else if (current_dev == HNS)
+ user_param->inline_size = 32;
} else {
user_param->inline_size = 0;
diff --git a/src/perftest_parameters.h b/src/perftest_parameters.h
index 9a4d2bb..909d771 100755
--- a/src/perftest_parameters.h
+++ b/src/perftest_parameters.h
@@ -334,6 +334,7 @@ enum ctx_device {
QLOGIC_AHP = 27,
BLUEFIELD3 = 28,
ERDMA = 29,
+ HNS = 30,
};
/* Units for rate limiter */
diff --git a/src/perftest_resources.c b/src/perftest_resources.c
index 751ea96..bcec080 100755
--- a/src/perftest_resources.c
+++ b/src/perftest_resources.c
@@ -1818,7 +1818,8 @@ int verify_params_with_device_context(struct ibv_context *context,
current_dev != BLUEFIELD &&
current_dev != BLUEFIELD2 &&
current_dev != BLUEFIELD3 &&
- current_dev != EFA)
+ current_dev != EFA &&
+ current_dev != HNS)
{
if (!user_param->use_old_post_send)
{
--
2.34.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。