increase maximum number of cpus

Signed-off-by: zhongxuan <zhongxuan2@huawei.com>
This commit is contained in:
zhongxuan 2021-09-23 22:00:22 +08:00 committed by jinag12
parent 52401cd698
commit bc23749c6c
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -ur rdma-core-35.0.old/infiniband-diags/ibsysstat.c rdma-core-35.0/infiniband-diags/ibsysstat.c
--- rdma-core-35.0.old/infiniband-diags/ibsysstat.c 2021-05-10 15:58:48.000000000 +0800
+++ rdma-core-35.0/infiniband-diags/ibsysstat.c 2021-09-24 10:59:28.653893593 +0800
@@ -41,7 +41,7 @@
#include "ibdiag_common.h"
-#define MAX_CPUS 8
+#define MAX_CPUS 256
static struct ibmad_port *srcport;

View File

@ -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
Patch9002: 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 <zhongxuan2@huawei.com> - 35.0-2
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: increase maximum number of cpus
* Fri Jul 2 2021 liyangyang <liyangyang20@huawei.com> - 35.0-1
- Type: bugfix
- ID: NA