From 918212dd93682ef472248fb606f63e11eda817b6 Mon Sep 17 00:00:00 2001 From: zhongxuan Date: Fri, 24 Sep 2021 14:20:30 +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..f8f1f69 --- /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 2021-05-10 15:58:48.000000000 +0800 ++++ b/infiniband-diags/ibsysstat.c 2021-09-24 14:15:26.226938502 +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 5c577cd..1b5dc47 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -1,6 +1,6 @@ Name: rdma-core Version: 35.0 -Release: 1 +Release: 2 Summary: RDMA core userspace libraries and daemons License: GPLv2 or BSD Url: https://github.com/linux-rdma/rdma-core @@ -48,6 +48,8 @@ Obsoletes: openib-srptools <= 0.0.6 Conflicts: infiniband-diags <= 1.6.7 +Patch9004: fixbug-increase-maximum-number-of-cpus-rdma.patch + %{?systemd_requires} %define CMAKE_FLAGS -GNinja @@ -247,6 +249,12 @@ rm -f %{buildroot}/%{_sbindir}/srp_daemon.sh %{_mandir}/* %changelog +* Thu Sep 23 2021 zhongxuan - 35.0-2 +- Type: bugfix +- CVE: NA +- SUG: NA +- DESC: increase maximum number of cpus + * Fri Aug 30 2021 liyangyang - 35.0-1 - DESC: Currently 28.1 is not commercially available and need to be modified to 35.0 with more complete features -- Gitee