From 20f982f4711340f791c5c647ff05b90628b469c5 Mon Sep 17 00:00:00 2001 From: zhongxuan Date: Fri, 24 Sep 2021 14:50:27 +0800 Subject: [PATCH] increase maximum number of cpus Signed-off-by: zhongxuan --- fixbug-increase-maximum-number-of-cpus-rdma.patch | 12 ++++++++++++ rdma-core.spec | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 fixbug-increase-maximum-number-of-cpus-rdma.patch diff --git a/fixbug-increase-maximum-number-of-cpus-rdma.patch b/fixbug-increase-maximum-number-of-cpus-rdma.patch new file mode 100644 index 0000000..9b672e3 --- /dev/null +++ b/fixbug-increase-maximum-number-of-cpus-rdma.patch @@ -0,0 +1,12 @@ +diff -ur a/infiniband-diags/ibsysstat.c b/infiniband-diags/ibsysstat.c +--- a/infiniband-diags/ibsysstat.c 2020-04-14 16:28:27.000000000 +0800 ++++ b/infiniband-diags/ibsysstat.c 2021-09-24 14:47:18.367452751 +0800 +@@ -41,7 +41,7 @@ + + #include "ibdiag_common.h" + +-#define MAX_CPUS 8 ++#define MAX_CPUS 256 + + static struct ibmad_port *srcport; + diff --git a/rdma-core.spec b/rdma-core.spec index 35b6433..c395625 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -1,6 +1,6 @@ Name: rdma-core Version: 28.1 -Release: 3 +Release: 4 Summary: RDMA core userspace libraries and daemons License: GPLv2 or BSD Url: https://github.com/linux-rdma/rdma-core @@ -50,6 +50,8 @@ Conflicts: infiniband-diags <= 1.6.7 Patch9001: bugfix-remove-error-msg-when-boot-rdma.patch +Patch9008: fixbug-increase-maximum-number-of-cpus-rdma.patch + %{?systemd_requires} %define CMAKE_FLAGS -GNinja @@ -256,6 +258,12 @@ rm -f %{buildroot}/%{_sbindir}/srp_daemon.sh %{_mandir}/* %changelog +* Thu Sep 23 2021 zhongxuan - 28.1-4 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: increase maximum number of cpus + * Sat Mar 13 2020 majun - 28.1-3 - Type: bugfix - ID: NA -- Gitee