]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add missing file for eBPF JIT.
authorDavid Daney <david.daney@cavium.com>
Fri, 4 Aug 2017 00:10:12 +0000 (17:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:23:58 +0000 (11:23 -0700)
commitc7dde855c63998fb502382ad13fe5290484a638e
tree7990186055798629ae3a957035da8c5fb90b58bf
parentc574a37e6589e885aef0b5094317b460eaa1e70b
MIPS: Add missing file for eBPF JIT.

Inexplicably, commit a5d288577122 ("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: a5d288577122 ("MIPS: Add support for eBPF JIT.")
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mips/net/ebpf_jit.c [new file with mode: 0644]