]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
riscv, bpf: Increase the maximum number of iterations
authorBjörn Töpel <bjorn@kernel.org>
Thu, 28 Oct 2021 16:10:54 +0000 (18:10 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 1 Nov 2021 16:08:21 +0000 (17:08 +0100)
commit4b54214f39ff24a7e9b7231ae9c05d1c2c424280
treeec51e09dc94fe14d5a085905ecac3fc1159d01ad
parentd69672147faa2a7671c0779fa5b9ad99e4fca4e3
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 <bjorn@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211028161057.520552-2-bjorn@kernel.org
arch/riscv/net/bpf_jit_core.c