selftests/bpf: Fix ringbuf/ringbuf_write test failure with arm64 64KB page size

[ Upstream commit 8c8c5e3c85 ]

The ringbuf max_entries must be PAGE_ALIGNED. See kernel function
ringbuf_map_alloc(). So for arm64 64KB page size, adjust max_entries
and other related metrics properly.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20250607013621.1552332-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yonghong Song 2025-06-06 18:36:21 -07:00 • committed by Greg Kroah-Hartman
commit e49253b504
2 changed files with 4 additions and 4 deletions