Skip to content

Commit bf4e962

Browse files
lucashctohojo
authored andcommitted
xdp-dump/xdpdump.h: Increase MAX_CPUS to 512
Previously, MAX_CPUS was set to 256. This causes the tool to exit with a failure on systems with more than 256 CPUs. For example, an AMD EPYC server with two AMD EPYC 9684X 96-Core Processors reports 384 CPUs to the kernel due to hyperthreading. This fix allows such systems to run the xdpdump utility. Signed-off-by: Lucas Crijns <[email protected]>
1 parent 9cd2ed6 commit bf4e962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xdp-dump/xdpdump.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
******************************************************************************/
1212
#define PERF_MAX_WAKEUP_EVENTS 64
1313
#define PERF_MMAP_PAGE_COUNT 256
14-
#define MAX_CPUS 256
14+
#define MAX_CPUS 512
1515

1616
/******************************************************************************
1717
* General used macros

0 commit comments

Comments
 (0)