Skip to content

Commit

Permalink
MIPS: Add missing file for eBPF JIT.
Browse files Browse the repository at this point in the history
Inexplicably, commit f381bf6 ("MIPS: Add support for eBPF JIT.")
lost a file somewhere on its path to Linus' tree.  Add back the
missing ebpf_jit.c so that we can build with CONFIG_BPF_JIT selected.

This version of ebpf_jit.c is identical to the original except for two
minor change need to resolve conflicts with changes merged from the
BPF branch:

A) Set prog->jited_len = image_size;
B) Use BPF_TAIL_CALL instead of BPF_CALL | BPF_X

Fixes: f381bf6 ("MIPS: Add support for eBPF JIT.")
Signed-off-by: David Daney <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
daviddaney authored and davem330 committed Aug 4, 2017
1 parent 7a97325 commit b6bd53f
Showing 1 changed file with 1,950 additions and 0 deletions.
Loading

0 comments on commit b6bd53f

Please sign in to comment.