Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1239571

Re: [PATCH net-next V2] ARM: net: support BPF_ALU | BPF_MOD instructions in the BPF JIT.

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH net-next V2] ARM: net: support BPF_ALU | BPF_MOD instructions in the BPF JIT.
Date 2015-10-05 15:50 +0200
Message-ID <qgejn-uJ-7@gated-at.bofh.it> (permalink)
References <qfa8b-6Wx-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Nicolas Schichan <nschichan@freebox.fr>
Date: Fri,  2 Oct 2015 17:06:47 +0200

> For ARMv7 with UDIV instruction support, generate an UDIV instruction
> followed by an MLS instruction.
> 
> For other ARM variants, generate code calling a C wrapper similar to
> the jit_udiv() function used for BPF_ALU | BPF_DIV instructions.
> 
> Some performance numbers reported by the test_bpf module (the duration
> per filter run is reported in nanoseconds, between "jitted:<x>" and
> "PASS":
> 
> ARMv7 QEMU nojit:	test_bpf: #3 DIV_MOD_KX jited:0 2196 PASS
> ARMv7 QEMU jit:		test_bpf: #3 DIV_MOD_KX jited:1 104 PASS
> ARMv5 QEMU nojit:	test_bpf: #3 DIV_MOD_KX jited:0 2176 PASS
> ARMv5 QEMU jit:		test_bpf: #3 DIV_MOD_KX jited:1 1104 PASS
> ARMv5 kirkwood nojit:	test_bpf: #3 DIV_MOD_KX jited:0 1103 PASS
> ARMv5 kirkwood jit:	test_bpf: #3 DIV_MOD_KX jited:1 311 PASS
> 
> Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net-next V2] ARM: net: support BPF_ALU | BPF_MOD instructions in the BPF JIT. Nicolas Schichan <nschichan@freebox.fr> - 2015-10-02 17:10 +0200
  Re: [PATCH net-next V2] ARM: net: support BPF_ALU | BPF_MOD  instructions in the BPF JIT. Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2015-10-02 17:30 +0200
  Re: [PATCH net-next V2] ARM: net: support BPF_ALU | BPF_MOD  instructions in the BPF JIT. David Miller <davem@davemloft.net> - 2015-10-05 15:50 +0200

csiph-web