OpenCloudOS-Kernel/arch/powerpc/net
Denis Kirjanov 4e23576113 PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction
Add BPF extension SKF_AD_PKTTYPE to ppc JIT to load
skb->pkt_type field.

Before:
[   88.262622] test_bpf: #11 LD_IND_NET 86 97 99 PASS
[   88.265740] test_bpf: #12 LD_PKTTYPE 109 107 PASS

After:
[   80.605964] test_bpf: #11 LD_IND_NET 44 40 39 PASS
[   80.607370] test_bpf: #12 LD_PKTTYPE 9 9 PASS

CC: Alexei Starovoitov<alexei.starovoitov@gmail.com>
CC: Michael Ellerman<mpe@ellerman.id.au>
Cc: Matt Evans <matt@ozlabs.org>
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>

v2: Added test rusults
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-03 15:29:42 -05:00
..
Makefile net: filter: BPF 'JIT' compiler for PPC64 2011-07-21 12:38:32 -07:00
bpf_jit.h PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction 2014-11-03 15:29:42 -05:00
bpf_jit_64.S net: filter: get rid of BPF_S_* enum 2014-06-01 22:16:58 -07:00
bpf_jit_comp.c PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction 2014-11-03 15:29:42 -05:00