Skip to content

Commit

Permalink
xdp-dump/xdpdump.h: Increase MAX_CPUS to 512
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lucashc authored and tohojo committed Mar 4, 2025
1 parent 9cd2ed6 commit bf4e962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdp-dump/xdpdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf4e962

Please sign in to comment.