Re: [PATCH bpf-next v2] selftests/bpf: Fix incorrect array size calculation

2025-09-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Tue, 9 Sep 2025 20:47:04 +0800 you wrote: > The loop in bench_sockmap_prog_destroy() has two issues: > > 1. Using 'sizeof(ctx.fds)' as the loop bound results in the number of >bytes, not the number of file de

[PATCH bpf-next v2] selftests/bpf: Fix incorrect array size calculation

2025-09-18 Thread Jiayuan Chen
The loop in bench_sockmap_prog_destroy() has two issues: 1. Using 'sizeof(ctx.fds)' as the loop bound results in the number of bytes, not the number of file descriptors, causing the loop to iterate far more times than intended. 2. The condition 'ctx.fds[0] > 0' incorrectly checks only the f