]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: x86: split bpf_jit_compile()
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 14 May 2014 02:50:45 +0000 (19:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2014 20:31:30 +0000 (16:31 -0400)
commite09d64c60776e34b53e1d9b51b032c9bbd106621
tree883522e429e6268a4b79e3bb7f15046c87d5eda7
parent3fa7445e1f1c3c319969abacf4ed540eaac2dc73
net: filter: x86: split bpf_jit_compile()

Split bpf_jit_compile() into two functions to improve readability
of for(pass++) loop. The change follows similar style of JIT compilers
for arm, powerpc, s390

The body of new do_jit() was not reformatted to reduce noise
in this patch, since the following patch replaces most of it.

Tested with BPF testsuite.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/net/bpf_jit_comp.c