]> git.feebdaed.xyz Git - 0xmirror/xdp-tools.git/commitdiff
xdp-dump/xdpdump.h: Increase MAX_CPUS to 512
authorLucas Crijns <lucascrijns@gmail.com>
Mon, 3 Mar 2025 13:28:13 +0000 (14:28 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Tue, 4 Mar 2025 14:20:44 +0000 (15:20 +0100)
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 <lucascrijns@gmail.com>
xdp-dump/xdpdump.h

index d4eaef233c8c118b9ea3c7afdd746fe43ee058e0..9f6a4db84392717e7394fd9aed380a110628ddb2 100644 (file)
@@ -11,7 +11,7 @@
  ******************************************************************************/
 #define PERF_MAX_WAKEUP_EVENTS   64
 #define PERF_MMAP_PAGE_COUNT   256
-#define MAX_CPUS               256
+#define MAX_CPUS               512
 
 /******************************************************************************
  * General used macros