diff --git a/.gitignore b/.gitignore index 571dd5d..f886f8a 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ noarch/ /perftest-4.5-0.12.ge93c538.tar.gz /perftest-4.5-0.20.gac7cca5.tar.gz /perftest-23.04.0-0.23.g63e250f.tar.gz +/perftest-23.07.0-0.27.g117a291.tar.gz diff --git a/.perftest.metadata b/.perftest.metadata new file mode 100644 index 0000000..c8a6c6e --- /dev/null +++ b/.perftest.metadata @@ -0,0 +1 @@ +c0aed68dc4110159e1eca730c2d48666dfef5b71 perftest-23.07.0-0.27.g117a291.tar.gz diff --git a/0001-perftest-Add-Intel-device-names-and-inline-data-size.patch b/0001-perftest-Add-Intel-device-names-and-inline-data-size.patch deleted file mode 100644 index 98cb39e..0000000 --- a/0001-perftest-Add-Intel-device-names-and-inline-data-size.patch +++ /dev/null @@ -1,76 +0,0 @@ -From 73f7d86b37a0b0d4e731ef62047f2ad2ba2a111f Mon Sep 17 00:00:00 2001 -From: Tatyana Nikolova -Date: Mon, 13 Mar 2023 21:40:04 -0500 -Subject: [PATCH] perftest: Add Intel device names and inline data sizes - -Add two Intel devices and their corresponding -inline data sizes. - -Signed-off-by: Tatyana Nikolova -Signed-off-by: Kamal Heib ---- - src/perftest_parameters.c | 12 ++++++++++-- - src/perftest_parameters.h | 3 ++- - 2 files changed, 12 insertions(+), 3 deletions(-) - -diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c -index a587df3beb06..6b87621cea0e 100755 ---- a/src/perftest_parameters.c -+++ b/src/perftest_parameters.c -@@ -1794,7 +1794,11 @@ enum ctx_device ib_dev_name(struct ibv_context *context) - If you want Inline support in other vendor devices, please send patch to gilr@dev.mellanox.co.il - */ - } else if (attr.vendor_id == 0x8086) { -- dev_fname = INTEL_ALL; -+ switch (attr.vendor_part_id) { -+ case 14289 : dev_fname = INTEL_GEN1; break; -+ case 5522 : dev_fname = INTEL_GEN2; break; -+ default : dev_fname = INTEL_GEN2; break; -+ } - } else { - - //coverity[uninit_use] -@@ -2080,7 +2084,7 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param - return; - } - #endif -- if (user_param->tst ==LAT) { -+ if (user_param->tst == LAT) { - switch(user_param->verb) { - case WRITE: user_param->inline_size = (user_param->connection_type == DC)? DEF_INLINE_DC : DEF_INLINE_WRITE; break; - case SEND : user_param->inline_size = (user_param->connection_type == DC)? DEF_INLINE_DC : (user_param->connection_type == UD)? DEF_INLINE_SEND_UD : -@@ -2097,6 +2101,10 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param - user_param->inline_size = 96; - else if (current_dev == HNS) - user_param->inline_size = 32; -+ else if (current_dev == INTEL_GEN1) -+ user_param->inline_size = 48; -+ else if (current_dev == INTEL_GEN2) -+ user_param->inline_size = 101; - - } else { - user_param->inline_size = 0; -diff --git a/src/perftest_parameters.h b/src/perftest_parameters.h -index f2080fad0b6d..2f846f78f1c2 100755 ---- a/src/perftest_parameters.h -+++ b/src/perftest_parameters.h -@@ -373,7 +373,7 @@ enum ctx_device { - MLX5GENVF = 19, - BLUEFIELD = 20, - BLUEFIELD2 = 21, -- INTEL_ALL = 22, -+ INTEL_GEN1 = 22, - NETXTREME = 23, - EFA = 24, - CONNECTX6LX = 25, -@@ -383,6 +383,7 @@ enum ctx_device { - ERDMA = 29, - HNS = 30, - CONNECTX8 = 31, -+ INTEL_GEN2 = 32, - }; - - /* Units for rate limiter */ --- -2.41.0 - diff --git a/perftest.spec b/perftest.spec index b5cfdff..91e2dd0 100644 --- a/perftest.spec +++ b/perftest.spec @@ -3,13 +3,12 @@ Summary: IB Performance Tests # Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead. # Issue "Please avoid dashes in version": # https://github.com/linux-rdma/perftest/issues/18 -%global upstream_ver 23.04.0-0.23 +%global upstream_ver 23.07.0-0.27 Version: %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))} -Release: 2%{?dist} +Release: 1%{?dist} License: GPLv2 or BSD -Source: https://github.com/linux-rdma/perftest/releases/download/23.04.0-0.23/perftest-23.04.0-0.23.g63e250f.tar.gz +Source: https://github.com/linux-rdma/perftest/releases/download/23.07.0-0.27/perftest-23.07.0-0.27.g117a291.tar.gz Url: https://github.com/linux-rdma/perftest -Patch01: 0001-perftest-Add-Intel-device-names-and-inline-data-size.patch BuildRequires: make BuildRequires: gcc @@ -32,7 +31,6 @@ RDMA networks. %setup -q -n %{name}-%{tarball_ver} find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';' -%patch01 -p1 %build %configure @@ -49,6 +47,10 @@ done %_bindir/* %changelog +* Thu Oct 26 2023 Kamal Heib - 23.07.0.0.27-1 +- Update to upstream release 23.07.0.0.27 +- Resolves: RHEL-1271 + * Tue Jul 18 2023 Kamal Heib - 23.04.0.0.23-2 - Add missing Intel Parameters - Resolves: rhbz#2224042 diff --git a/sources b/sources index 6dab4c7..533a07e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (perftest-23.04.0-0.23.g63e250f.tar.gz) = d1c7c27c3d8463e7172fc5ae308bf639eb8c772e7652a5c398bca56968ea8cc93f610fc09c466f66c7641362d05ab9f43c9a0eff3dcdfb58ecd723353c3c60a9 +SHA512 (perftest-23.07.0-0.27.g117a291.tar.gz) = b790d2e324b33967501599b21b8ea4a89e8b1a667656f77c673701cb0987cc65011e6cee8116f42bf316cdd3d8d9cb91b2a6f1e8700838617aa9701f0b645a85