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

Vineet Gupta vgupta at kernel.org
Tue Feb 13 21:53:19 PST 2024


+CC Bjorn

On 2/13/24 18:39, Alexei Starovoitov wrote:
> 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.

I'd be happy to take it via ARC tree and can review some of the arch
specific bits, but I'd hope BPF folks also review it critically.

Thx,
-Vineet

> Could you share performance numbers interpreter vs JITed ?




More information about the linux-snps-arc mailing list