1 Star 0 Fork 23

yang_chenguang/perftest

forked from src-openEuler/perftest 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-perftest_parameters-Add-inline-feature-support-of-ER.patch 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
tcc@hello 提交于 2022-11-22 23:52 . Replace patches with community version
From 7389878920aba23a6b86a376a601bacd03ca9f41 Mon Sep 17 00:00:00 2001
From: Cheng Xu <[email protected]>
Date: Wed, 26 Oct 2022 10:39:10 +0800
Subject: perftest_parameters: Add inline feature support of ERDMA device
Let perftest recognize ERDMA device and set the correct max inline size.
Signed-off-by: Cheng Xu <[email protected]>
---
src/perftest_parameters.c | 3 +++
src/perftest_parameters.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c
index 448592a..1d26e4f 100755
--- a/src/perftest_parameters.c
+++ b/src/perftest_parameters.c
@@ -1865,6 +1865,7 @@ enum ctx_device ib_dev_name(struct ibv_context *context)
case 55300 : dev_fname = NETXTREME; break;
case 61344 : dev_fname = EFA; break;
case 61345 : dev_fname = EFA; break;
+ case 4223 : dev_fname = ERDMA; break;
default : dev_fname = UNKNOWN;
}
}
@@ -2036,6 +2037,8 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param
user_param->inline_size = 32;
else if (current_dev == QLOGIC_E4)
user_param->inline_size = 128;
+ else if (current_dev == ERDMA)
+ user_param->inline_size = 96;
} else {
user_param->inline_size = 0;
diff --git a/src/perftest_parameters.h b/src/perftest_parameters.h
index dcf6214..bfd42f0 100755
--- a/src/perftest_parameters.h
+++ b/src/perftest_parameters.h
@@ -333,6 +333,7 @@ enum ctx_device {
CONNECTX7 = 26,
QLOGIC_AHP = 27,
BLUEFIELD3 = 28,
+ ERDMA = 29,
};
/* Units for rate limiter */
--
2.34.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangchen_guang/perftest.git
[email protected]:yangchen_guang/perftest.git
yangchen_guang
perftest
perftest
master

搜索帮助