<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/net/Makefile, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-06-24T05:17:57Z</updated>
<entry>
<title>powerpc/ebpf/jit: Implement JIT compiler for extended BPF</title>
<updated>2016-06-24T05:17:57Z</updated>
<author>
<name>Naveen N. Rao</name>
</author>
<published>2016-06-22T16:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=156d0e290e969caba25f1851c52417c14d141b24'/>
<id>urn:sha1:156d0e290e969caba25f1851c52417c14d141b24</id>
<content type='text'>
PPC64 eBPF JIT compiler.

Enable with:
  echo 1 &gt; /proc/sys/net/core/bpf_jit_enable
or
  echo 2 &gt; /proc/sys/net/core/bpf_jit_enable

... to see the generated JIT code. This can further be processed with
tools/net/bpf_jit_disasm.

With CONFIG_TEST_BPF=m and 'modprobe test_bpf':

 test_bpf: Summary: 305 PASSED, 0 FAILED, [297/297 JIT'ed]

... on both ppc64 BE and LE.

The details of the approach are documented through various comments in
the code.

Acked-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>ppc: bpf: rename bpf_jit_64.S to bpf_jit_asm.S</title>
<updated>2015-02-20T20:19:43Z</updated>
<author>
<name>Denis Kirjanov</name>
</author>
<published>2015-02-17T07:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ddadeab07dcc9b1456891b6fe1f1ba085028433'/>
<id>urn:sha1:2ddadeab07dcc9b1456891b6fe1f1ba085028433</id>
<content type='text'>
Signed-off-by: Denis Kirjanov &lt;kda@linux-powerpc.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: filter: BPF 'JIT' compiler for PPC64</title>
<updated>2011-07-21T19:38:32Z</updated>
<author>
<name>Matt Evans</name>
</author>
<published>2011-07-20T15:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ca87f05ba8bdc6791c14878464efc901ad71e99'/>
<id>urn:sha1:0ca87f05ba8bdc6791c14878464efc901ad71e99</id>
<content type='text'>
An implementation of a code generator for BPF programs to speed up packet
filtering on PPC64, inspired by Eric Dumazet's x86-64 version.

Filter code is generated as an ABI-compliant function in module_alloc()'d mem
with stackframe &amp; prologue/epilogue generated if required (simple filters don't
need anything more than an li/blr).  The filter's local variables, M[], live in
registers.  Supports all BPF opcodes, although "complicated" loads from negative
packet offsets (e.g. SKF_LL_OFF) are not yet supported.

There are a couple of further optimisations left for future work; many-pass
assembly with branch-reach reduction and a register allocator to push M[]
variables into volatile registers would improve the code quality further.

This currently supports big-endian 64-bit PowerPC only (but is fairly simple
to port to PPC32 or LE!).

Enabled in the same way as x86-64:

	echo 1 &gt; /proc/sys/net/core/bpf_jit_enable

Or, enabled with extra debug output:

	echo 2 &gt; /proc/sys/net/core/bpf_jit_enable

Signed-off-by: Matt Evans &lt;matt@ozlabs.org&gt;
Acked-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
