Skip to content

Commit

Permalink
riscv, bpf: Add support for far branching
Browse files Browse the repository at this point in the history
This commit adds branch relaxation to the BPF JIT, and with that
support for far (offset greater than 12b) branching.

The branch relaxation requires more than two passes to converge. For
most programs it is three passes, but for larger programs it can be
more.

Signed-off-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Luke Nelson <lukenels@cs.washington.edu>
Link: https://lore.kernel.org/bpf/20191216091343.23260-3-bjorn.topel@gmail.com
  • Loading branch information
Björn Töpel authored and Daniel Borkmann committed Dec 19, 2019
1 parent f1003b7 commit 7d1ef13
Showing 1 changed file with 188 additions and 164 deletions.
Loading

0 comments on commit 7d1ef13

Please sign in to comment.