[PATCH bpf-next v1] ARC: Add eBPF JIT support

Alexei Starovoitov alexei.starovoitov at gmail.com
Tue Feb 13 18:39:33 PST 2024


On Tue, Feb 13, 2024 at 5:20 AM Shahab Vahedi <list+bpf at vahedi.org> wrote:
>
> From: Shahab Vahedi <shahab at synopsys.com>
>
> This will add eBPF JIT support to the 32-bit ARCv2 processors. The
> implementation is qualified by running the BPF tests on a Synopsys HSDK
> board with "ARC HS38 v2.1c at 500 MHz" as the 4-core CPU.
...
> Signed-off-by: Shahab Vahedi <shahab at synopsys.com>
> ---
>  Documentation/admin-guide/sysctl/net.rst |    1 +
>  Documentation/networking/filter.rst      |    4 +-
>  arch/arc/Kbuild                          |    1 +
>  arch/arc/Kconfig                         |    1 +
>  arch/arc/net/Makefile                    |    6 +
>  arch/arc/net/bpf_jit.h                   |  161 ++
>  arch/arc/net/bpf_jit_arcv2.c             | 3001 ++++++++++++++++++++++
>  arch/arc/net/bpf_jit_core.c              | 1425 ++++++++++
>  8 files changed, 4598 insertions(+), 2 deletions(-)

This is pretty cool to see.
I'm assuming this will get reviewed and will go through arc.git tree.

Could you share performance numbers interpreter vs JITed ?



More information about the linux-snps-arc mailing list