Skip to content

Commit 4b54214

Browse files
Björn Töpelborkmann
authored andcommitted
riscv, bpf: Increase the maximum number of iterations
Now that BPF programs can be up to 1M instructions, it is not uncommon that a program requires more than the current 16 iterations to converge. Bump it to 32, which is enough for selftests/bpf, and test_bpf.ko. Signed-off-by: Björn Töpel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d696721 commit 4b54214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/net/bpf_jit_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "bpf_jit.h"
1212

1313
/* Number of iterations to try until offsets converge. */
14-
#define NR_JIT_ITERATIONS 16
14+
#define NR_JIT_ITERATIONS 32
1515

1616
static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset)
1717
{

0 commit comments

Comments
 (0)